Newer
Older
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "ibm-notification-deploy.fullname" . }}
labels:
{{- include "ibm-notification-deploy.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "ibm-notification-deploy.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "ibm-notification-deploy.selectorLabels" . | nindent 8 }}
sidecar.istio.io/inject: "{{ .Values.sidecarIstioInjected }}"
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "ibm-notification-deploy.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
initContainers:
- name: {{ .Values.initimage.name }}
image: {{ .Values.initimage.initrepository }}:{{ .Values.initimage.tag }}
imagePullPolicy: {{ .Values.initimage.pullPolicy }}
command: ['sh', '-c', './health_probe.sh $(HEALTH_URI)/info && sleep 5']
env:
- name: HEALTH_URI
valueFrom:
configMapKeyRef:
name: notification-config
key: AUTHORIZE_API
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: amqphub.amqp10jms.password
valueFrom:
secretKeyRef:
key: AMQ_PASSWORD
name: ex-aao-credentials-secret
- name: amqphub.amqp10jms.username
valueFrom:
secretKeyRef:
key: AMQ_USER
name: ex-aao-credentials-secret
- name: partition.keycloak.client_secert
valueFrom:
secretKeyRef:
key: partition_service_secret_data
name: props-secret-generated-password
- name: ibm.db.password
valueFrom:
secretKeyRef:
key: adminPassword
name: {{ .Release.Name }}-couchdb
- name: partition.keycloak.client_secert
valueFrom:
secretKeyRef:
key: partition_service_secret_data
name: props-secret-generated-password
- name: ibm.keycloak.endpoint_url
valueFrom:
configMapKeyRef:
key: partition.keycloak.url
name: partition-config
- name: ibm.keycloak.client_secret
valueFrom:
secretKeyRef:
key: osdu_login_secret_data
name: props-secret-generated-password
- name: partition.keycloak.url
valueFrom:
configMapKeyRef:
key: partition.keycloak.url
name: partition-config
envFrom:
- configMapRef:
name: "{{ .Values.conf.configmap }}"
ports:
- name: http
containerPort: 8080
protocol: TCP
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}