Skip to content

Instantly share code, notes, and snippets.

@goyalmohit
Created January 6, 2019 21:53
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 goyalmohit/8a8b52d41cd5a80e3d0af49dfca8ca38 to your computer and use it in GitHub Desktop.
Save goyalmohit/8a8b52d41cd5a80e3d0af49dfca8ca38 to your computer and use it in GitHub Desktop.
Kubernetes configuration for running Sample .NET Core application
apiVersion: v1
kind: Service
metadata:
name: dotnetcore
labels:
app: dotnetcore
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 80
protocol: TCP
name: http
selector:
app: dotnetcore
---
apiVersion: v1
kind: ReplicationController
metadata:
name: dotnetcore
spec:
replicas: 1
template:
metadata:
labels:
app: dotnetcore
spec:
containers:
- name: dotnetcore
image: mohitgoyal.azurecr.io/dotnetcore:14
ports:
- containerPort: 80
imagePullSecrets:
- name: regcred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment