Anwendung mit einer Cloud SQL for PostgreSQL-Instanz verbinden Rezensionen

12361 Rezensionen

Navid M. · Vor etwa 3 Jahre überprüft

Joon K. · Vor etwa 3 Jahre überprüft

Himanshu Y. · Vor etwa 3 Jahre überprüft

I try this ab's twice and I cannot verify Please ensure you have successfully deployed gMemegen to cluster postgres-cluster.after deploy gke apps so I cannot pass this lab

Visarn K. · Vor etwa 3 Jahre überprüft

I try this ab's twice and I cannot verify Please ensure you have successfully deployed gMemegen to cluster postgres-cluster.after deploy gke apps so I cannot pass this lab

Visarn K. · Vor etwa 3 Jahre überprüft

Visarn K. · Vor etwa 3 Jahre überprüft

Lorrain G. · Vor etwa 3 Jahre überprüft

Glauco B. · Vor etwa 3 Jahre überprüft

Ming Y. · Vor etwa 3 Jahre überprüft

Great Lab!

Pedro L. · Vor etwa 3 Jahre überprüft

Greg F. · Vor etwa 3 Jahre überprüft

Welcome to Cloud Shell! Type "help" to get started. Your Cloud Platform project in this session is set to qwiklabs-gcp-02-1609c8b7c019. Use “gcloud config set project [PROJECT_ID]” to change to a different project. student_02_6dfef3949fac@cloudshell:~ (qwiklabs-gcp-02-1609c8b7c019)$ gcloud auth list Credentialed Accounts ACTIVE: * ACCOUNT: student-02-6dfef3949fac@qwiklabs.net To set the active account, run: $ gcloud config set account `ACCOUNT` student_02_6dfef3949fac@cloudshell:~ (qwiklabs-gcp-02-1609c8b7c019)$ gcloud config list project [core] project = qwiklabs-gcp-02-1609c8b7c019 Your active configuration is: [cloudshell-9961] student_02_6dfef3949fac@cloudshell:~ (qwiklabs-gcp-02-1609c8b7c019)$ gcloud services enable artifactregistry.googleapis.com student_02_6dfef3949fac@cloudshell:~ (qwiklabs-gcp-02-1609c8b7c019)$ export PROJECT_ID=$(gcloud config list --format 'value(core.project)') export CLOUDSQL_SERVICE_ACCOUNT=cloudsql-service-account gcloud iam service-accounts create $CLOUDSQL_SERVICE_ACCOUNT --project=$PROJECT_ID gcloud projects add-iam-policy-binding $PROJECT_ID \ --member="serviceAccount:$CLOUDSQL_SERVICE_ACCOUNT@$PROJECT_ID.iam.gserviceaccount.com" \ --role="roles/cloudsql.admin" Created service account [cloudsql-service-account]. Updated IAM policy for project [qwiklabs-gcp-02-1609c8b7c019]. bindings: - members: - user:student-02-6dfef3949fac@qwiklabs.net role: roles/appengine.appAdmin - members: - serviceAccount:qwiklabs-gcp-02-1609c8b7c019@qwiklabs-gcp-02-1609c8b7c019.iam.gserviceaccount.com role: roles/bigquery.admin - members: - serviceAccount:418387715193@cloudbuild.gserviceaccount.com role: roles/cloudbuild.builds.builder - members: - serviceAccount:service-418387715193@gcp-sa-cloudbuild.iam.gserviceaccount.com role: roles/cloudbuild.serviceAgent - members: - serviceAccount:cloudsql-service-account@qwiklabs-gcp-02-1609c8b7c019.iam.gserviceaccount.com role: roles/cloudsql.admin - members: - serviceAccount:service-418387715193@compute-system.iam.gserviceaccount.com role: roles/compute.serviceAgent - members: - serviceAccount:service-418387715193@container-engine-robot.iam.gserviceaccount.com role: roles/container.serviceAgent - members: - serviceAccount:418387715193-compute@developer.gserviceaccount.com - serviceAccount:418387715193@cloudservices.gserviceaccount.com - user:student-02-6dfef3949fac@qwiklabs.net role: roles/editor - members: - serviceAccount:admiral@qwiklabs-services-prod.iam.gserviceaccount.com - serviceAccount:qwiklabs-gcp-02-1609c8b7c019@qwiklabs-gcp-02-1609c8b7c019.iam.gserviceaccount.com - user:student-02-6dfef3949fac@qwiklabs.net role: roles/owner - members: - serviceAccount:qwiklabs-gcp-02-1609c8b7c019@qwiklabs-gcp-02-1609c8b7c019.iam.gserviceaccount.com role: roles/storage.admin - members: - user:student-02-6dfef3949fac@qwiklabs.net role: roles/viewer etag: BwXyizi4jRc= version: 1 student_02_6dfef3949fac@cloudshell:~ (qwiklabs-gcp-02-1609c8b7c019)$ student_02_6dfef3949fac@cloudshell:~ (qwiklabs-gcp-02-1609c8b7c019)$ student_02_6dfef3949fac@cloudshell:~ (qwiklabs-gcp-02-1609c8b7c019)$ gcloud iam service-accounts keys create $CLOUDSQL_SERVICE_ACCOUNT.json \ --iam-account=$CLOUDSQL_SERVICE_ACCOUNT@$PROJECT_ID.iam.gserviceaccount.com \ --project=$PROJECT_ID created key [049d54c8b62aabdb870f69f57e7de57bcdba848b] of type [json] as [cloudsql-service-account.json] for [cloudsql-service-account@qwiklabs-gcp-02-1609c8b7c019.iam.gserviceaccount.com] student_02_6dfef3949fac@cloudshell:~ (qwiklabs-gcp-02-1609c8b7c019)$ student_02_6dfef3949fac@cloudshell:~ (qwiklabs-gcp-02-1609c8b7c019)$ student_02_6dfef3949fac@cloudshell:~ (qwiklabs-gcp-02-1609c8b7c019)$ student_02_6dfef3949fac@cloudshell:~ (qwiklabs-gcp-02-1609c8b7c019)$ ZONE=us-central1-a gcloud container clusters create postgres-cluster \ --zone=$ZONE --num-nodes=2 Default change: VPC-native is the default mode during cluster creation for versions greater than 1.21.0-gke.1500. To create advanced routes based clusters, please pass the `--no-enable-ip-alias` flag Default change: During creation of nodepools or autoscaling configuration changes for cluster versions greater than 1.24.1-gke.800 a default location policy is applied. For Spot and PVM it defaults to ANY, and for all other VM kinds a BALANCED policy is used. To change the default values use the `--location-policy` flag. Note: Your Pod address range (`--cluster-ipv4-cidr`) can accommodate at most 1008 node(s). Creating cluster postgres-cluster in us-central1-a... Cluster is beinghealth-checked (master is healthy)...done. Created [https://container.googleapis.com/v1/projects/qwiklabs-gcp-02-1609c8b7c019/zones/us-central1-a/clusters/postgres-cluster]. To inspect the contents of your cluster, go to: https://console.cloud.google.com/kubernetes/workload_/gcloud/us-central1-a/postgres-cluster?project=qwiklabs-gcp-02-1609c8b7c019 kubeconfig entry generated for postgres-cluster. NAME: postgres-cluster LOCATION: us-central1-a MASTER_VERSION: 1.24.7-gke.900 MASTER_IP: 130.211.238.14 MACHINE_TYPE: e2-medium NODE_VERSION: 1.24.7-gke.900 NUM_NODES: 2 STATUS: RUNNING student_02_6dfef3949fac@cloudshell:~ (qwiklabs-gcp-02-1609c8b7c019)$ kubectl create secret generic cloudsql-instance-credentials \ --from-file=credentials.json=$CLOUDSQL_SERVICE_ACCOUNT.json kubectl create secret generic cloudsql-db-credentials \ --from-literal=username=postgres \ --from-literal=password=supersecret! \ --from-literal=dbname=gmemegen_db secret/cloudsql-instance-credentials created secret/cloudsql-db-credentials created student_02_6dfef3949fac@cloudshell:~ (qwiklabs-gcp-02-1609c8b7c019)$ student_02_6dfef3949fac@cloudshell:~ (qwiklabs-gcp-02-1609c8b7c019)$ gsutil -m cp -r gs://cloud-training/gsp919/gmemegen . cd gmemegen Copying gs://cloud-training/gsp919/gmemegen/.git/description... Copying gs://cloud-training/gsp919/gmemegen/.DS_Store... Copying gs://cloud-training/gsp919/gmemegen/.circleci/config.yml... Copying gs://cloud-training/gsp919/gmemegen/.git/hooks/applypatch-msg.sample... Copying gs://cloud-training/gsp919/gmemegen/.flake8... Copying gs://cloud-training/gsp919/gmemegen/.git/HEAD... Copying gs://cloud-training/gsp919/gmemegen/.git/hooks/fsmonitor-watchman.sample... Copying gs://cloud-training/gsp919/gmemegen/.git/hooks/commit-msg.sample... Copying gs://cloud-training/gsp919/gmemegen/.git/config... Copying gs://cloud-training/gsp919/gmemegen/.git/hooks/post-update.sample... Copying gs://cloud-training/gsp919/gmemegen/.git/hooks/pre-applypatch.sample... Copying gs://cloud-training/gsp919/gmemegen/.git/hooks/pre-commit.sample... Copying gs://cloud-training/gsp919/gmemegen/.git/hooks/pre-push.sample... Copying gs://cloud-training/gsp919/gmemegen/.git/hooks/pre-rebase.sample... Copying gs://cloud-training/gsp919/gmemegen/.git/hooks/pre-receive.sample... Copying gs://cloud-training/gsp919/gmemegen/.git/hooks/prepare-commit-msg.sample... Copying gs://cloud-training/gsp919/gmemegen/.git/hooks/update.sample... Copying gs://cloud-training/gsp919/gmemegen/.git/index... Copying gs://cloud-training/gsp919/gmemegen/.git/info/exclude... Copying gs://cloud-training/gsp919/gmemegen/.git/logs/HEAD... Copying gs://cloud-training/gsp919/gmemegen/.git/logs/refs/heads/master... Copying gs://cloud-training/gsp919/gmemegen/.git/logs/refs/remotes/origin/HEAD... Copying gs://cloud-training/gsp919/gmemegen/.git/objects/pack/pack-7464aa72e0e0b308b6cd0d765dfba7a19c8e87dc.idx... Copying gs://cloud-training/gsp919/gmemegen/.git/objects/pack/pack-7464aa72e0e0b308b6cd0d765dfba7a19c8e87dc.pack... Copying gs://cloud-training/gsp919/gmemegen/.git/packed-refs... Copying gs://cloud-training/gsp919/gmemegen/.git/refs/heads/master... Copying gs://cloud-training/gsp919/gmemegen/.git/refs/remotes/origin/HEAD... Copying gs://cloud-training/gsp919/gmemegen/Dockerfile... Copying gs://cloud-training/gsp919/gmemegen/.gitignore... Copying gs://cloud-training/gsp919/gmemegen/CONTRIBUTING.md... Copying gs://cloud-training/gsp919/gmemegen/app/__pycache__/configuration.cpython-39.pyc... Copying gs://cloud-training/gsp919/gmemegen/app/configuration.py... Copying gs://cloud-training/gsp919/gmemegen/README.md... Copying gs://cloud-training/gsp919/gmemegen/app/configuration.pyc... Copying gs://cloud-training/gsp919/gmemegen/app/main.py... Copying gs://cloud-training/gsp919/gmemegen/app/requirements.txt... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/semantic.min.css... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/brand-icons.eot... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/brand-icons.woff2... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/semantic.min.js... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/brand-icons.svg... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/brand-icons.ttf... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/icons.eot... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/icons.otf... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/brand-icons.woff... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/icons.svg... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/icons.ttf... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/icons.woff... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/icons.woff2... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/outline-icons.ttf... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/outline-icons.svg... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/outline-icons.woff... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/outline-icons.woff2... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/images/flags.png... Copying gs://cloud-training/gsp919/gmemegen/app/static/dist/themes/default/assets/fonts/outline-icons.eot... Copying gs://cloud-training/gsp919/gmemegen/app/static/fonts/Impact.ttf... Copying gs://cloud-training/gsp919/gmemegen/app/static/images/Kubernetes_logo.png... Copying gs://cloud-training/gsp919/gmemegen/app/static/images/Kubernetes_name.png... Copying gs://cloud-training/gsp919/gmemegen/app/static/images/blb.png... Copying gs://cloud-training/gsp919/gmemegen/app/static/images/cloudsql.jpg... Copying gs://cloud-training/gsp919/gmemegen/app/static/images/gmemegen.png... Copying gs://cloud-training/gsp919/gmemegen/app/static/images/gmemegen2.png... Copying gs://cloud-training/gsp919/gmemegen/app/static/images/kubernetes.png... Copying gs://cloud-training/gsp919/gmemegen/app/static/images/logo_gcp_horizontal_rgb.png... Copying gs://cloud-training/gsp919/gmemegen/app/static/images/logo_gcp_hexagon_rgb.png... Copying gs://cloud-training/gsp919/gmemegen/app/static/images/random.png... Copying gs://cloud-training/gsp919/gmemegen/app/static/images/recent.png... Copying gs://cloud-training/gsp919/gmemegen/app/static/images/submit.png... Copying gs://cloud-training/gsp919/gmemegen/app/static/templates/aliens.jpg... Copying gs://cloud-training/gsp919/gmemegen/app/static/templates/awkwardpenguin.jpg... Copying gs://cloud-training/gsp919/gmemegen/app/static/templates/bill-lumbergh.jpg... Copying gs://cloud-training/gsp919/gmemegen/app/static/templates/confessionbear.jpg... Copying gs://cloud-training/gsp919/gmemegen/app/static/templates/fry.jpg... Copying gs://cloud-training/gsp919/gmemegen/app/static/templates/successkid.jpg... Copying gs://cloud-training/gsp919/gmemegen/app/templates/create_meme.html... Copying gs://cloud-training/gsp919/gmemegen/app/templates/footer.html... Copying gs://cloud-training/gsp919/gmemegen/app/templates/header.html... Copying gs://cloud-training/gsp919/gmemegen/app/templates/recent.html... Copying gs://cloud-training/gsp919/gmemegen/app/templates/view.html... Copying gs://cloud-training/gsp919/gmemegen/app/uwsgi.ini... Copying gs://cloud-training/gsp919/gmemegen/cloud_sql_proxy... Copying gs://cloud-training/gsp919/gmemegen/cloudbuild.yaml0... Copying gs://cloud-training/gsp919/gmemegen/gmemegen_deployment.yaml... Copying gs://cloud-training/gsp919/gmemegen/setup.sh... | [84/84 files][ 21.5 MiB/ 21.5 MiB] 100% Done Operation completed over 84 objects/21.5 MiB. student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ export REGION=us-central1 export PROJECT_ID=$(gcloud config list --format 'value(core.project)') export REPO=gmemegen student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ gcloud auth configure-docker ${REGION}-docker.pkg.dev WARNING: Your config file at [/home/student_02_6dfef3949fac/.docker/config.json] contains these credential helper entries: { "credHelpers": { "gcr.io": "gcloud", "us.gcr.io": "gcloud", "eu.gcr.io": "gcloud", "asia.gcr.io": "gcloud", "staging-k8s.gcr.io": "gcloud", "marketplace.gcr.io": "gcloud" } } Adding credentials for: us-central1-docker.pkg.dev After update, the following will be written to your Docker config file located at [/home/student_02_6dfef3949fac/.docker/config.json]: { "credHelpers": { "gcr.io": "gcloud", "us.gcr.io": "gcloud", "eu.gcr.io": "gcloud", "asia.gcr.io": "gcloud", "staging-k8s.gcr.io": "gcloud", "marketplace.gcr.io": "gcloud", "us-central1-docker.pkg.dev": "gcloud" } } Do you want to continue (Y/n)? Y Docker configuration file updated. student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ gcloud artifacts repositories create $REPO \ --repository-format=docker --location=$REGION Create request issued for: [gmemegen] Waiting for operation [projects/qwiklabs-gcp-02-1609c8b7c019/locations/us-central1/operations/e269025e-d46d-45e4-b3d8-164058c6d927] to complete...done. Created repository [gmemegen]. student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ docker build -t ${REGION}-docker.pkg.dev/${PROJECT_ID}/gmemegen/gmemegen-app:v1 . Sending build context to Docker daemon 22.6MB Step 1/5 : FROM tiangolo/uwsgi-nginx-flask:python3.6 python3.6: Pulling from tiangolo/uwsgi-nginx-flask 9b99af5931b3: Pulling fs layer b6013b3e77fe: Pulling fs layer bbced17b6899: Pulling fs layer 8b609dabefa8: Pulling fs layer 50544bfef33d: Pulling fs layer 964244a92902: Pulling fs layer ef5d3eb9cc29: Pulling fs layer 82cee9e5607e: Pulling fs layer 1d082f1c77ef: Pulling fs layer aa6096e9247c: Pulling fs layer 035717d61e63: Pulling fs layer ed4a97ae5ac7: Pulling fs layer acb7c5d0483a: Pulling fs layer 0c185d5f06f5: Pulling fs layer f8c9873f4d43: Pulling fs layer 84955850c449: Pulling fs layer 8d912340d42f: Pulling fs layer 665c733fa791: Pull complete 6be9e12f32d2: Pull complete 30a7f564ed9b: Pull complete 9e7c88149aeb: Pull complete 885120729d88: Pull complete 34a5c6a1c2a1: Pull complete dd4f9dfeb1aa: Pull complete c426d5c1c45d: Pull complete e35b52c78ecb: Pull complete 8207fdd6f90f: Pull complete e8f1891867bb: Pull complete 2d8416768318: Pull complete 22f54745300f: Pull complete Digest: sha256:07b3a61dc2f6d6b294065f929d33cdf6416133320cf61cc66b7cdb1428460e75 Status: Downloaded newer image for tiangolo/uwsgi-nginx-flask:python3.6 ---> 893854f32f35 Step 2/5 : ENV LISTEN_PORT 8080 ---> Running in 1cb48790cd06 Removing intermediate container 1cb48790cd06 ---> 5b55d2d31cc4 Step 3/5 : EXPOSE 8080 ---> Running in e4f379bce6aa Removing intermediate container e4f379bce6aa ---> 8dcec6a4ae74 Step 4/5 : COPY ./app /app ---> 9ce35098188c Step 5/5 : RUN pip3 install -r /app/requirements.txt ---> Running in d14b28068c41 Requirement already satisfied: flask in /usr/local/lib/python3.6/site-packages (from -r /app/requirements.txt (line 1)) (2.0.3) Collecting pillow Downloading Pillow-8.4.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Collecting pg8000==1.16.6 Downloading pg8000-1.16.6-py3-none-any.whl (24 kB) Collecting Flask-SQLAlchemy Downloading Flask_SQLAlchemy-2.5.1-py2.py3-none-any.whl (17 kB) Collecting google-cloud-sqlcommenter Downloading google_cloud_sqlcommenter-2.0.0-py3-none-any.whl (15 kB) Collecting sqlalchemy Downloading SQLAlchemy-1.4.46-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB) Collecting scramp==1.2.0 Downloading scramp-1.2.0-py3-none-any.whl (6.3 kB) Requirement already satisfied: itsdangerous>=2.0 in /usr/local/lib/python3.6/site-packages (from flask->-r /app/requirements.txt (line 1)) (2.0.1) Requirement already satisfied: Werkzeug>=2.0 in /usr/local/lib/python3.6/site-packages (from flask->-r /app/requirements.txt (line 1)) (2.0.3) Requirement already satisfied: Jinja2>=3.0 in /usr/local/lib/python3.6/site-packages (from flask->-r /app/requirements.txt (line 1)) (3.0.3) Requirement already satisfied: click>=7.1.2 in /usr/local/lib/python3.6/site-packages (from flask->-r /app/requirements.txt (line 1)) (8.0.4) Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.6/site-packages (from sqlalchemy->-r /app/requirements.txt (line 6)) (4.8.3) Collecting greenlet!=0.4.17 Downloading greenlet-2.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (513 kB) Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.6/site-packages (from Jinja2>=3.0->flask->-r /app/requirements.txt (line 1)) (2.0.1) Requirement already satisfied: dataclasses in /usr/local/lib/python3.6/site-packages (from Werkzeug>=2.0->flask->-r /app/requirements.txt (line 1)) (0.8) Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.6/site-packages (from importlib-metadata->sqlalchemy->-r /app/requirements.txt (line 6)) (3.6.0) Requirement already satisfied: typing-extensions>=3.6.4 in /usr/local/lib/python3.6/site-packages (from importlib-metadata->sqlalchemy->-r /app/requirements.txt (line 6)) (4.1.1) Installing collected packages: greenlet, sqlalchemy, scramp, pillow, pg8000, google-cloud-sqlcommenter, Flask-SQLAlchemy Successfully installed Flask-SQLAlchemy-2.5.1 google-cloud-sqlcommenter-2.0.0 greenlet-2.0.1 pg8000-1.16.6 pillow-8.4.0 scramp-1.2.0 sqlalchemy-1.4.46 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available. You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command. Removing intermediate container d14b28068c41 ---> c4647cbd796f Successfully built c4647cbd796f Successfully tagged us-central1-docker.pkg.dev/qwiklabs-gcp-02-1609c8b7c019/gmemegen/gmemegen-app:v1 student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ docker push ${REGION}-docker.pkg.dev/${PROJECT_ID}/gmemegen/gmemegen-app:v1 The push refers to repository [us-central1-docker.pkg.dev/qwiklabs-gcp-02-1609c8b7c019/gmemegen/gmemegen-app] 63e33a4ba281: Preparing aa56b490d6bc: Preparing 7fa09efd4368: Preparing dabd68a63187: Preparing 7e8897f7b8f7: Preparing 680ae47c91ac: Preparing 7a6ef6a47b9e: Preparing e69ffe3cb4b0: Preparing 51ba4c88076a: Preparing eec00d67d5bb: Preparing 5fc7c2b27001: Preparing 1da2dad2c577: Preparing 55d69acce6f7: Preparing 27719bd9113a: Preparing c6536c6f849a: Preparing 46506d8e9a0b: Preparing 204850d3b902: Preparing 0fd6389d4235: Preparing e574ff69e423: Preparing 7e47b58b7cef: Pushed 6ee08aa47468: Pushed f0f0734adbb2: Pushed 5d19ad18b108: Pushed 2d3ee6e6c217: Pushed cd408f7623af: Pushed 0b6b0cacd4b2: Pushed bbbb6b6cf09b: Pushed 6ca8686315b6: Pushed 9c2b7d0c8e89: Pushed 79a45871588c: Pushed bdfff16e8653: Pushed dc4f2875405c: Pushed v1: digest: sha256:dc79e45bf76f2e4ac5172b030c4ec8f91316f129355372553631ef2cbfa71fac size: 7008 student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ kubectl create -f gmemegen_deployment.yaml deployment.apps/gmemegen created student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ kubectl get pods NAME READY STATUS RESTARTS AGE gmemegen-77f8fd5f9b-mmjp9 0/2 ContainerCreating 0 10s student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ kubectl get pods NAME READY STATUS RESTARTS AGE gmemegen-77f8fd5f9b-mmjp9 2/2 Running 0 54s student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ kubectl get pods NAME READY STATUS RESTARTS AGE gmemegen-77f8fd5f9b-mmjp9 2/2 Running 0 80s student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ kubectl get pods NAME READY STATUS RESTARTS AGE gmemegen-77f8fd5f9b-mmjp9 2/2 Running 0 4m40s student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ kubectl get pods NAME READY STATUS RESTARTS AGE gmemegen-77f8fd5f9b-mmjp9 2/2 Running 0 18m student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ ls app cloudbuild.yaml0 cloud_sql_proxy CONTRIBUTING.md Dockerfile gmemegen_deployment.yaml README.md setup.sh student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ cat gmemegen_deployment.yaml # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. apiVersion: apps/v1 kind: Deployment metadata: name: gmemegen labels: app: gmemegen spec: selector: matchLabels: app: gmemegen template: metadata: labels: app: gmemegen spec: # This section describes the containers that make up the deployment containers: - name: gmemegen image: us-central1-docker.pkg.dev/qwiklabs-gcp-02-1609c8b7c019/gmemegen/gmemegen-app:v1 imagePullPolicy: Always ports: - containerPort: 8080 # Set env variables used for Postgres Connection env: - name: DB_USER valueFrom: secretKeyRef: name: cloudsql-db-credentials key: username - name: DB_PASS valueFrom: secretKeyRef: name: cloudsql-db-credentials key: password - name: DB_NAME valueFrom: secretKeyRef: name: cloudsql-db-credentials key: dbname # Change <INSTANCE_CONNECTION_NAME> here to include your GCP # project, the region of your Cloud SQL instance and the name # of your Cloud SQL instance. The format is $PROJECT:$REGION:$INSTANCE - name: cloudsql-proxy image: gcr.io/cloudsql-docker/gce-proxy:1.16 command: ["/cloud_sql_proxy", "-instances=qwiklabs-gcp-02-1609c8b7c019:us-central1:postgres-gmemegen=tcp:5432", "-credential_file=/secrets/cloudsql/credentials.json"] volumeMounts: - name: my-secrets-volume mountPath: /secrets/cloudsql readOnly: true volumes: - name: my-secrets-volume secret: secretName: cloudsql-instance-credentials student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ kubectl get pods NAME READY STATUS RESTARTS AGE gmemegen-77f8fd5f9b-mmjp9 2/2 Running 0 30m student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ kubectl get pods NAME READY STATUS RESTARTS AGE gmemegen-77f8fd5f9b-mmjp9 2/2 Running 0 31m student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ kubectl get pods NAME READY STATUS RESTARTS AGE gmemegen-77f8fd5f9b-mmjp9 2/2 Running 0 37m student_02_6dfef3949fac@cloudshell:~/gmemegen (qwiklabs-gcp-02-1609c8b7c019)$ Problem: "Check my progress" of Task #2 of the Connect an App to a Cloud SQL for PostgreSQL Instance lab gives message "Please ensure you have successfully deployed gMemegen to cluster postgres-cluster." despite the fact that "kubectl get pods" command shows 2 pods running. Many other user faced the same issue. This task's progress check is broken.

Pavol K. · Vor etwa 3 Jahre überprüft

Desotech 0. · Vor etwa 3 Jahre überprüft

태영 장. · Vor etwa 3 Jahre überprüft

Hot garbage

MYKOLA L. · Vor etwa 3 Jahre überprüft

NOT WORKING!!!!

MYKOLA L. · Vor etwa 3 Jahre überprüft

Syed H. · Vor etwa 3 Jahre überprüft

PLEASE HELP !!! Task 2. Deploy a lightweight GKE application Line 32 in cloud shell editor: image: us-central1-docker.pkg.dev/$qwiklabs-gcp-04-8b38ccfd79c4/gmemegen/gmemegen-app:v1 line 60: "-instances=$qwiklabs-gcp-04-8b38ccfd79c4:us-central1:postgres-gmemegen=tcp:5432", Cloudshell ERROR before Checkbox getting Green ? student_03_7bea17ac1812@cloudshell:~/gmemegen/gmemegen (qwiklabs-gcp-04-8b38ccfd79c4)$ kubectl get pods NAME READY STATUS RESTARTS AGE gmemegen-59489c676-2jvk9 0/2 CrashLoopBackOff 6 (4m17s ago) 10m student_03_7bea17ac1812@cloudshell:~/gmemegen/gmemegen (qwiklabs-gcp-04-8b38ccfd79c4)$ kubectl get pods NAME READY STATUS RESTARTS AGE gmemegen-59489c676-2jvk9 0/2 Error 7 (5m13s ago) 10m student_03_7bea17ac1812@cloudshell:~/gmemegen/gmemegen (qwiklabs-gcp-04-8b38ccfd79c4)$ Task 3. Connect the GKE application to an external load balancer Checkbox FAILED after last Cloud Shell command Task 4. Verify full read/write capabilities of application to database Checkbox FAILED after Open Cloud Shell Command Feel free to contact me: student-03-7bea17ac1812@qwiklabs.net - Thank You

Manuel B. · Vor etwa 3 Jahre überprüft

Mukesh S. · Vor etwa 3 Jahre überprüft

good content, but checking progress after first task does not work, even tough everything is working as expected

Thomas K. · Vor etwa 3 Jahre überprüft

This lab is faulty - second time in the row the task #2 check failed with error message "Please ensure you have successfully deployed gMemegen to cluster postgres-cluster." get pods shows pods up and running

Pavol K. · Vor etwa 3 Jahre überprüft

Xinhua H. · Vor etwa 3 Jahre überprüft

Grzegorz W. · Vor etwa 3 Jahre überprüft

Mokshi D. · Vor etwa 3 Jahre überprüft

Andrea X. · Vor etwa 3 Jahre überprüft

Wir können nicht garantieren, dass die veröffentlichten Rezensionen von Verbrauchern stammen, die die Produkte gekauft oder genutzt haben. Die Rezensionen werden von Google nicht überprüft.