Create a gist now

Instantly share code, notes, and snippets.

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

Wow, GitHub Gist comment spam.

New site is solid. A debt of gratitude is in order for the colossal exertion. home page
Sessions will have panellists from corporate sectors, relevant industries and students presenting on suitable themes under the session topics. business janitorial services
This article is an engaging abundance of instructive information that is fascinating and elegantly composed. I recognize your diligent work on this and thank you for this data. You have what it takes to get consideration. family picture portraits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment