apiVersion: v1
kind: Pod
metadata:
  name: kubewait
  annotations:
    pod.beta.kubernetes.io/init-containers: |-
        [
            {
                "name": "kubewait",
                "image": "callforamerica/kubewait",
                "imagePullPolicy": "IfNotPresent",
                "args": ["rabbitmq", "couchdb"],
                "env": [
                    {
                        "name": "NAMESPACE",
                        "valueFrom": {
                            "fieldRef": {
                                "apiVersion": "v1",
                                "fieldPath": "metadata.namespace"
                            }
                        }
                    },
                    {
                        "name": "LOG_LEVEL",
                        "value": "DEBUG"
                    }
                ]
            }
        ]
spec:
  containers:
  - name: nginx
    image: nginx
    ports:
    - containerPort: 80
