Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.

Missing key for one of the secrets in main container's manifest #16

Open
jkozlowicz opened this issue Mar 11, 2020 · 0 comments
Open

Missing key for one of the secrets in main container's manifest #16

jkozlowicz opened this issue Mar 11, 2020 · 0 comments

Comments

@jkozlowicz
Copy link

  1. Go to: https://codelabs.developers.google.com/codelabs/cloud-postgresql-gke-memegen/#7
  2. Go to section: Main Container
  3. The following snippet seems to be missing the password key:
      - name: gmemegen
          image: gcr.io/[PROJECT_ID]/gmemegen
          ports:
            - containerPort: 8080
          # Set env variables used for Postgres Connection
          env:
            - name: DB_USER
              valueFrom:
                secretKeyRef:
                  name: cloudsql-db-credentials
                  key: username
            - name: DB_PASS
              valueFrom:
                secretKeyRef:
                  name: cloudsql-db-credentials
                                             <--- shouldn't there be [key: password] here?
            - name: DB_NAME
              valueFrom:
                secretKeyRef:
                  name: cloudsql-db-credentials
                  key: dbname
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant