forked from pkuma343/MySpringBootApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.yaml
66 lines (66 loc) · 1.58 KB
/
api.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
app: apiapp
name: apidc
spec:
replicas: 1
selector:
app: apiapp
deploymentconfig: apidc
strategy:
activeDeadlineSeconds: 21600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
labels:
app: apiapp
deploymentconfig: apidc
spec:
containers:
- image: pkuma343/myimage:v1
imagePullPolicy: Always
name: apidc
ports:
- containerPort: 8443
protocol: TCP
- containerPort: 8080
protocol: TCP
resources:
limits:
cpu: 400m
memory: 500M
requests:
cpu: 300m
memory: 300M
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
livenessProbe:
failureThreshold: 3
httpGet:
path: /actuator/health
port: 8080
scheme: HTTP
initialDelaySeconds: 45
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
env:
- name: JAVA_OPTS
value: "-Xms6G -Xmx6G"
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
test: false
triggers:
- type: ConfigChange