Fix asdc/sdngc interface robot
[oom.git] / kubernetes / policy / templates / dep-nexus.yaml
1 #{{ if not .Values.disablePolicyNexus }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   name: nexus
6   namespace: "{{ .Values.nsPrefix }}-policy"
7 spec:
8   selector:
9     matchLabels:
10       app: nexus
11   template:
12     metadata:
13       labels:
14         app: nexus
15       name: nexus
16     spec:
17       initContainers:
18       - command:
19         - /root/ready.py
20         args:
21         - --container-name
22         - mariadb
23         env:
24         - name: NAMESPACE
25           valueFrom:
26             fieldRef:
27               apiVersion: v1
28               fieldPath: metadata.namespace
29         image: "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}"
30         imagePullPolicy: {{ .Values.pullPolicy }}
31         name: nexus-readiness
32       containers:
33       - image: "{{ .Values.image.policyNexus }}:{{ .Values.image.policyNexusVersion }}"
34         imagePullPolicy: {{ .Values.pullPolicy }}
35         name: nexus
36         volumeMounts:
37         - name: localtime
38           mountPath: /etc/localtime
39           readOnly: true
40       volumes:
41       - name: localtime
42         hostPath:
43           path: /etc/localtime
44       imagePullSecrets:
45       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
46 #{{ end }}