I have just setup a kubernetes cluster on my raspberrypis (3 in total) and am getting this error when trying to pull a docker image from a public repo:
Failed to pull image "docker.io/jettech/kube-webhook-certgen:v1.2.2": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io: Temporary failure in name resolution
I have only found webpages which tell you to use a image pull secret but since it is a public repo im kinda confused... At work we didn't have to use a secret for public images.
This is the service that i am trying to deploy.
apiVersion: v1
kind: Service
metadata:
name: echo1
spec:
ports:
- port: 80
targetPort: 5678
selector:
app: echo1
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: echo1
spec:
selector:
matchLabels:
app: echo1
replicas: 1
template:
metadata:
labels:
app: echo1
spec:
containers:
- name: echo1
image: hashicorp/http-echo
args:
- "-text=echo1"
ports:
- containerPort: 5678
But it doesn't make a difference on what service i want to deploy even the ingress-nginx doesn't work:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.34.1/deploy/static/provider/do/deploy.yaml
Thanks in advance!