Skip to content

Instantly share code, notes, and snippets.

@ghchinoy
Last active October 13, 2020 01:16
Show Gist options
  • Save ghchinoy/00589cc2e8f46b8e22dafc49d817fdab to your computer and use it in GitHub Desktop.
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
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