Created
January 6, 2019 21:53
-
-
Save goyalmohit/8a8b52d41cd5a80e3d0af49dfca8ca38 to your computer and use it in GitHub Desktop.
Kubernetes configuration for running Sample .NET Core application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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