Fix policy
[oom.git] / kubernetes / policy / templates / dep-pap.yaml
index 0816aa5..838396f 100644 (file)
@@ -17,8 +17,6 @@ spec:
         pod.beta.kubernetes.io/init-containers: '[
           {
               "args": [
-                  "--container-name",
-                  "nexus",
                   "--container-name",
                   "mariadb"
               ],
@@ -73,6 +71,9 @@ spec:
         image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion }}"
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: pap
+        env:
+        - name: PRELOAD_POLICIES
+          value: "true"
         ports:
         - containerPort: 8443
         - containerPort: 9091