-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoes-gate-deployment.yaml
83 lines (83 loc) · 2.41 KB
/
oes-gate-deployment.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
75
76
77
78
79
80
81
82
83
{{- if or (eq .Values.installationMode "OES-AP") (eq .Values.installationMode "AP") (eq .Values.installationMode "OES") -}}
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: oes
component: gate
{{ include "oes.standard-labels" . | indent 4 }}
name: oes-gate
spec:
replicas: 1
selector:
matchLabels:
app: oes
component: gate
template:
metadata:
annotations:
configmap/checksum: {{ (.Files.Glob "config/oes-gate/gate.yml").AsConfig | sha256sum }}
labels:
app: oes
component: gate
{{ include "oes.standard-labels" . | indent 8 }}
spec:
{{- if .Values.autoConfiguration.enabled }}
initContainers:
- env:
- name: EXTERNAL_IP_CHECK_DELAY
value: "{{ .Values.autoConfiguration.initContainer.externalIpCheckDelay}}"
image: {{ .Values.autoConfiguration.initContainer.image}}
imagePullPolicy: {{ .Values.autoConfiguration.initContainer.pullPolicy}}
name: gate-autoconfig
command: ["/home/config_endpoint.sh"]
args: ["oes-gate"]
volumeMounts:
- mountPath: /config/gate.yml
name: config-temp
subPath: gate.yml
- mountPath: /opt/spinnaker/config
name: gate-volume
{{- end }}
containers:
- image: {{ template "gate.image" . }}
name: oes-gate
ports:
- containerPort: 8084
protocol: TCP
resources:
requests:
memory: "{{ .Values.gate.requests.memory }}"
cpu: "{{ .Values.gate.requests.cpu }}"
limits:
memory: "{{ .Values.gate.limits.memory }}"
cpu: "{{ .Values.gate.limits.cpu }}"
volumeMounts:
- name: gate-volume
mountPath: /opt/spinnaker/config
readinessProbe:
tcpSocket:
port: 8084
initialDelaySeconds: 120
periodSeconds: 30
livenessProbe:
httpGet:
path: /health
port: 8084
initialDelaySeconds: 120
periodSeconds: 60
imagePullSecrets:
- name: {{ .Values.imagePullSecret}}
volumes:
{{- if .Values.autoConfiguration.enabled }}
- configMap:
name: oes-gate-config
name: config-temp
- emptyDir: {}
name: gate-volume
{{- else }}
- name: gate-volume
configMap:
name: oes-gate-config
{{- end }}
{{- end -}}