Skip to content

Instantly share code, notes, and snippets.

@tsubakimoto
Created April 15, 2018 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubakimoto/8f7fa836fc90087ce7a0f70854089d72 to your computer and use it in GitHub Desktop.
Save tsubakimoto/8f7fa836fc90087ce7a0f70854089d72 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: myaspnetcoreapp
spec:
replicas: 1
template:
metadata:
labels:
app: myaspnetcoreapp
spec:
containers:
- name: myaspnetcoreapp
image: microsoft/dotnet-samples:aspnetapp
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: myaspnetcoreapp
spec:
type: LoadBalancer
ports:
- port: 80
selector:
app: myaspnetcoreapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment