Create a k3d deployment / cluster using a docker image on local host

I have created a docker image from a flask app, I am using rancher desktop on mac and have used the following commands to create my cluster but i am receiving an imagePullBackOff status:

-k3d registry create test-registry.localhost --port 23456

  • k3d cluster create mycluster --api-port 127.0.0.1:6445 --servers 3 --agents 2 --port ‘8080:80@loadbalancer’ --registry-use k3d-test-registry:23456

-kubectl create deployment flaskDeploy --image=k3d-test-registry:23456/python-docker:latest

-kubectl create service clusterip nginx --tcp=80:80

kubectl apply -f n.cnf

n.cnf

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nginx
annotations:
ingress.kubernetes.io/ssl-redirect: “false”
spec:
rules:

  • http:
    paths:
    • path: /
      pathType: Prefix
      backend:
      service:
      name: nginx
      port:
      number: 80

But when I run kubectl get pods I get the following:
NAME READY STATUS RESTARTS AGE
nginx-6869d4f5f8-dx2sc 0/1 ImagePullBackOff 0 3m8s

any ideas on how to pull this image?

@Niki_Bolourchi Hi and welcome to the Forum :smile:
Rancher Desktop is just a single Alpine image application, not a cluster/agent setup?