kubectl

Mac terminal command input too long it does not fit?

冷暖自知 提交于 2021-02-10 21:12:30
问题 I need to run the command: kubectl get pvc --field-selector metadata.name!=dataX********************************,******************************************************************,************************************************************************************************,************************************************************************************************,************************************************,*************************************************,************************

Kubernetes logs command TLS handshake timeout

守給你的承諾、 提交于 2021-02-10 08:17:11
问题 I am running the open source kube version 1.9, getting TLS handshake timeout error while running the kubectl logs command, other kubectl commands are working fine. #:/etc/kubernetes/pki> kubectl get pods NAME READY STATUS RESTARTS AGE app1-9 1/1 Running 0 2d #:/etc/kubernetes/pki> kubectl logs counter Error from server: Get https://XX.XX.XX.XXXX:10250/containerLogs/default/counter/count: net/http: TLS handshake timeout kubectl version is: Client Version: version.Info{Major:"1", Minor:"9",

Kubernetes logs command TLS handshake timeout

百般思念 提交于 2021-02-10 08:13:46
问题 I am running the open source kube version 1.9, getting TLS handshake timeout error while running the kubectl logs command, other kubectl commands are working fine. #:/etc/kubernetes/pki> kubectl get pods NAME READY STATUS RESTARTS AGE app1-9 1/1 Running 0 2d #:/etc/kubernetes/pki> kubectl logs counter Error from server: Get https://XX.XX.XX.XXXX:10250/containerLogs/default/counter/count: net/http: TLS handshake timeout kubectl version is: Client Version: version.Info{Major:"1", Minor:"9",

Kubernetes logs command TLS handshake timeout

大憨熊 提交于 2021-02-10 08:08:06
问题 I am running the open source kube version 1.9, getting TLS handshake timeout error while running the kubectl logs command, other kubectl commands are working fine. #:/etc/kubernetes/pki> kubectl get pods NAME READY STATUS RESTARTS AGE app1-9 1/1 Running 0 2d #:/etc/kubernetes/pki> kubectl logs counter Error from server: Get https://XX.XX.XX.XXXX:10250/containerLogs/default/counter/count: net/http: TLS handshake timeout kubectl version is: Client Version: version.Info{Major:"1", Minor:"9",

In Kubernetes what is deletecollection?

↘锁芯ラ 提交于 2021-02-10 06:58:41
问题 When listing all the API resources in K8s you get: $ kubectl api-resources -owide NAME SHORTNAMES APIGROUP NAMESPACED KIND VERBS bindings true Binding [create] componentstatuses cs false ComponentStatus [get list] configmaps cm true ConfigMap [create delete deletecollection get list patch update watch] endpoints ep true Endpoints [create delete deletecollection get list patch update watch] events ev true Event [create delete deletecollection get list patch update watch] limitranges limits

How to execute command from one pod inside another pod using kubectl exec which are inside a same k8s cluster

痴心易碎 提交于 2021-02-10 04:22:30
问题 I have two pods in a cluster. Lets call them A and B. I've installed kubectl inside pod A and I am trying to run a command inside pod B from pod A using kubectl exec -it podB -- bash . I am getting the following error Error from server (Forbidden): pods "B" is forbidden: User "system:serviceaccount:default:default" cannot create pods/exec in the namespace "default" I've created the following Role and RoleBinding to get access. Role yaml kind: Role apiVersion: rbac.authorization.k8s.io/v1

How to execute command from one pod inside another pod using kubectl exec which are inside a same k8s cluster

▼魔方 西西 提交于 2021-02-10 04:22:24
问题 I have two pods in a cluster. Lets call them A and B. I've installed kubectl inside pod A and I am trying to run a command inside pod B from pod A using kubectl exec -it podB -- bash . I am getting the following error Error from server (Forbidden): pods "B" is forbidden: User "system:serviceaccount:default:default" cannot create pods/exec in the namespace "default" I've created the following Role and RoleBinding to get access. Role yaml kind: Role apiVersion: rbac.authorization.k8s.io/v1

Update Node Selector field for PODs on the fly

家住魔仙堡 提交于 2021-02-08 21:49:30
问题 I have been trying different things around k8s these days. I am wondering about the field nodeSelector in the POD specification. As I understand we have to assign some labels to the nodes and these labels can further be used in the nodeSelector field part of the POD specification. Assignment of the node to pods based on nodeSelector works fine. But, after I create the pod, now I want to update/overwrite the nodeSelector field which would deploy my pod to new node based on new nodeSelector

Running kubectl patch --local fails due to missing config

三世轮回 提交于 2021-02-08 11:33:23
问题 I have a GitHub Actions workflow that substitutes value in a deployment manifest. I use kubectl patch --local=true to update the image. This used to work flawlessly until now. Today the workflow started to fail with a Missing or incomplete configuration info error. I am running kubectl with --local flag so the config should not be needed. Does anyone know what could be the reason why kubectl suddenly started requiring a config? I can't find any useful info in Kubernetes GitHub issues and

Running kubectl patch --local fails due to missing config

妖精的绣舞 提交于 2021-02-08 11:33:01
问题 I have a GitHub Actions workflow that substitutes value in a deployment manifest. I use kubectl patch --local=true to update the image. This used to work flawlessly until now. Today the workflow started to fail with a Missing or incomplete configuration info error. I am running kubectl with --local flag so the config should not be needed. Does anyone know what could be the reason why kubectl suddenly started requiring a config? I can't find any useful info in Kubernetes GitHub issues and