[WIP] Add new AAI configuration files
[oom.git] / kubernetes / aai / aai-resources-deployment.yaml
index f2b69c4..35aae30 100644 (file)
@@ -13,7 +13,9 @@ spec:
       name: aai-resources
     spec:
       containers:
-      - env:
+      - name: aai-resources
+        image: nexus3.onap.org:10001/openecomp/aai-resources:1.1-STAGING-latest
+        env:
         - name: CHEF_BRANCH
           value: master
         - name: AAI_CHEF_ENV
@@ -30,15 +32,9 @@ spec:
           value: /usr/lib/jvm/java-8-openjdk-amd64
         - name: DEBIAN_FRONTEND
           value: noninteractive
-        image: nexus3.onap.org:10001/openecomp/aai-resources:1.1-STAGING-latest
-        name: aai-resources
         volumeMounts:
         - mountPath: /opt/aai/logroot/AAI-RES/
           name: aai-resources
-      volumes:
-        - name: aai-resources
-          hostPath:
-            path: /dockerdata/onapdemo/aai/aai-resources
         ports:
         - containerPort: 8447
         readinessProbe:
@@ -46,6 +42,10 @@ spec:
             port: 8080
           initialDelaySeconds: 5
           periodSeconds: 10
+      volumes:
+      - name: aai-resources
+        hostPath:
+          path: /dockerdata/onapdemo/aai/aai-resources
       restartPolicy: Always
       imagePullSecrets:
       - name: onap-docker-registry-key