Category "kubectl"

kubectl substring match using go-template

I am trying to find a way to match a substring in the go-template in kubectl. I am only able to find operators like those listed below, however, none of them is

query cpu request and limit for each containers in kubernetes context / namespace with kubectl

Is there a way query cpu request and limit with kubectl for each container in a kubernetes context / namespace, just as I can query cpu usage with kubectl top p

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 e

minikube - EXTERNAL-IP remains <pending>

My Service definition is as follows # SOURCE: https://cloud.google.com/kubernetes-engine/docs/tutorials/guestbook apiVersion: v1 kind: Service metadata: name:

deleting minikube cluster so I can create a larger cluster with more CPUs

I need to run sudo minikube start --memory=4096 --cpus=2 for my use case. However it is running with 1 cpu already. Somehow I started it w/o creating an entr

Unable to connect to remote Kubernetes cluster

When I attempt to connect to a remote Kubernetes cluster with kubectl cluster-info I am getting an error as in the image below : Trying to curl the cluster als

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: e

error parsing loadbalancer.yaml: error converting YAML to JSON: yaml: line 4: found character that cannot start any token

I ran this yaml file using kubectl apply -f loadbalancer.yaml command, but got "error parsing loadbalancer.yaml: error converting YAML to JSON: yaml: line 4: fo

Determine Kubernetes cluster size

I am confused in finalize the cluster size for my QA kubernetes deployment which can be used by 150 people. Follwing are the services i need to deploy: 6 Spring

AKS error - Unable to connect to the server: x509: certificate signed by unknown authority

I have docker desktop and kubectl installed , I am trying to connect to cluster from my local pc and getting above error here is my kubeconfig file apiVersion:

minikube cluster will not pull in images

I am having issues pulling in my images of my minihkube kubemaniest file for what ever reason. Here is how it looks: apiVersion: v1 items: - apiVersion: v1

Docker-Desktop for MAC Kubernetes not creating secrets or token for serviceaccounts

I'm just trying to create a simple service account. Theoretically, kubectl automatically creates the secret and token for service accounts... But, not in my cas

kubectl get service --all-namespace filter out by if Ready matches Available

Looking for query/filter to list only certain deployments: if AVAILABLE column matches READY Example: NAMESPACE NAME READY UP-TO-DATE AVAILABLE app1 app1 1

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

Unable to connect to AWS EKS cluster

I am configuring an EKS cluster using terraform in a private subnet and trying to access it using a VPN in a public subnet. When I configured it, it works fine

How to get the argo workflow age in seconds using kubectl command

Is there a way to fetch a specific argo workflow age in seconds using kubectl command? I've a requirement for comparing the argo workflow age. If the workflow a

Unable to Copy data from POD to local using kubectl cp command

I need to copy dump data from pod to local. Below the commands I am trying but I am getting error: unexpected EOF kubectl cp device-database-79fc964c8-q7ncc:tmp

How to display only positive change in Grafana graph?

I am using kube-stats-metrics with kube_pod_container_status_last_terminated_reason as a gauge. The gauge can be reporter for few minutes even hours. But I just

Get node status with kubectl custom-columns [closed]

I'm experimenting with kubectl -o=custom-columns and I wonder if there is a way to get node status. I'm can get the nodename with this k

Get node status with kubectl custom-columns [closed]

I'm experimenting with kubectl -o=custom-columns and I wonder if there is a way to get node status. I'm can get the nodename with this k