Skip to content

Instantly share code, notes, and snippets.

@ac12644
Created January 29, 2022 12:30
Show Gist options
  • Save ac12644/ff0ee5674eaeac60bb1f27deff2a2b3b to your computer and use it in GitHub Desktop.
Save ac12644/ff0ee5674eaeac60bb1f27deff2a2b3b to your computer and use it in GitHub Desktop.
# This file configures the hello-world app which serves public web traffic.
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld-gke
spec:
replicas: 1
selector:
matchLabels:
app: hello
template:
metadata:
labels:
app: hello
spec:
containers:
- name: hello-app
# Replace $LOCATION with your Artifact Registry location (e.g., us-west1).
# Replace $GCLOUD_PROJECT with your project ID.
image: $LOCATION-docker.pkg.dev/$GCLOUD_PROJECT/hello-repo/helloworld-gke:latest
# This app listens on port 8080 for web traffic by default.
ports:
- containerPort: 8080
env:
- name: PORT
value: "8080"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment