apiVersion: v1
kind: Pod
metadata:
  name: dev-pod-explorer
  namespace: processing
  labels:
    app: odc
spec:
  containers:
  - name: datacube-explorer-dev
    image: opendatacube/explorer:2.1.11-159-g0a1e022
    env:
    - name: DB_USERNAME
      valueFrom:
        secretKeyRef:
          name: explorer-db
          key: postgres-username
    - name: DB_PASSWORD
      valueFrom:
        secretKeyRef:
          name: explorer-db
          key: postgres-password
    - name: DB_DATABASE
      value: "africa"
    - name: DB_HOSTNAME
      value: "database-write.local"
    - name: AWS_DEFAULT_REGION
      valueFrom:
        secretKeyRef:
          name: indexing-aws-creds-prod
          key: AWS_DEFAULT_REGION
    - name: AWS_ACCESS_KEY_ID
      valueFrom:
        secretKeyRef:
          name: indexing-aws-creds-prod
          key: AWS_ACCESS_KEY_ID
    - name: AWS_SECRET_ACCESS_KEY
      valueFrom:
        secretKeyRef:
          name: indexing-aws-creds-prod
          key: AWS_SECRET_ACCESS_KEY
    command: ["/bin/sh", "-ec", "while :; do echo '.'; sleep 5 ; done"]
