Questions tagged [kubectl]

48 questions
9
votes
1 answer

How could I find the Kubernetes POD restart reasons

In have scaled my pods to 20 in my cluster and when I see the next day the few of the scaled pods were recreated. When I say POD recreated, it is getting deleted and created freshly and the timestamp of the recreated pod and the scaled pods vary. I…
Nikhil
  • 151
  • 1
  • 1
  • 6
5
votes
1 answer

enable ephemeral containers AWS EKS

I'm trying to debug a distroless POD by trying kubectl debug which uses ephemeral containers that are disabled by default in aws eks. I'm using aws eks 1.21 ✗ kubectl debug -it opentelemetry-collector-agent-6hqvf --image=busybox…
DmitrySemenov
  • 755
  • 2
  • 14
  • 27
4
votes
1 answer

Kubernetes: Pod IP address is out of range specified in --pod-network-cidr

After upgrading to v1.24.0 (after Dockershim removal), I had to install cri-dockerd, then I did the following: sudo kubeadm init --pod-network-cidr=10.244.0.0/16 --cri-socket=unix:///var/run/cri-dockerd.sock…
TheDHM
  • 101
  • 6
3
votes
1 answer

Connection to a private k8s cluster: failed to find any PEM

I have a Kubernetes cluster which is running in a private cloud. I want to run some commands from another VM but I receive this: [root@runner-tmp ~]# kubectl get pods --kubeconfig local-cluster.yaml error: tls: failed to find any PEM data in…
DobreMihaela
  • 41
  • 1
  • 6
2
votes
0 answers

Kubernetes on Flatcar Linux will not start up kube API server after a reboot of the master node

Thank you for reading and taking your time to review this problem. I have a problem using my Kubernetes cluster. It is running Flatcar Linux, made by Kinvolk, recently acquired by Microsoft. I have setup the cluster using their Lokomotive (lokoctl)…
jonasclaes
  • 101
  • 7
2
votes
1 answer

How to load configmap from a properties file using kustomize?

I have tried using kustomize to load properties file as a configmap. For that, I created a sample set as in github link. With base files: #kustomize build base apiVersion: v1 data: config: |- dbport=1234 dcname=sfsdf dbssl=false …
Sara June
  • 389
  • 4
  • 15
2
votes
3 answers

How to delete all namespaces except the kube-system in K3s cluster

I have a K3s cluster with system pods (i.e. kube-system namespace) and my application pods: kube-system pod/calico-node-xxxx kube-system pod/calico-kube-controllers-xxxxxx kube-system …
solveit
  • 255
  • 2
  • 11
2
votes
1 answer

Deleting all instances of resource type across multiple/all Kubernetes namespaces

I'm trying to uninstall and reinstall cert-manager on our Kubernetes clusters. Their uninstall docs mention: Before continuing, ensure that all cert-manager resources that have been created by users have been deleted. You can check for any existing…
1
vote
1 answer

How can I change the local port kubectl uses to establish a connection?

I want kubectl to use a different local port- not 22. Is this configurable? Is this something I have to configure in ssh? I want to create an ssh tunnel with IAP first and have kubeclt use that to connect to a private cluster. I create the tunnel…
red888
  • 4,069
  • 16
  • 58
  • 104
1
vote
0 answers

which K3S ports should (not) be exposed on a public interface

The K3S documentation explains which ports are required for this kubernetes distribution to work. What it does NOT explain is, which of these ports are OK to be open on a public interface. K3S seem to deal with the following ports Master 6443/tcp…
tcurdt
  • 363
  • 3
  • 9
1
vote
0 answers

Pod coredns stuck in ContainerCreating state with Weave on k8s

First of all, let me thank you for this amazing guide. I'm very new to kubernetes and having a guide like this to follow helps a lot when trying to setup my first cluster! That said, I'm having some issues with creating deploytments, as there are…
Clebson
  • 113
  • 1
  • 6
1
vote
1 answer

EKS Pods with ephemeral-storage constantly evicted

I'm working on EKS v1.20.11-eks-f17b81 and I'm facing an issue with a Java container Alpine based. Basically my deployment have the limits of ephemeral-storage for the request's and also the limit's like this. - containerPort: 8080 protocol:…
1
vote
3 answers

Kubernetes API server not able to register master node

I was trying to create a Kubernetes Cluster using kubeadm. I had spin up an Ubuntu 18.04 server, installed docker (made it sure that docker.service was running), installed kubeadm kubelet and kubectl. The following are the steps that I did: sudo…
arjunbnair
  • 25
  • 1
  • 2
  • 8
1
vote
1 answer

Pods on two different nodes communicate very slow, any idea why?

I am learning k8s and I have 3 nodes k8s cluster. I have just recently deployed k8s with kubeadmin and so far it is working great. everything working perfectly but the only problem that I am facing is network throughput. my three nodes and replica…
user3852599
  • 33
  • 1
  • 5
1
vote
1 answer

Kubernetes certificate with Letsencrypt

I want to create a certificate with letsencrypt. When I run the this yml apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: grafana-tls namespace: grafana type: "kubernetes.io/tls" spec: secretName: grafana-tls issuerRef: …
Stefan
  • 117
  • 5
1
2 3 4