Skip to content

Instantly share code, notes, and snippets.

@thecraftman
Created August 14, 2021 18:29
Show Gist options
  • Save thecraftman/e1411ca7bfb60fb9f60801c336d3a481 to your computer and use it in GitHub Desktop.
Save thecraftman/e1411ca7bfb60fb9f60801c336d3a481 to your computer and use it in GitHub Desktop.
Create your Kubernetes secrets in s file
apiVersion: v1
kind: Pod
metadata:
name: hello-world.example.com
labels:
app: hello-world
spec:
containers:
- name: docker-demo
image: tolatemitope/docker-demo
ports:
- name: python-port
containerPort: 5000
volumeMounts:
- name: credvolume
mountPath: /etc/creds
readOnly: true
volumes:
- name: credvolume
secret:
secretName: db-secrets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment