Category "kubectl"

kubectl - How to edit service spec type to LoadBalancer via command line?

I have a k8s service of type clusterIP.. i need to change the below configuration via CLI the http port to https port the port number the type to Load Balancer

How to easily switch gcloud / kubectl credentials

At work we use Kubernetes hosted in GCP. I also have a side project hosted in my personal GCP account using Google App Engine (deploy using gcloud app deploy).

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 fir

kubectl: describe vs get -o <format>

In kubectl, both describe and get -o <format> can be used to get the details of a resource, I'm wondering what's the difference between the two? why does

Finding the name of a new pod with kubectl

I am new to k8s and I am running into a little problem here. Here's the context: I need to invoke kubectl delete [podname] via a crontask once a day, and wait

kubectl versions Error: exec plugin is configured to use API version client.authentication.k8s.io/v1alpha1

I was setting up my new Mac for my eks environment. After the installation of kubectl, aws-iam-authenticator and the kubeconfig file placement in default locati

kubectl versions Error: exec plugin is configured to use API version client.authentication.k8s.io/v1alpha1

I was setting up my new Mac for my eks environment. After the installation of kubectl, aws-iam-authenticator and the kubeconfig file placement in default locati

How can I access port 8001 with a proxy server even when it's not open?

So I did the following: minikube dashboard kubectl proxy And it says Starting to serve on 127.0.0.1:8001, however this port is not open on my VM (not inclu

how to pass environment variable in kubectl deployment?

I am setting up the kubernetes setup for django webapp. I am passing environment variable while creating deployment as below kubectl create -f deployment.yml

Kubectl create multiline secret

I'm trying to put a Service Account into a secret - I did it previously a year ago and it works but now - no matter how I approach it, the application doesn't s

How to delete all the pods which are in Error/Init/CrashloopBckoff state at one shot

I have tried below command. but this command gets all the pods which are not running for some reason any other way to do this kubectl delete pods -A --field-s

Kubectl imperative command for deployment

I used to create deployments quickly using imperative commands kubectl run nginx --image=nginx --restart=Always --port=80 --replicas=3 . Now run command wit

How to set path to kubectl when installed using gcloud components install?

Ok, I installed kubectl in the following way on my Mac: 1) installed gcloud using homebrew 2) installed kubectl using gcloud components install. I want to run

setting image pull policy using kubectl

Following the docs and this question, I am trying to pull a image that I created locally with docker while creating deployment with kubectl. I am looking for so

did you specify the right host or port? error on Kubernetes

I have followed the helloword tutorial on http://kubernetes.io/docs/hellonode/. When I run: kubectl run hello-node --image=gcr.io/PROJECT_ID/hello-node:v1 --por

virtctl works when executed via command line but not from php exec()

I am trying to run kubectl virt commands to manage my virtual machine via PHP. First, I log in to my server with phpseclib with the following code: $ssh = new S

Kubernetes sort pods by age

I can sort my Kubernetes pods by name using: kubectl get pods --sort-by=.metadata.name How can I sort them (or other resoures) by age using kubectl?

no endpoints available for service \"kubernetes-dashboard\"

I'm trying to follow GitHub - kubernetes/dashboard: General-purpose web UI for Kubernetes clusters. deploy/access: # export KUBECONFIG=/etc/kubernetes/admin.c

How to fix issue of 'Unable to connect to the server: EOF' Kubernetes - Kubectl

When I try any kubectl command, it always returns: Unable to connect to the server: EOF I followed these tutorials: https://kubernetes.io/docs/tasks/tools/ins

Unable to connect to the server: dial tcp: lookup <Server Location>: no such host

I'm beginning to build out a kubernetes cluster for our applications. We are using Azure for cloud services, so my K8s cluster is built using AKS. The AKs clust