kubefunc
kubefunc copied to clipboard
Collection of handy kubernetes related helper scripts and bash functions.
``` kubectl debug-shell error: --rm should only be used for attached containers See 'kubectl run -h' for help and examples ```
Fixes https://github.com/danisla/kubefunc/issues/16
OSX bash doesn't like ,, ``` TMC02YJ3FXJGH6:kubefunc jdobner1$ RUN=(RUN Run run) TMC02YJ3FXJGH6:kubefunc jdobner1$ echo ${RUN[1],,} Run TMC02YJ3FXJGH6:kubefunc jdobner1$ echo $SHELL /bin/bash ``` This results in ``` Select a Pod: 112...
`kubectl krew debug-shell` seems to be non-functional in k8s 1.22.x. I'm sure it has been broken a while. I fixed it. Now I'm contributing back. Please don't hesitate to reach...
i noticed that pod status is now `Running` rather than `running`. This causes the script to not be able to find any running pod to shell into
Hi @danisla ! First, thanks for this great plugin. This PR aims to replace `affinity` by [nodeSelector ](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector) (which is now the simplest way to affect a pod to a...
``` kubectl get pods node-admin NAME READY STATUS RESTARTS AGE node-admin 0/1 Pending 0 87s ``` ``` Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s node.kubernetes.io/unreachable:NoExecute for 300s Events: Type Reason Age From Message...
Solves the issue: https://github.com/danisla/kubefunc/issues/10
:wave: Hello, maintainer of the kubectl plugin manager [krew](https://github.com/kubernetes-sigs/krew) here. Thank you for your commitment to open source by making this plugin available via `krew`! Krew wants to give credit...
With the changed plugin model in 1.12 kubectl won't be passing env vars like KUBECTL_PLUGINS_CURRENT_NAMESPACE anymore.