ucloud / redis-cluster-operator

Redis Cluster Operator creates and manages Redis Clusters atop Kubernetes.
Apache License 2.0
380 stars 138 forks source link

Failure when using redis cluster backups #85

Open sflaherty2009 opened 3 years ago

sflaherty2009 commented 3 years ago

When using the redisclusterbackup kind utilizing persistant volumes I am met with the following failure.

---- ------ ---- ---- ------- Normal Scheduled 16m default-scheduler Successfully assigned ***/redisbackup-redis-asset-clusterbackup-kb8mj to 10.2.0.8 Normal SuccessfulAttachVolume 15m attachdetach-controller AttachVolume.Attach succeeded for volume "pvc-87aa3f62-38ec-4b9d-8569-3467882b5baf" Normal Pulling 14m (x2 over 14m) kubelet Pulling image "hub.ucloudadmin.com/uaek/redis-tools:5.0.4" Warning Failed 13m (x2 over 14m) kubelet Failed to pull image "hub.ucloudadmin.com/uaek/redis-tools:5.0.4": rpc error: code = Unknown desc = failed to pull and unpack image "hub.ucloudadmin.com/uaek/redis-tools:5.0.4": failed to resolve reference "hub.ucloudadmin.com/uaek/redis-tools:5.0.4": failed to do request: Head "https://hub.ucloudadmin.com/v2/uaek/redis-tools/manifests/5.0.4": dial tcp 172.31.154.254:443: connect: connection timed out Warning Failed 13m (x2 over 14m) kubelet Error: ErrImagePull Normal BackOff 13m (x3 over 14m) kubelet Back-off pulling image "hub.ucloudadmin.com/uaek/redis-tools:5.0.4" Warning Failed 13m (x3 over 14m) kubelet Error: ImagePullBackOff Normal BackOff 13m (x4 over 14m) kubelet Back-off pulling image "hub.ucloudadmin.com/uaek/redis-tools:5.0.4" Warning Failed 13m (x4 over 14m) kubelet Error: ImagePullBackOff Warning Failed 13m (x2 over 14m) kubelet Error: ImagePullBackOff Normal BackOff 4m35s (x35 over 14m) kubelet Back-off pulling image "hub.ucloudadmin.com/uaek/redis-tools:5.0.4"

It appears that the redis-tools are not available or have been moved to another location.

Snippet of deployment yaml

`--- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: redis-assetbackup namespace: test spec: accessModes:

apiVersion: redis.kun/v1alpha1 kind: RedisClusterBackup metadata: name: redis-assetbackup namespace: test annotations: redis.kun/scope: cluster-scoped spec: image: hub.ucloudadmin.com/uaek/redis-tools:5.0.4 redisClusterName: redis-asset local: mountPath: /back persistentVolumeClaim: claimName: redis-assetbackup`

currycan commented 3 years ago

How can I get the "hub.ucloudadmin.com/uaek/redis-tools:5.0.4" image? I tried to pull, it failed

tianshimoyi commented 3 years ago

Please take a closer look at the Makefile and run the command make build-tools