Questions tagged [kubernetes]
227 questions
16
votes
1 answer
Metallb vs Nginx Ingress in Kubernetes
From what I understand,
Metallb is a load balancer that assigns IP address to a service, which can be exposed to the outside world.
Nginx Ingress is just like normal nginx, but it resides in kubernetes and provides routing to different routes.
My…
Tahnik Mustasin
- 261
9
votes
5 answers
How to get the admin-user token from kubectl
New to Kubernetes I struggle to log into kubernetes dashboard.
I followed:
https://github.com/kubernetes/dashboard/wiki/Creating-sample-user
and
kubectl get clusterrolebinding admin-user -n kube-system -o yaml
shows:
apiVersion:…
tim
- 91
5
votes
1 answer
Where do Docker containers and Kubernetes pods write to disk in absence of a volume?
General question about the internals of Docker and containers running in Kubernetes when using the Docker engine.
Docker containers are ephemeral, meaning that if a container is destroyed, any data that was written to the internals of that container…
John Stone
- 153
4
votes
1 answer
Minikube fails to pull any images in MacOS
Trying to run any Pod in Minikube will fail with an ErrImagePull error:
$ kubectl get pods
utils 0/1 ErrImagePull 0 8m57s
Looking at the pod's logs, it shows that HTTP request timed out:
$ kubectl logs utils
shows something…
Marco Massenzio
- 478
4
votes
1 answer
Disk configuration on Ubuntu server for rook-ceph in kubernetes cluster
I recently set up my Kubernetes cluster with three worker and one master node, as storage service I'm using rook-ceph. As I know the rook pods require a raw disk in order to run the osd-pods.
Last time I managed to create them as well within a disk…
XH_P
- 41
4
votes
1 answer
Kubernetes and gcloud: how to stop using service account?
I work with a number of Google Cloud Services. Some of the Cloud Storage buckets where I work are in project-A, which is accessible from my own account, and some are in project-B, which I can only access with a service account. I activated the…
Nathan Ricke
- 101
3
votes
0 answers
Why do I get this error when trying to run Kuberentes/K3s: "setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE) failed"
Today I noticed I my Kuberentes/K3s cluster has a problem.
On the node that was defined in my ~/.kube/config file the API server was not running, so I could not use kubectl.
I studied the logfiles and noticed a "token parser error". The file…
Marc
- 529
3
votes
0 answers
New Rancher installation: Waiting for Kubernetes API to be available
After having problems with connectivity in my old (working completely fine until it didn't) Rancher installation in my homelab, I decided to reinstall my single-node Rancher installation on k3s (running on Ubuntu server) from scratch, hoping that…
Taxel
- 131
3
votes
0 answers
Kubernetes Rancher download logs with timestamp
I am using Rancher server and on individual pods I can check the logs. Is there a way to get the logs from individual pods with the associated timestamp?
magladde
- 141
3
votes
1 answer
Kubernetes a job is moved to another pod
A long running job (45h) is moved to another pod causing it to restart.
From the logs I can see that the job received a SIGTERM then it was restarted on another pod and probably on another node too.
The informations retrieved in google cloud are not…
3
votes
3 answers
How pods communicate in Kubernetes
I have a question regarding Kubernetes networking.
I know that in Docker swarm if I want to run different containers on different servers, I need to create an overlay network, and then all the containers (from all the servers) will be attached to…
user990631
- 31
2
votes
1 answer
How to configure multiple old desktops as Kubernetes cluster?
I have been accruing some old gaming PCs that my friends no longer need, and I would like to turn them into a place to run Kubernetes clusters. I am hoping to come up with a somewhat high availability and want to be efficient in using the hardware I…
drjellybean
- 71
2
votes
1 answer
Get rid of search domain in Kubernetes pod's /etc/resolv.conf
After switching to a new router, I realized my pods inside my Kind Kubernetes cluster cannot access internet.
$ kubectl run --rm utils2 -it --image arunvelsriram/utils bash
# inside the container now
$ ping google.com
PING…
Ali Ok
- 31
2
votes
2 answers
How to add additional scrape config for Prometheus on kubernetes?
I have cloned and started the
https://computingforgeeks.com/setup-prometheus-and-grafana-on-kubernetes/
kube-prometheus project on my local. I want to add additional scrap config to retrieve custom metrics from another source. I…
2
votes
1 answer
can't find a newly created secret in a kubernetes cluster
First I create a namespace "foo" using this .yaml file :
apiVersion: v1
kind: Namespace
metadata:
name: foo …
Tomas.R
- 195