Questions tagged [kubernetes]
Kubernetes is an open source container cluster manager.
214 questions
0
votes
0
answers
15
views
Unexpected network namespace inode when accessing /var/run/netns/ from pod in host network namespace
I'm running a Kubernetes cluster with RKE2 v1.30.5+rke2r1 on Linux nixos 6.6.56 amd64, using Cilium CNI.
Here's the setup:
I have two pods (yaml manifests at the bottom):
Pod A (xfrm-pod) is running ...
-1
votes
1
answer
39
views
Is a multi-machine Vagrant a good choice to simulate a Kubernetes cluster?
I am in front of a book to teaching myself Kubernetes.
It has many chapters about handling a Kubernetes cluster, and it urges the reader to create an account on a cloud server, if he can. Else to ...
2
votes
1
answer
49
views
How does one run cron jobs in one container that does stuff in another?
I am on Kubernetes. I need to be able to write and run cron jobs in a pod. I can't use the CronJob workload. The solution I found is to run cron jobs from a cron sidecar container. I write cron jobs ...
0
votes
0
answers
38
views
creating VM snapshot using Virsh inside Kubevirt
I have a running virtual machine inside Kubevirt, Inside the virt-launcher of this VM I ran virsh to create a snapshot .
virsh snapshot-create-as \
--domain default_my-test-vm \
--diskspec vda,file=/...
0
votes
2
answers
68
views
Why are my network connections being rejected and the ping command between server does not work?
Cluster information:
kubectl version
Client Version: v1.29.14
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.14
Cloud being used: bare-metal
Installation method:
Host OS:...
0
votes
1
answer
26
views
Upgraded k8 worker node from ubuntu 20.04 to 22.04. DNS resolution/networking inside pods doesn’t work & pods keep crashing/restarting
I have a k8 cluster based on Ubuntu 20.04
1 master and 3 worker nodes.
I drained one of the worker node. Put kubectl,iptables, kubeadm, kubelet & containerd packages on hold.
OS upgrade to 22.04, ...
0
votes
0
answers
25
views
SSL status: PROVISIONING for more then 2 hours
I've created certificate, but it's status: PROVISIONING for more than 2 hours.
gcloud compute ssl-certificates describe mcrt-94a7195a-ffff-ffff-ffff-fb16fda2bf5f
creationTimestamp: '2025-02-24T03:17:...
0
votes
1
answer
13
views
simple svc and endpoint not working using curl
I have issue with simple po svc and endpoints. Curl work fine when I connect in nginx pod and do
curl 127.0.0.1
But when I try externaly from pod bu still in my cluster using Ip of svc it doesn't ...
0
votes
1
answer
73
views
Why did I got jq: 1 compile error?
I tried this script to see kubernetes volumes usage
k get pods -n elk | jq -s '[flatten | .[].pods[].volume[]? | select(has("pvcRef"))
''{name: .pvcRef.name, capacityBytes, usedBytes, ...
0
votes
0
answers
79
views
connection error for connecting to API server in kubernetes
I have error connection to api-server in k8s.
When i run "kubectl proxy &" and after that i run below command
curl http://192.168.56.101:8001/api/v1/namespaces/default/pods/emad
curl: (7)...
0
votes
1
answer
179
views
checking etcd cluster works correctly
when i run the command below, I got the error and my exit code is 1.Can anyone tell my why i got this error and how to fix it?
Thanks
kubectl exec etcd-master -- etcdctl member list
{"level":...
0
votes
1
answer
71
views
How do I change the default namespace used by kubectl?
When using kubectl, for various operations a namespace is required. Typically it uses default as the default namespace, and a different namespace can be set using -n. But in my work, all resources ...
0
votes
1
answer
40
views
the kubernetes promtail did not send logs to loki service
I have deploy the loki service and using this command to check the service deploy:
curl -H "Content-Type: application/json" \
-s -X POST "http://139.14.166.24:3100/loki/api/v1/push&...
0
votes
0
answers
259
views
invalid capacity 0 on image filesystem
Today when I add a new kubenretes(v1.30.0) node into cluster, the new nodes shows error:
invalid capacity 0 on image filesystem
in the new node I am using containerd, seems could not found the image ...
0
votes
0
answers
18
views
Error from server (NotFound): pods "texhub-server-service-77b9c7c85d-zcmgx" not found
When I am using this command to tried to copy file from kubernetes pod to local machine:
kubectl exec texhub-server-service-77b9c7c85d-zcmgx -- cat /app/profile.pdf > /Users/xiaoqiangjiang/profile....