Fix policy
[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       containers:
18       - image: "{{ .Values.image.policyNexus }}:{{ .Values.image.policyNexusVersion }}"
19         imagePullPolicy: {{ .Values.pullPolicy }}
20         name: nexus
21         volumeMounts:
22         - name: localtime
23           mountPath: /etc/localtime
24           readOnly: true
25       volumes:
26       - name: localtime
27         hostPath:
28           path: /etc/localtime
29       imagePullSecrets:
30       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
31 #{{ end }}