-
Notifications
You must be signed in to change notification settings - Fork 47
/
carrental-v1-deploy.yaml
74 lines (74 loc) · 1.87 KB
/
carrental-v1-deploy.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
67
68
69
70
71
72
73
74
kind: DeploymentConfig
apiVersion: apps.openshift.io/v1
metadata:
name: carrental-v1
labels:
app: carrental-v1
app.kubernetes.io/component: carrental-v1
app.kubernetes.io/instance: carrental-v1
app.kubernetes.io/part-of: bee-travels
spec:
strategy:
type: Rolling
rollingParams:
updatePeriodSeconds: 1
intervalSeconds: 1
timeoutSeconds: 600
maxUnavailable: 25%
maxSurge: 25%
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 200m
memory: 256Mi
activeDeadlineSeconds: 21600
replicas: 1
revisionHistoryLimit: 10
selector:
app: carrental-v1
deploymentconfig: carrental-v1
template:
metadata:
labels:
app: carrental-v1
deploymentconfig: carrental-v1
spec:
containers:
- name: carrental-v1
image: ${DOCKERHUB_NAME}/carrental-v1:latest
ports:
- containerPort: 9102
protocol: TCP
env:
- name: HOST_IP
value: carrental-v1
- name: LOG_LEVEL
value: info
- name: PORT
value: '9102'
- name: SCHEME
value: http
- name: INSTANA_AGENT_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: INSTANA_AGENT_PORT
value: '42699'
- name: INSTANA_SERVICE_NAME
value: carrental-v1
- name: INSTANA_AUTOPROFILE
value: "true"
- name: INSTANA_LOG_LEVEL
value: "warn"
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 200m
memory: 256Mi
imagePullPolicy: Always
restartPolicy: Always
terminationGracePeriodSeconds: 30