Add dependencies to aai-deployment
[oom.git] / kubernetes / aai / aai-deployment.yaml
index d8ac5d7..cacc4fd 100644 (file)
@@ -11,6 +11,28 @@ spec:
       labels:
         app: aai-service
       name: aai-service
+      annotations:
+        pod.beta.kubernetes.io/init-containers: '[{
+            "args": [
+                "--container-name", "aai-resources",
+                "--container-name", "aai-traversal"
+            ],
+            "command": [
+                "/root/ready.py"
+            ],
+            "env": [{
+                "name": "NAMESPACE",
+                "valueFrom": {
+                    "fieldRef": {
+                        "apiVersion": "v1",
+                        "fieldPath": "metadata.namespace"
+                    }
+                }
+            }],
+            "image": "oomk8s/readiness-check:1.0.0",
+            "imagePullPolicy": "Always",
+            "name": "aai-service-readiness"
+          }]'
     spec:
       containers:
       - name: aai-service