blob: 61bfc7894524e2f20bf90ba295ce7fdfcd48fd2d (
plain)
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
|
apiVersion: apps/v1
kind: Deployment
metadata: {{- include "common.resourceMetadata" (dict "suffix" "upgrade-deployment" "dot" .) | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
app: {{ include "common.fullname" . }}
template:
metadata:
labels:
app: {{ include "common.fullname" . }}
spec:
containers:
- name: {{ include "common.name" . }}
image: "{{ include "common.repository" . }}/{{ .Values.image }}"
ports:
- containerPort: {{ .Values.service.internalPort }}
name: {{ .Values.service.portName }}
- containerPort: {{ .Values.service.sstPort }}
name: {{ .Values.service.sstPortName }}
- containerPort: {{ .Values.service.replicationPort }}
name: {{ .Values.service.replicationName }}
- containerPort: {{ .Values.service.istPort }}
name: {{ .Values.service.istPortName }}
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: MYSQL_USER
valueFrom:
secretKeyRef:
key: login
name: {{ include "common.fullname" . }}-temp-upgrade-usercred
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: {{ include "common.fullname" . }}-temp-upgrade-usercred
- name: MYSQL_DATABASE
value: {{ default "" .Values.config.mysqlDatabase | quote }}
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: {{ include "common.fullname" . }}-temp-upgrade-root
subdomain: {{ .Values.service.name }}
hostname: {{ .Values.nameOverride }}-upgrade-deployment
|