kubernetes
Nginx Ingress: service “ingress-nginx-controller-admission” not found
I had the same problem and found a solution from another SO thread. I had previously installed nginx-ingress using the manifests. I deleted the namespace it created, and the clusterrole and clusterrolebinding as noted in the documentation, but that does not remove the ValidatingWebhookConfiguration that is installed in the manifests, but NOT when using helm … Read more
Helm: Incompatible versions between client and server
Like the OP, I had this error: $ helm list Error: incompatible versions client[v2.10.0] server[v2.9.1] Updating the server wasn’t an option for me so I needed to brew install a previous version of the client. I hadn’t previously installed client[v2.9.1] (or any previous client version) and thus couldn’t just brew switch kubernetes-helm 2.9.1. I ended … Read more
How do I find the join command for kubeadm on the master?
kubeadm token create –print-join-command
How to completely uninstall kubernetes
In my “Ubuntu 16.04”, I use next steps to completely remove and clean Kubernetes (installed with “apt-get”): kubeadm reset sudo apt-get purge kubeadm kubectl kubelet kubernetes-cni kube* sudo apt-get autoremove sudo rm -rf ~/.kube And restart the computer.
View log files of crashed pods in kubernetes
Assuming that your pod still exists: kubectl logs <podname> –previous $ kubectl logs -h -p, –previous[=false]: If true, print the logs for the previous instance of the container in a pod if it exists.
Kubernetes Helm stuck with an update in progress
This solution worked for me: kubectl get secrets kubectl delete secret sh.helm.release.v1.<RELEASE_NAME>.v<LATEST_REVISION> Following the resolution described in this issue
How to debug when Kubernetes nodes are in ‘Not Ready’ state
First, describe nodes and see if it reports anything: $ kubectl describe nodes Look for conditions, capacity and allocatable: Conditions: Type Status —- —— OutOfDisk False MemoryPressure False DiskPressure False Ready True Capacity: cpu: 2 memory: 2052588Ki pods: 110 Allocatable: cpu: 2 memory: 1950188Ki pods: 110 If everything is alright here, SSH into the node … Read more
Kubernetes: modify a secret using kubectl?
The most direct (and interactive) way should be to execute kubectl edit secret <my secret>. Run kubectl get secrets if you’d like to see the list of secrets managed by Kubernetes.
Can I have multiple values.yaml files for Helm
Yes, it’s possible to have multiple values files with Helm. Just use the –values flag (or -f). Example: helm install ./path –values ./internalValues.yaml –values ./customSettings.yaml You can also pass in a single value using –set. Example: helm install ./path –set username=ADMIN –set password=${PASSWORD} From the official documentation: There are two ways to pass configuration data … Read more