Difference between revisions of "Kubernetes Troubleshooting"

From UVOO Tech Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
kubectl run busybox1 --restart=Never --rm -i --tty --image=busybox -- sh
 
kubectl run busybox1 --restart=Never --rm -i --tty --image=busybox -- sh
 
kubectl run busybox2 --restart=Never --rm -i --tty --image=busybox -- sh
 
kubectl run busybox2 --restart=Never --rm -i --tty --image=busybox -- sh
 +
```
 +
 +
```
 +
kubectl run test --restart=Never --rm -i --tty --image=ubuntu -- bash
 +
```
 +
 +
```
 +
kubectl -n test run ubuntu --restart=Never -it --image=ubuntu -- bash
 +
apt update && apt install postgresql-client
 
```
 
```

Latest revision as of 18:53, 22 October 2021

rror: Kubernetes cluster unreachable: Get "http://localhost:8080/version?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused root@singlekub:~# sudo kubectl config view --raw >~/.kube/config

sudo kubectl config view --raw >~/.kube/config

then run helm or whatever

kubectl run busybox1 --restart=Never --rm -i --tty --image=busybox -- sh
kubectl run busybox2 --restart=Never --rm -i --tty --image=busybox -- sh
kubectl run test --restart=Never --rm -i --tty --image=ubuntu -- bash
kubectl -n test run ubuntu --restart=Never -it --image=ubuntu -- bash
apt update && apt install postgresql-client