Questions tagged [kubectl]
73 questions
0
votes
0 answers
Error While installing Calico CNI
I have a Kubernetes cluster with 1+1 configuration .
I used the following steps to install Calico
curl https://docs.projectcalico.org/manifests/calico-typha.yaml -o calico.yaml
kubectl apply -f calico.yaml
But the pods are not…

Anvay
- 13
- 3
0
votes
0 answers
keycloak: The plain HTTP request was sent to HTTPS port
I have installed a keycloak software in the default namespace but when I access the URL on the browser getting the error "The plain HTTP request was sent to HTTPS port" can anyone suggest to me what I need to correct in my conf?
$ cat…

Pradeep Kumar
- 1
- 3
0
votes
1 answer
Kubernetes Ingress not properly routing traffic
I am trying to host a simple website using Kubernetes. I am trying to use a K8s deployment, service and an ingress to route the traffic from the external into the application running inside the pod.
The below is my YAML configuration…

arjunbnair
- 143
- 1
- 2
- 11
0
votes
0 answers
How to enable Cluster Autoscaler for a cluster setup with kops
Im trying to setup a cluster autoscaler. after following docs and trying from this thread to do one , i wasn't able to create one.
Created a Cluster using kops cli
kops create cluster --name=pavan.k8s.local --zones=us-east-1a --cloud=aws…

Pavan Bhat
- 1
- 1
0
votes
1 answer
Kubelet is in running state but kubectl is giving connection to the server refused error
Kubernetes cluster was working fine earlier, Started getting issues running kubectl commands after restarting the master node (1.0.0.0). When I run kubectl get nodes command I am getting below error.
# kubectl get nodes
The connection to the server…
Gopi
0
votes
0 answers
kube-apiserver.service failing after complete reinstall of kubernetes and kubectl plugins
I'm having an issue where kube-apiserver.service will always fail on my local Fedora 36.
Getting the namespaces from a context I was experiencing certificate issues that prevented me from succeeding. I was using kubens and getting the error:
>…

WildWilyWilly
- 1
- 3
0
votes
0 answers
Maintaining same version of kubectl client and server version same in CentOs
Recently we upgraded the kubeadm in of kubernetes cluster. Unfortunately it happened to be both my client and server kubectl got upgraded to 2 different versions. I tried to downgrade, for some reason my server version is not same as the client. How…
0
votes
0 answers
Can I write a one-liner to kubectl exec -it into GKE pod via a bastion host using gcloud compute ssh?
We run our production Rails app on GKE, and we require all production access to go through a Bastion host.
To access it, I SSH into the Bastion host:
gcloud compute ssh --project=myproject --zone=myzone bastion-vm
Once that connects, I get the name…

JakeRobb
- 105
- 6
0
votes
1 answer
Fix the KubeletHasDiskPressure in Kubernetes on a very limited server
I have a question regarding our local Kubernetes installation (Kubelet version == 1.24.4).
We're having a Kubernetes installation installed using Kubespray.
I'm aware of a few related questions/answers in Stackoverflow regarding fixing the…

Michel Gokan Khan
- 183
- 2
- 14
0
votes
1 answer
Cannot properly edit and save worker node specs in Kubernetes
I have a Kubernetes cluster setup using KubeAdm (Setup in EC2 instances in AWS Cloud). The CNI used is Flannel and the cluster is running quite well. My requirement is that I am trying to setup KubeVirt (https://kubevirt.io/) in my Cluster to…

arjunbnair
- 143
- 1
- 2
- 11
0
votes
1 answer
Calico Kubernetes Network Policy is denying all traffic and not working as expected
I am trying to implement some Calico based Kubernetes Network Policies. I have already setup Calico in my cluster and all the Calico based pods are running fine.
In my cluster, There are two pods.
1. An Nginx pod
2. An Apache pod
My requirement is…

arjunbnair
- 143
- 1
- 2
- 11
0
votes
0 answers
Calico deployment not saving tolerance for master node
I was trying to setup a Kubernetes Cluster using Amazon EC2 and Kubeadm.
I created a 't2.large' EC2 instance based on Ubuntu 18.04 AMI. Setup kubeadm, kubelet, kubectl and docker as the container runtime.
Ran the kubeadm init…

arjunbnair
- 143
- 1
- 2
- 11
0
votes
1 answer
Can I connect to several Kubernetes clusters simultaneously - each in different terminal session?
I have 4 kubernetes clusters I need to switch between to check or monitor - sometimes I quickly need to switch back and forth between them.
I see that the kubectl config context is 1 file for the user so if I have 10 terminal windows opened, they…

Borislav T
- 178
- 1
- 1
- 6
0
votes
1 answer
disable deprecated resource automatic conversion
I’m trying to purposefully create K8S resources with deprecated apiVersion for test purposes, but keep ending up with a converted resource to the non-deprecated apiVersion. I don’t understand why it’s happening and can’t find any discussion/topic on…

Nicolas Goudry
- 143
- 8
0
votes
1 answer
Kubernetes k3s master node fails to ready with FailedCreatePodSandBox errors
I'm trying to setup a small 4 worker node cluster atm and I just installed k3s on my raspberry pi 4s (8gb) and I'm getting a NotReady status. I'm new to kubernettes/k3s, but I believe with a totally fresh install, things should 'just work'. I have…

neogeek23
- 101
- 1
- 1