## Edit kong container
##
kong:
  command:
    - sleep
  args:
    - "3600"
  initScriptsCM: kong-initscripts
  initScriptsSecret: kong-initscripts-secret
  extraEnvVars:
    - name: KONG_LOG_LEVEL
      value: error
  extraEnvVarsCM: kong-extraenv-cm
  extraEnvVarsSecret: kong-extraenv-secret
  extraVolumeMounts:
    - name: kong-certs
      mountPath: /bitnami/kong/certs
  resources:
    limits:
      cpu: 500m
      memory: 1Gi

## Edit migration container
##
migration:
  command:
    - echo
  args:
    - test
  extraEnvVars:
    - name: KONG_CASSANDRA_USER
      value: cassandra
  extraEnvVarsCM: kong-migrate-extraenv-cm
  extraEnvVarsSecret: kong-migrate-extraenv-secret
  extraVolumeMounts:
    - name: kong-migrate-credentials
      mountPath: /bitnami/kong/credentials
  resources:
    limits:
      cpu: 300m
      memory: 2Gi

## Edit migration container
##
ingressController:
  command:
    - echo
  args:
    - hello
  extraEnvVars:
    - name: CONTROLLER_LOG_LEVEL
      value: error
  extraEnvVarsCM: kong-controller-extraenv-cm
  extraEnvVarsSecret: kong-controller-extraenv-secret
  extraVolumeMounts:
    - name: kong-controller-credentials
      mountPath: /bitnami/kong/credentials
  resources:
    limits:
      cpu: 1000m
      memory: 2Gi

sidecars: |-
  - name: test-sidecar
    image: bitnami/minideb
    command:
      - echo
      - hi

initContainers: |-
  - name: test-init
    image: bitnami/git
    command:
      - git
      - clone
      - github.com/bitnami/bitnami-docker-kong"

volumes:
  - name: kong-controller-credentials
    hostPath: /tmp/credentials
  - name: kong-migrate-credentials
    hostPath: /tmp/migrate/credentials
  - name: kong-certs
    persistentVolumeClaim:
      claimName: kong-certs-pvc

nodeSelector:
  disktype: ssd

tolerations:
  - key: "key"
    operator: "Equal"
    value: "value"
    effect: "NoSchedule"

affinity: |-
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
          - matchExpressions:
              - key: kubernetes.io/e2e-az-name
                operator: In
                values:
                  - e2e-az1
                  - e2e-az2
      preferredDuringSchedulingIgnoredDuringExecution:
        - weight: 1
          preference:
            matchExpressions:
              - key: another-node-label-key
                operator: In
                values:
                  - another-node-label-value

podAnnotations:
  k8s/annotation: test
