Skip to content

Instantly share code, notes, and snippets.

@xcoulon
Created November 19, 2017 15:49
Show Gist options
  • Select an option

  • Save xcoulon/cf513f9dc27a0a156c9717bceff219d7 to your computer and use it in GitHub Desktop.

Select an option

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

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