blob: 17e4896e79b4f5ac5e6f3aad7a208b56d0d8fdbd [file] [log] [blame]
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: brmsgw
namespace: "{{ .Values.nsPrefix }}-policy"
spec:
replicas: 1
selector:
matchLabels:
app: brmsgw
template:
metadata:
labels:
app: brmsgw
name: brmsgw
annotations:
pod.beta.kubernetes.io/init-containers: '[
{
"args": [
"--container-name",
"mariadb",
"--container-name",
"nexus",
"--container-name",
"pap",
"--container-name",
"pdp"
],
"command": [
"/root/ready.py"
],
"env": [
{
"name": "NAMESPACE",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.namespace"
}
}
}
],
"image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}",
"imagePullPolicy": "{{ .Values.pullPolicy }}",
"name": "brmsgw-readiness"
}
]'
spec:
containers:
- command:
- /bin/bash
- ./do-start.sh
- brmsgw
image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion}}"
imagePullPolicy: {{ .Values.pullPolicy }}
name: brmsgw
volumeMounts:
- mountPath: /tmp/policy-install/config
name: pe
volumes:
- name: pe
hostPath:
path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"