Questions tagged [kubectl]

73 questions
0
votes
1 answer

Pod running kubectl trying to reach external cluster

I am using a pod (image bitnami/kubectl) in a kubernetes cluster (clusterA) but kubeconfig is set to point to another cluster (clusterB). Using on premises kubernetes 1.21.7 (on VMs) installed via kubeadm. kubeconfig used: apiVersion: v1 kind:…
brgsousa
  • 215
  • 1
  • 4
  • 11
0
votes
1 answer

Kubernetes error "Unable to attach or mount volumes"

I deployed bitnami/wordpress helm using nginx ingress as loadbalancer like here. Everything working fine but problem is with some pods when they are created manually or automaticly by autoscaling. Some of them (not all) have all time…
Don Don Don
  • 1
  • 1
  • 3
0
votes
1 answer

How do I create an internal Layer 4 load balancer in Kubernetes?

I am trying to create an internal (no external IP) layer 4 load balancer in AWS - either a Network LB or Classic LB - for internal traffic management instead of using the kube-proxy. Below is my manifest file - it keeps creating an external LB…
Nova
  • 111
  • 4
0
votes
2 answers

How to reinstall consul on a different namespace?

I have installed consul on default namespace using helm. helm install -f config.yaml consul hashicorp/consul --version "0.32.1" I tried uninstall of consul using helm delete consul And installing again using. kubectl create namespace consul helm…
Sara June
  • 451
  • 1
  • 9
  • 28
0
votes
1 answer

Force deployment on Rancher when AWS CodeBuild produces a new container image

I have a Rancher 2.5 cluster running on AWS EKS. My CI is done in CodeBuild via a webhook to a Github repo. The buildspec.yml works fine to run the build, tag the containers and then send them to my private registry on AWS ECR, but I have not found…
Juan Jimenez
  • 870
  • 1
  • 7
  • 13
0
votes
1 answer

Kubernetes limit number of simultaneous pod restarts over whole cluster

We have a 6 node Kubernetes cluster running around 20 large replica set workloads (Java services). Each workload pod (1 pod per workload) takes about 30 seconds on average to start and use a lot of CPU. This makes starting multiple pods/workloads at…
mogoman
  • 101
  • 3
0
votes
1 answer

kubectl error: cannot add key dashboard.yaml, another key by that name already exists

Our system architect left and I'm thrown into a deep water managing Kubernetes cluster. I'm trying to update ssl-secret on our kubernetes cluster, using the following command kubectl -n zone-system create secret generic ssl-secret \ …
igalsc
  • 11
  • 4
0
votes
1 answer

How to renew a certificate in Kubernetes 1.12

Hi I am currently working on renewing my certificate on Kubernetes version 1.12. The certificate expires after a month. Before the certificate expires We need to renew the certificate and apply it to all systems to make the service work. Does anyone…
서학용
  • 1
  • 1
0
votes
1 answer

Running kubectl commands as cronjobs in the Kubernetes cluster results in a connection refused error

When running a kubectl command using the bitnami/kubectl image from inside a kubernetes (EKS based) cluster I am expecting the command to pick up the KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT environment variables and connect to the local…
Adam C
  • 5,222
  • 2
  • 30
  • 52
0
votes
1 answer

How to mount a mke2fs image file as a volume in kubernetes?

I am new to k8s, but have been exploring persistent volumes, and the ability to actually limit capacity is only in alpha stage, and needs to be manually enabled to work per:…
R. StackUser
  • 101
  • 1
-1
votes
1 answer

Sonarqube app pod is not connecting with PostgreSQL DB pod when deploying to Kubernetes

I am trying to setup SonarQube in a Kubernetes cluster. The cluster was made using KubeADM in the AWS cloud. I have the following files for the setup. Sonarqube App Deployment file Sonarqube App Secrets file Sonarqube-PostgreSQL Deployment…
arjunbnair
  • 143
  • 1
  • 2
  • 11
-1
votes
1 answer

What is the Path API for kubectl top pods

I use this command "kubectl top pods" using Kubectl command I need path api for this command I need return data from this command "kubectl top pods" via api
-1
votes
1 answer

Kube-proxy pod not starting v1.21.3

I have delete kube-proxy pod from my master nodes to get the new kube-proxy configmap values, when I reboot the node still kube-proxy is not coming up ? How to start the kube-proxy? # crictl ps CONTAINER ID IMAGE CREATED …
sfgroups
  • 243
  • 2
  • 4
  • 14
1 2 3 4
5