apiVersion: apps/v1
kind: Deployment
metadata:
- name: {{ include "dbaas.fullname" . }}
+ name: {{ include "common.deploymentname.dbaas" . }}
namespace: {{ include "common.namespace" . }}
labels:
app: {{ include "common.namespace" . }}-{{ include "common.name" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
- replicas: {{ .Values.backend.replicas }}
+ replicas: {{ .Values.dbaas.backend.replicas }}
selector:
matchLabels:
app: {{ include "common.namespace" . }}-{{ include "common.name" . }}
spec:
imagePullSecrets:
- name: {{ include "common.repositoryCred" . }}
- terminationGracePeriodSeconds: {{ .Values.backend.terminationGracePeriodSeconds }}
+ terminationGracePeriodSeconds: {{ .Values.dbaas.backend.terminationGracePeriodSeconds }}
containers:
- - image: {{ include "common.repository" . }}/{{ .Values.backend.image.name }}:{{ .Values.backend.image.tag }}
+ - image: {{ include "common.repository" . }}/{{ .Values.dbaas.backend.image.name }}:{{ .Values.dbaas.backend.image.tag }}
imagePullPolicy: {{ include "common.pullPolicy" . }}
ports:
- - containerPort: {{ .Values.backend.targetPort }}
+ - containerPort: {{ .Values.dbaas.backend.containerPort }}
+ name: sql
+ protocol: TCP
name: {{ include "common.namespace" . }}-{{ include "common.name" . }}
restartPolicy: Always