Created
January 29, 2022 12:30
-
-
Save ac12644/ff0ee5674eaeac60bb1f27deff2a2b3b to your computer and use it in GitHub Desktop.
This file contains 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
# 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