apiVersion: v1
kind: Pod
metadata:
  name: o11ycost-pod
  namespace: o11ycost
spec:
  restartPolicy: Never
  serviceAccountName: o11ycost-sa
  containers:
  - name: o11ycost-container
    image: 557537366020.dkr.ecr.us-west-2.amazonaws.com/o11y_cloud_cost:v2
    imagePullPolicy: Always
    args: ["--start_day=2023-06-01","length=13", "config=./config.yaml"]
    env:
    - name: GOOGLE_APPLICATION_CREDENTIALS
      value: "/clientLibraryConfig.json"
    volumeMounts:
    - name: config-volume
      mountPath: /config.yaml
      subPath: config.yaml
  volumes:
  - name: config-volume
    configMap:
      name: o11ycost-config
      items:
      - key: "config.yaml"
        path: "config.yaml"