diff options
Diffstat (limited to 'kubernetes/aai/templates/sparky-be-deployment.yaml')
-rw-r--r-- | kubernetes/aai/templates/sparky-be-deployment.yaml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/kubernetes/aai/templates/sparky-be-deployment.yaml b/kubernetes/aai/templates/sparky-be-deployment.yaml new file mode 100644 index 0000000000..6a8ff9308d --- /dev/null +++ b/kubernetes/aai/templates/sparky-be-deployment.yaml @@ -0,0 +1,48 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: sparky-be + namespace: "{{ .Values.nsPrefix }}-aai" +spec: + selector: + matchLabels: + app: sparky-be + template: + metadata: + labels: + app: sparky-be + name: sparky-be + spec: + containers: + - name: sparky-be + image: "{{ .Values.image.sparkyBeImage }}:{{ .Values.image.sparkyBeVersion }}" + imagePullPolicy: {{ .Values.pullPolicy }} + env: + - name: CONFIG_HOME + value: /opt/app/sparky/config/ + - name: KEY_MANAGER_PASSWORD + value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o + - name: KEY_STORE_PASSWORD + value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o + volumeMounts: + - mountPath: /opt/app/sparky/config/ + name: aai-sparky-be-config + - mountPath: /logs/ + name: aai-sparky-be-logs + ports: + - containerPort: 9517 + readinessProbe: + tcpSocket: + port: 9517 + initialDelaySeconds: 5 + periodSeconds: 10 + volumes: + - name: aai-sparky-be-config + hostPath: + path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/sparky-be/appconfig/" + - name: aai-sparky-be-logs + hostPath: + path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/sparky-be/logs/" + restartPolicy: Always + imagePullSecrets: + - name: "{{ .Values.nsPrefix }}-docker-registry-key" |