Last active
October 13, 2020 01:16
-
-
Save ghchinoy/00589cc2e8f46b8e22dafc49d817fdab to your computer and use it in GitHub Desktop.
Deploy ASP.NET Core App to Google Kubernetes Engine with Istio - Deployment and Service
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: aspnetcore-service | |
labels: | |
app: aspnetcore | |
spec: | |
ports: | |
- port: 8080 | |
name: http | |
selector: | |
app: aspnetcore | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: aspnetcore-v1 | |
labels: | |
app: aspnetcore | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: aspnetcore | |
template: | |
metadata: | |
labels: | |
app: aspnetcore | |
version: v1 | |
spec: | |
containers: | |
- name: aspnetcore | |
image: gcr.io/YOUR-PROJECT-ID/hello-dotnet:v1 | |
imagePullPolicy: IfNotPresent | |
ports: | |
- containerPort: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment