Questions tagged [kubectl]

The Kubernetes command-line tool, kubectl, allows you to run commands against Kubernetes clusters. You can use kubectl to deploy applications, inspect and manage cluster resources, and view logs.

3648 questions
1
vote
1 answer

How to get token from service account?

I'm new to Kubernetes. I need to get token from service account which was created by me. I used kubectl get secrets command and I got "No resources found in default namespace." as return. Then I used kubectl describe serviceaccount…
racketer
  • 345
  • 1
  • 5
  • 9
1
vote
0 answers

Webhook failing in rabbtimq

I have install rabbitmq cluster using rabbitmq cluster operator. I have also added rabbitmq topology operator. I am trying to create queues using rabbitmq topology operator using following yml file kind: Queue metadata: name:…
1
vote
1 answer

Improving Web Performance Deployed on Okteto

I'm new in website deployment. I have this assignment where I have to deploy an existing website using kubernetes and improve its performance by doing auto scaling. I choose this app https://github.com/IBM/MAX-Image-Caption-Generator-Web-App. I…
Shannia
  • 61
  • 7
1
vote
2 answers

Specifying Which Kubernetes Namespaces to Display Resources from with the CLI Only

Is it possible to display Kubernetes (K8s) resources from multiple specified namespaces with only the CLI (kubectl)? In other words, given two namespaces in a K8s cluster: kubectl get namespaces \ --output=go-template \ --template='{{ range .items…
Mike
  • 1,080
  • 1
  • 9
  • 25
1
vote
2 answers

Move pods from one nodegroup of 2 nodes to another nodegroup of 3 nodes

we have an application deployed on AWS EKS, with these components: Apache Artemis JMS PostgreSQL Kafka and some application stateless pods made in node.js Which is the best approach to move the entire application from one nodegroup to another? We…
Mario Stefanutti
  • 232
  • 4
  • 22
1
vote
2 answers

Permission denied using kubectl but able to run helm

I am facing permission denied errors when using kubectl for all commands, be get pods or apply, but I am able to use helm and login with k9s to perform destructive actions. I am using the same context for all of these actions. kubectl get nodes #…
robcxyz
  • 74
  • 2
  • 11
1
vote
1 answer

Minikube start command taking long time

Going through blogs/official sites, I installed kubectl and minikube. After successful installation of both, I executed the following command. minikube start --driver=hyperv After executing the above command I am struck and the process is not…
akhil
  • 1,649
  • 3
  • 19
  • 31
1
vote
0 answers

Docker: Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/ (Path here) /merged : too many levels of symbolic links

I am trying to run minikube with the following command: minikube start --driver=docker but it keeps giving me this error: docker: Error response from daemon: error creating overlay mount to…
Sanyam
  • 11
  • 4
1
vote
0 answers

agent node can't register external ip with server node

Here is server service unit: ExecStart=/usr/local/bin/k3s \ server \ ... '--tls-san' \ '106.xxx.xxx.xxx' \ '--node-ip' \ '106.xxx.xxx.xxx' \ '--node-external-ip' \ '106.xxx.xxx.xxx' \ …
Martini
  • 11
  • 1
1
vote
3 answers

Is there an option to copy image between nodes in kubernetes cluster?

I have a case where we have to patch the docker image in k8s node and retag it to start over the old one. This process ain't so easy and obvious, because I have several nodes. Therefore, could I do retag process only on one node and then copy a new…
1
vote
1 answer

unable to delete, modify or change the creationTimestamp in a Kubernetes CRD object

I am trying to update a custom resource: kubectl edit ticketservice r134-4979a2f6-f46d-405d-97bc-ab1ba -n 2b9aea53dbfc47a apiVersion: ticketservice.ias.alpha.com/v1alpha1 kind: TicketService metadata: annotations: foo: bar baz: bux ..…
Oliver Williams
  • 5,966
  • 7
  • 36
  • 78
1
vote
1 answer

Kubernetes error when forwarding a port - Connection refused

I'm trying to port-forward my kubernetes service (through minikube) using the following command: kubectl port-forward svc/hapi-fhir-server 8080:8080 --address=0.0.0.0 But after trying to reach localhost:8080 I get the following error: "....... an…
1
vote
1 answer

Can I use flags , while performing the kubectl scale deployment commands?

I am having a small shell script . it has the following snippet of code kubectl scale deployment sample1 --replicas=0 -n sb1 kubectl scale deployment sample1 --replicas-3 -n sb1 The first command is scale down my deployment and the second command…
prasanth
  • 335
  • 1
  • 3
  • 10
1
vote
3 answers

Setting absolute path does not work in Go for kubeconfig

I am making a call to kubectl from with a Go module like so: getNsCmd := cmd.NewCmd("kubectl", "--kubeconfig", "~/.kube/", "get", "ns") It works if I set the path like this: getNsCmd := cmd.NewCmd("kubectl", "--kubeconfig",…
NayefMusa
  • 11
  • 6
1
vote
2 answers

kubectl run not creating deployment

I'm running Kubernetes with docker desktop on windows. DD is up-to-date, and the kubectl version command returns 1.22 as both the client and server version. I executed kubectl run my-apache --image httpd, then kubectl get all, which only…
Dr. Andrew
  • 2,532
  • 3
  • 26
  • 42