Skip to content

Instantly share code, notes, and snippets.

@xcoulon
Created November 19, 2017 15:49
Show Gist options
  • Save xcoulon/cf513f9dc27a0a156c9717bceff219d7 to your computer and use it in GitHub Desktop.
Save xcoulon/cf513f9dc27a0a156c9717bceff219d7 to your computer and use it in GitHub Desktop.
Managing Pod configuration using ConfigMaps and Secrets in Kubernetes (resource for the story on Medium)
apiVersion: v1
kind: Secret
metadata:
name: database-secret-config
type: Opaque
data:
dbname: dXJsX3Nob3J0ZW5lcl9kYg==
username: dXNlcg==
password: bXlzZWNyZXRwYXNzd29yZA==
@malcolmjerry
Copy link

malcolmjerry commented Jun 28, 2020

Maybe a typo mistake in "databse" and file extension should be yml ?

@xcoulon
Copy link
Author

xcoulon commented Jun 28, 2020

ah right, indeed 🤦‍♂️
well, I guess it's fine, it's just a filename 😉

@malcolmjerry
Copy link

I followed your command
"kubectl create -f database-secrets.yml"
it can't work :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment