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

@markrendle markrendle commented Nov 8, 2017

Wow, GitHub Gist comment spam.

@skelworkin

This comment has been minimized.

Copy link

@skelworkin skelworkin commented Aug 14, 2020

Thank you very much for such an interesting post, and I meet them more often then I visited this site. fence builders Sydney

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.