kubernetes / website

Kubernetes website and documentation repo:
https://kubernetes.io
Creative Commons Attribution 4.0 International
4.49k stars 14.41k forks source link

Deploy a Replicated Stateful Application getting fails with Error: ErrImagePull #46253

Open Sivakajan-tech opened 5 months ago

Sivakajan-tech commented 5 months ago

This is a Bug Report I tried to deploy a Replicated Stateful Application(MySQL) with the guidance of this documentation in the kubernetes. I tried this in the minikube in Ubuntu 22.04.4 LTS. When I apply the service, config and the statefulset yaml file, I got an error of Init:ImagePullBackOff. and only one pod get exposed.(expected 3)

Screenshot 2024-05-07 at 20 58 25

And also when I check the events I got the following response.

19m         Warning   Failed             pod/mysql-0         Error: ErrImagePull
15m         Normal    BackOff            pod/mysql-0         Back-off pulling image "gcr.io/google-samples/xtrabackup:1.0"
19m         Warning   Failed             pod/mysql-0         Error: ImagePullBackOff
11m         Normal    Scheduled          pod/mysql-0         Successfully assigned default/mysql-0 to minikube
11m         Normal    Pulled             pod/mysql-0         Container image "mysql:5.7" already present on machine
11m         Normal    Created            pod/mysql-0         Created container init-mysql
11m         Normal    Started            pod/mysql-0         Started container init-mysql
10m         Normal    Pulling            pod/mysql-0         Pulling image "gcr.io/google-samples/xtrabackup:1.0"
10m         Warning   Failed             pod/mysql-0         Failed to pull image "gcr.io/google-samples/xtrabackup:1.0": [DEPRECATION NOTICE] Docker Image Format v1 and Docker Image manifest version 2, schema 1 support is disabled by default and will be removed in an upcoming release. Suggest the author of gcr.io/google-samples/xtrabackup:1.0 to upgrade the image to the OCI Format or Docker Image manifest v2, schema 2. More information at https://docs.docker.com/go/deprecated-image-specs/
10m         Warning   Failed             pod/mysql-0         Error: ErrImagePull
103s        Normal    BackOff            pod/mysql-0         Back-off pulling image "gcr.io/google-samples/xtrabackup:1.0"
10m         Warning   Failed             pod/mysql-0         Error: ImagePullBackOff

I want to deploy a MySQL stateful set with 3 instances using a common storage as the storage.

Page to Update: https://kubernetes.io/docs/tasks/run-application/run-replicated-stateful-application/#statefulset

Kubernetes Version $ kubectl version Client Version: v1.29.1 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.30.0

pranav-pandey0804 commented 5 months ago

/sig cluster-lifecycle

sftim commented 5 months ago

/remove-sig cluster-lifecycle

sftim commented 5 months ago

The page doesn't specify AMD64 CPU as a requirement. As a minimum change, it should.

Sivakajan-tech commented 5 months ago

@sftim Could you please give me the corrected code?. I don't know where to specify that. THis could be helpful for others also.

sftim commented 5 months ago

Could you please give me the corrected code?. I don't know where to specify that. THis could be helpful for others also.

Someone (probably not me) would need to write the updated page. Right now, that has yet to happen.

Sivakajan-tech commented 5 months ago

@sftim Could you suggest the code please? That would be helpful for now....

sftim commented 5 months ago

I don't plan to put time into working out any part of the specific page changes that are needed; I am confident I have plenty of other contribution work already planned.

T-Lakshmi commented 3 months ago

/triage accepted