Issue in the lab "Implement DevOps in Google Cloud: Challenge Lab"

Hello,

I tried a few time to accomplish lab "Implement DevOps in Google Cloud: Challenge Lab", but there's an issue. Unfortunately, Cloud Skill Boost Support didn't help. Here is my commands and outputs:

student_03_618f8bc668d4@cloudshell:~ (qwiklabs-gcp-03-f87c7c6c5a86)$ gcloud config set compute/zone us-east1-b
Updated property [compute/zone].

student_03_618f8bc668d4@cloudshell:~ (qwiklabs-gcp-03-f87c7c6c5a86)$ git clone https://source.developers.google.com/p/$DEVSHELL_PROJECT_ID/r/sample-app
Cloning into 'sample-app'...
remote: Total 48 (delta 13), reused 48 (delta 13)
Receiving objects: 100% (48/48), 26.45 KiB | 6.61 MiB/s, done.
Resolving deltas: 100% (13/13), done.

student_03_618f8bc668d4@cloudshell:~ (qwiklabs-gcp-03-f87c7c6c5a86)$ gcloud container clusters get-credentials jenkins-cd
Fetching cluster endpoint and auth data.
kubeconfig entry generated for jenkins-cd.

student_03_618f8bc668d4@cloudshell:~ (qwiklabs-gcp-03-f87c7c6c5a86)$ kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user=$(gcloud config get-value account)
Your active configuration is: [cloudshell-28254]
clusterrolebinding.rbac.authorization.k8s.io/cluster-admin-binding created

student_03_618f8bc668d4@cloudshell:~ (qwiklabs-gcp-03-f87c7c6c5a86)$ export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/component=jenkins-master" -l "app.kubernetes.io/instance=cd" -o jsonpath="{.items[0].metadata.name}")

student_03_618f8bc668d4@cloudshell:~ (qwiklabs-gcp-03-f87c7c6c5a86)$ kubectl port-forward $POD_NAME 8080:8080 >> /dev/null &
[1] 633

student_03_618f8bc668d4@cloudshell:~/sample-app (qwiklabs-gcp-03-f87c7c6c5a86)$ printf $(kubectl get secret cd-jenkins -o jsonpath="{.data.jenkins-admin-password}" | base64 --decode);echo
UnCMrr3YMIwDernfezwO8f

student_03_618f8bc668d4@cloudshell:~ (qwiklabs-gcp-03-f87c7c6c5a86)$ cd sample-app
student_03_618f8bc668d4@cloudshell:~/sample-app (qwiklabs-gcp-03-f87c7c6c5a86)$ ls -l
total 48
-rwxr-xr-x 1 student_03_618f8bc668d4 student_03_618f8bc668d4 672 Nov 21 08:30 Dockerfile
-rwxr-xr-x 1 student_03_618f8bc668d4 student_03_618f8bc668d4 617 Nov 21 08:30 Gopkg.lock
-rwxr-xr-x 1 student_03_618f8bc668d4 student_03_618f8bc668d4 734 Nov 21 08:30 Gopkg.toml
-rwxr-xr-x 1 student_03_618f8bc668d4 student_03_618f8bc668d4 2270 Nov 21 08:30 html.go
-rwxr-xr-x 1 student_03_618f8bc668d4 student_03_618f8bc668d4 4547 Nov 21 08:30 Jenkinsfile
drwxr-xr-x 6 student_03_618f8bc668d4 student_03_618f8bc668d4 4096 Nov 21 08:30 k8s
-rwxr-xr-x 1 student_03_618f8bc668d4 student_03_618f8bc668d4 4187 Nov 21 08:30 main.go
-rwxr-xr-x 1 student_03_618f8bc668d4 student_03_618f8bc668d4 873 Nov 21 08:30 main_test.go
drwxr-xr-x 5 student_03_618f8bc668d4 student_03_618f8bc668d4 4096 Nov 21 08:33 sample-app
drwxr-xr-x 4 student_03_618f8bc668d4 student_03_618f8bc668d4 4096 Nov 21 08:30 vendor

student_03_618f8bc668d4@cloudshell:~/sample-app (qwiklabs-gcp-03-f87c7c6c5a86)$ kubectl create ns production
namespace/production created

student_03_618f8bc668d4@cloudshell:~/sample-app (qwiklabs-gcp-03-f87c7c6c5a86)$ kubectl apply -f k8s/production -n production
deployment.apps/gceme-backend-production created
deployment.apps/gceme-frontend-production created

student_03_618f8bc668d4@cloudshell:~/sample-app (qwiklabs-gcp-03-f87c7c6c5a86)$ kubectl get pods -n production
NAME READY STATUS RESTARTS AGE
gceme-backend-production-69b4f875c4-4lgjw 0/1 ErrImagePull 0 14s
gceme-frontend-production-647f8c6c5d-cshq6 0/1 ErrImagePull 0 14s

student_03_618f8bc668d4@cloudshell:~/sample-app (qwiklabs-gcp-03-f87c7c6c5a86)$ kubectl get pods -n production
NAME READY STATUS RESTARTS AGE
gceme-backend-production-69b4f875c4-4lgjw 0/1 ImagePullBackOff 0 5m29s
gceme-frontend-production-647f8c6c5d-cshq6 0/1 ImagePullBackOff 0 5m29s

student_03_618f8bc668d4@cloudshell:~/sample-app (qwiklabs-gcp-03-f87c7c6c5a86)$ kubectl describe pod gceme-backend-production-69b4f875c4-4lgjw -n production
...
Events:

Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 6m43s default-scheduler Successfully assigned production/gceme-backend-production-69b4f875c4-4lgjw to gke-jenkins-cd-default-pool-ca4c7166-xbxg
Normal Pulling 5m4s (x4 over 6m39s) kubelet Pulling image "gcr.io/cloud-solutions-images/gceme:1.0.0"
Warning Failed 5m3s (x4 over 6m39s) kubelet Failed to pull image "gcr.io/cloud-solutions-images/gceme:1.0.0": rpc error: code = Unknown desc = failed to pull and unpack image "gcr.io/cloud-solutions-images/gceme:1.0.0": failed to resolve reference "gcr.io/cloud-solutions-images/gceme:1.0.0": pulling from host gcr.io failed with status code [manifests 1.0.0]: 403 Forbidden
Warning Failed 5m3s (x4 over 6m39s) kubelet Error: ErrImagePull
Warning Failed 4m52s (x6 over 6m38s) kubelet Error: ImagePullBackOff
Normal BackOff 90s (x21 over 6m38s) kubelet Back-off pulling image "gcr.io/cloud-solutions-images/gceme:1.0.0"

 

So, as you can see my issue is related to the image gcr.io/cloud-solutions-images/gceme:1.0.0 which I'm not able to pull.

Does anyone know some workaround?

I'm looking forward to your reply.

​Best regards

0 0 285
0 REPLIES 0
Top Labels in this Space