Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Basic ASP.NET Core YAML
---
apiVersion: v1
kind: Service
metadata:
name: aspnetcoreapp
labels:
app: aspnetcoreapp
spec:
type: NodePort
ports:
- port: 8080
protocol: TCP
targetPort: 5000
nodePort: 31120
selector:
app: aspnetcoreapp
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: aspnetcoreapp
spec:
selector:
matchLabels:
app: aspnetcoreapp
replicas: 2 # tells deployment to run 2 pods matching the template
template: # create pods using pod definition in this template
metadata:
labels:
app: aspnetcoreapp
spec:
containers:
- name: frontend
image: shanselman/aspnetcoreapp:0.6
ports:
- containerPort: 5000
protocol: TCP
@markrendle

This comment has been minimized.

Copy link

commented Nov 8, 2017

Wow, GitHub Gist comment spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.