Skip to content

Instantly share code, notes, and snippets.

@initcron
Created September 3, 2024 08:01
Show Gist options
  • Save initcron/0bb506a437977063fe0407760a8f18d9 to your computer and use it in GitHub Desktop.
Save initcron/0bb506a437977063fe0407760a8f18d9 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
role: vote
name: vote
spec:
replicas: 4
selector:
matchLabels:
role: vote
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
role: vote
spec:
containers:
- image: schoolofdevops/vote:v1
name: vote
envFrom:
- configMapRef:
name: vote
optional: True
ports:
- containerPort: 80
resources: {}
volumeMounts:
- name: config
mountPath: "/app/config"
readOnly: true
volumes:
- name: config
configMap:
name: vote
items:
- key: "development_config.py"
path: "dev.py"
- key: "production_config.py"
path: "production_config.py"
optional: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment