-
Notifications
You must be signed in to change notification settings - Fork 47
/
currencyexchange-deploy.yaml
72 lines (72 loc) · 1.86 KB
/
currencyexchange-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
kind: DeploymentConfig
apiVersion: apps.openshift.io/v1
metadata:
name: currencyexchange
labels:
app: currencyexchange
app.kubernetes.io/component: currencyexchange
app.kubernetes.io/instance: currencyexchange
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: 100m
memory: 256Mi
requests:
cpu: 100m
memory: 256Mi
activeDeadlineSeconds: 21600
replicas: 1
revisionHistoryLimit: 10
selector:
app: currencyexchange
deploymentconfig: currencyexchange
template:
metadata:
labels:
app: currencyexchange
deploymentconfig: currencyexchange
spec:
containers:
- name: currencyexchange
image: ${DOCKERHUB_NAME}/currencyexchange:latest
ports:
- containerPort: 9201
protocol: TCP
env:
- name: HOST_IP
value: currencyexchange
- name: PORT
value: '9201'
- name: SCHEME
value: http
- name: INSTANA_AGENT_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: INSTANA_AGENT_PORT
value: '42699'
- name: INSTANA_SERVICE_NAME
value: currencyexchange
- name: INSTANA_AUTOPROFILE
value: "true"
- name: INSTANA_LOG_LEVEL
value: "warn"
resources:
limits:
cpu: 100m
memory: 256Mi
requests:
cpu: 100m
memory: 256Mi
imagePullPolicy: Always
restartPolicy: Always
terminationGracePeriodSeconds: 30