Skip to content

Instantly share code, notes, and snippets.

@EvilFreelancer
Created April 25, 2023 23:11
Show Gist options
  • Select an option

  • Save EvilFreelancer/2b4d6d4cff73563c0984eaa39575f1b3 to your computer and use it in GitHub Desktop.

Select an option

Save EvilFreelancer/2b4d6d4cff73563c0984eaa39575f1b3 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-deployment
namespace: my-namespace
spec:
replicas: 3
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: my-app-container
image: my-app-image:latest
ports:
- containerPort: 8080
volumeMounts:
- name: config-volume
mountPath: /app/config
volumes:
- name: config-volume
configMap:
name: my-deployment-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment