blob: 41d9d5b520a7120a53d1082fc2f052c3649487d6 [file] [log] [blame]
#{{ if not .Values.disableAppcAppcDbhost }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: appc-dbhost
namespace: "{{ .Values.nsPrefix }}"
spec:
replicas: {{ .Values.dbReplicas }}
selector:
matchLabels:
app: appc-dbhost
template:
metadata:
labels:
app: appc-dbhost
spec:
containers:
- env:
- name: MYSQL_ROOT_PASSWORD
value: openECOMP1.0
- name: MYSQL_ROOT_HOST
value: '%'
image: {{ .Values.image.mysqlServer }}
imagePullPolicy: {{ .Values.pullPolicy }}
name: appc-db-container
volumeMounts:
- mountPath: /etc/localtime
name: localtime
readOnly: true
- mountPath: /var/lib/mysql
name: appc-data
ports:
- containerPort: 3306
readinessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 5
periodSeconds: 10
restartPolicy: Always
volumes:
- name: localtime
hostPath:
path: /etc/localtime
- name: appc-data
persistentVolumeClaim:
claimName: appc-db
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
#{{ end }}