Instantly share code, notes, and snippets.

Embed
What would you like to do?
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