Skip to content

Instantly share code, notes, and snippets.

@ahelland
Created April 4, 2018 07:47
Show Gist options
  • Save ahelland/1ffce357c97800f9d7d5c078d48da26a to your computer and use it in GitHub Desktop.
Save ahelland/1ffce357c97800f9d7d5c078d48da26a to your computer and use it in GitHub Desktop.
Kubernetes YAML definition for api-playground deployment/service referred to in "Building Microservices with AKS and VSTS — Part 2"
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: api-playground
spec:
template:
metadata:
labels:
app: api-playground
spec:
containers:
- name: api-playground
image: myFiddleregistry.azurecr.io/apiplayground:latest
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: api-playground
spec:
ports:
- port: 80
selector:
app: api-playground
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment