I’m trying to learn kubernetes, and have set up a raspberry pi cluster with three Pi’s. I want to start with installing prometheus, which I have tried to install by running:
helm install monitoring prometheus-community/kube-prometheus-stack
however, it looks like it is stuck on this job:
mclean@tommclean:~/src/raspberry-pi-kubernetes-cluster/helm$ kubectl get jobs
NAME STATUS COMPLETIONS DURATION AGE
monitoring-kube-prometheus-admission-create Running 0/1 2m54s 2m54s
And looking at the logs of the single pod that is created:
mclean@tommclean:~/src/raspberry-pi-kubernetes-cluster/helm$ kubectl get pods
NAME READY STATUS RESTARTS AGE
monitoring-kube-prometheus-admission-create-8p2mb 0/1 CrashLoopBackOff 3 (39s ago) 3m23s
mclean@tommclean:~/src/raspberry-pi-kubernetes-cluster/helm$ kubectl logs monitoring-kube-prometheus-admission-create-8p2mb --previous
W1207 18:08:20.917960 1 client_config.go:615] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
{"err":"Get "https://10.43.0.1:443/api/v1/namespaces/default/secrets/monitoring-kube-prometheus-admission": dial tcp 10.43.0.1:443: i/o timeout","level":"fatal","msg":"error getting secret","source":"k8s/k8s.go:232","time":"2024-12-07T18:08:50Z"}
It looks like that the created pod cant get the secret from the main kubernetes server. Why is this error happening and how can I fix it?