Skip to content

Instantly share code, notes, and snippets.

@mascot6699
Last active June 25, 2019 03:40
Show Gist options
  • Save mascot6699/e785344a67b578c58a13b30faa9b5da5 to your computer and use it in GitHub Desktop.
Save mascot6699/e785344a67b578c58a13b30faa9b5da5 to your computer and use it in GitHub Desktop.
# a comment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx
labels:
app: nginx # arbitrary label on deployment
spec:
replicas: 3
selector:
matchLabels: # labels the replica selector should match
app: nginx
template:
metadata:
labels:
app: nginx # label for replica selector to match
version: alpine # arbitrary label we can match on elsewhere
spec:
containers:
- name: nginx
image: nginx:alpine
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment