kumahq / kuma-demo

A demo app to illustrate the capabilities and advantages of Kuma. 🐻
https://kuma.io/
Apache License 2.0
58 stars 54 forks source link

kind cluster need to be upgraded to latest kuma and kind. #124

Closed thatsk closed 3 years ago

thatsk commented 3 years ago

Describe the bug https://github.com/kumahq/kuma-demo/blob/master/kind/kind.sh#L4-L7 this need to be updated.


kunalsingt@kunalsingt-ubt:~/kuma-demo/kind$ sudo ./kind.sh 
64-bit platform found
Installing Kind v0.8.1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   624  100   624    0     0    577      0  0:00:01  0:00:01 --:--:--   577
100 9900k  100 9900k    0     0  1850k      0  0:00:05  0:00:05 --:--:-- 2415k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    10  100    10    0     0      5      0  0:00:02  0:00:01  0:00:01     5

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ERROR: failed to list clusters: command "docker ps -a --filter label=io.x-k8s.kind.cluster=kuma --format '{{.Names}}'" failed with error: exit status 1
Command Output: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
W0904 19:48:10.975369   47688 loader.go:221] Config not found: /root/.kube/kind-kuma-config
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Waiting for the cluster to come up
W0904 19:48:14.078250   47735 loader.go:221] Config not found: /root/.kube/kind-kuma-config
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Waiting for the cluster to come up
W0904 19:48:17.182898   47763 loader.go:221] Config not found: /root/.kube/kind-kuma-config
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Waiting for the cluster to come up
W0904 19:48:20.315043   47799 loader.go:221] Config not found: /root/.kube/kind-kuma-config
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Waiting for the cluster to come up
W0904 19:48:23.501115   47840 loader.go:221] Config not found: /root/.kube/kind-kuma-config
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Waiting for the cluster to come up
W0904 19:48:26.633128   47873 loader.go:221] Config not found: /root/.kube/kind-kuma-config
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Waiting for the cluster to come up
W0904 19:48:29.751854   47911 loader.go:221] Config not found: /root/.kube/kind-kuma-config
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Waiting for the cluster to come up
W0904 19:48:32.871297   47942 loader.go:221] Config not found: /root/.kube/kind-kuma-config
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Waiting for the cluster to come up
W0904 19:48:35.966585   47982 loader.go:221] Config not found: /root/.kube/kind-kuma-config
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Waiting for the cluster to come up
c^C````
thatsk commented 3 years ago

why it's going for /root it should take the user directory.

jpeach commented 3 years ago

why it's going for /root it should take the user directory.

Because you did sudo kind.sh, $HOME is reset to root's home directory by the shell running under sudo as root. For example:

$ sudo bash -c 'echo $HOME'
[sudo] password for jpeach: 
/root
jpeach commented 3 years ago

A number of problems with the Kind script. Fixing in #126.