Skip to content

Instantly share code, notes, and snippets.

@svennam92
Created April 25, 2019 15:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save svennam92/3bafe1a5a2fef4b964bef685c650bb27 to your computer and use it in GitHub Desktop.
Save svennam92/3bafe1a5a2fef4b964bef685c650bb27 to your computer and use it in GitHub Desktop.
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