Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Kubernetes Deployment Video: Sample YAML
apiVersion: apps/v1
kind: Deployment
metadata:
name: sample-deployment
labels:
app: sample
spec:
replicas: 3
selector:
matchLabels:
app: sample
template:
metadata:
labels:
app: sample
spec:
containers:
- name: sample
image: sample:v1
ports:
- containerPort: 80
environment:
CONFIG_SERVER: https://server:38023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment