Deploy a Replicated Stateful Application getting fails with Error: ErrImagePull

Open Beginner friendly
#46,253 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
Half a day
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
kubernetes, mysql

Research direction

Start with the StatefulSet section of the linked Kubernetes documentation page and compare its example with the reported kubectl events for gcr.io/google-samples/xtrabackup:1.0. Reproduce the deployment on the stated Kubernetes and minikube versions, then verify that the example no longer produces ErrImagePull and creates the expected three pods.

Written by the indexing model from the issue text.

Description

kind/bug lifecycle/rotten needs-sig needs-triage sig/apps

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

Dominant language
HTML
Stars
5.4k
Forks
15.7k
Avg merge
4d 10h
Merged PRs (30d)
228

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from kubernetes/website

All issues in kubernetes/website

Similar issues

More Databases issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.