Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created December 23, 2018 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xximjasonxx/47151a9274ae732dd063c7f9605365c4 to your computer and use it in GitHub Desktop.
Save xximjasonxx/47151a9274ae732dd063c7f9605365c4 to your computer and use it in GitHub Desktop.
Sample Deployment YAML
apiVersion: apps/v1
kind: Deployment
metadata:
name: feed-api-deployment
labels:
app: giftlist-feedapi
spec:
replicas: 2
selector:
matchLabels:
app: giftlist-feedapi-pod
template:
metadata:
labels:
app: giftlist-feedapi-pod
spec:
containers:
- name: giftlist-feedapi
image: giftlistregistry.azurecr.io/feedservice-dev:20181221.4-866920a2e93b73a68f50b0c699a2ddfbeca8af9f
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: feed-api-service
labels:
app: feed-api-service
spec:
selector:
app: giftlist-feedapi-pod
ports:
- port: 80
protocol: TCP
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment