Skip to content

Instantly share code, notes, and snippets.

@e-roux
Last active October 6, 2019 17:11
Show Gist options
  • Select an option

  • Save e-roux/0d7763a00a6991e62e12013b681e55fe to your computer and use it in GitHub Desktop.

Select an option

Save e-roux/0d7763a00a6991e62e12013b681e55fe to your computer and use it in GitHub Desktop.
Memo: Kubernetes - K8S

Kubernetes

Best practice

A secret can be used with a pod in three ways:

  • to populate environment variables for containers.
  • as files in a volume mounted on one or more of its containers.
  • by kubelet when pulling images for the pod.

Secrets must be base64 encoded, echo introduces a new line, flag -n resolves the issue

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