-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
google cloud shell support #182
Comments
Huh, that particular failure is a bit surprising, thanks for reporting it! We can probably avoid it when we finish offline support by using fixed versions of the overlay network and pre-obtaining the overlay images. Possibly related to #136 /assign |
#426 is one of the blockers, there also appears to be something strange with the networking. This almost works, something is wrong with talking to the API server, will need to investigate further. $ cat ./kind-config.yaml
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
networking:
apiServerPort: 6443
nodes:
- role: control-plane
extraMounts:
- containerPath: /sys/class/dmi/id/product_name
hostPath: /home/bentheelder/product_name
$ cat ./product_name
kind
$ kind create cluster --config=./kind-config.yaml --loglevel=debug
|
I think the web preview feature interferes. https://cloud.google.com/shell/docs/features#web_preview It should be possible to stick to lower ports for the API server etc. which might fix that, but this will require changes to kind. |
#426 was fixed, but there's still some funky networking blocking this. |
@BenTheElder you can define the port range in the host, it's defined in the kernel in How is the setup? is |
In Google cloud shell?
Pretty sure https://cloud.google.com/shell/docs/features#web_preview is the
issue.
*From:*Antonio Ojea <[email protected]>
*Date:*Fri, May 3, 2019, 05:46
*To:*kubernetes-sigs/kind
*Cc:*Benjamin Elder, Mention
@BenTheElder <https://github.com/BenTheElder> you can define the port range
β¦ in the host, it's defined in the kernel in
/proc/sys/net/ipv4/ip_local_port_range
β
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#182 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHADKYKQ43S4WEWTGWGWNDPTQX2RANCNFSM4GKWBPHA>
.
|
The port forwarded is within the allowed range (2000 to 65000)
And the port range defined is within the webshell range (2000 to 65000) too
|
Did your node ever go to ready though? Testing this...
β¦On Fri, May 3, 2019 at 9:01 AM Antonio Ojea ***@***.***> wrote:
It's working for me running from
https://console.cloud.google.com/cloudshell , but don't know if this is
the same situation you are describing π
***@***.***:~ (agile-sprite-239512)$ go get sigs.k8s.io/kind
***@***.***:~ (agile-sprite-239512)$ kind create cluster
Creating cluster "kind" ...
β Ensuring node image (kindest/node:v1.14.1) πΌ
β Preparing nodes π¦
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
kubectl cluster-info
***@***.***:~ (agile-sprite-239512)$ export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
***@***.***:~ (agile-sprite-239512)$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
kind-control-plane NotReady master 25s v1.14.1
***@***.***:~ (agile-sprite-239512)$ kubectl get nodes -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
kind-control-plane NotReady master 29s v1.14.1 172.18.0.2 <none> Ubuntu Disco Dingo (development branch) 4.14.104+ containerd://1.2.6-0ubuntu1
The port forwarded is within the allowed range (2000 to 65000)
***@***.***:~ (agile-sprite-239512)$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c6d2f3edda33 kindest/node:v1.14.1 "/usr/local/bin/entrβ¦" About a minute ago Up About a minute 38797/tcp, 127.0.0.1:38797->6443/tcp kind-control-plane
And the port range defined is within the webshell range (2000 to 65000) too
***@***.***:~ (agile-sprite-239512)$ cat /proc/sys/net/ipv4/ip_local_port_range
32768 60999
β
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#182 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHADK4CIXOMKBWBFKOI6QTPTROVFANCNFSM4GKWBPHA>
.
|
I observe an issue dialing the CRI socket, only some of the static pods come up. not sure why, but overall this not working quite right is not surprising. |
hehe, s/working/runs without errors/ |
did a little more poking, something is killing containerd π€ |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
it's not clear to me that this is clearly feasible or that any similar tool works there. it would be neat, but I don't think we have the time. if anyone is interested in the future feel free to try again and report back / file a new issue |
fyi kubernetes/minikube#6404 got it working |
I think that this may fix it #1995 |
This is indeed fixed at HEAD, and will work in the next release (soon!), you can test it now by running the following from your cloudshell: GO111MODULE=on go get sigs.k8s.io/kind@master
export PATH="${HOME}/gopath/bin:${PATH}"
kind create cluster |
thanks @aojea @sirdarckcat :-) |
β¦dard_sc_type changed to standard sc by default
The text was updated successfully, but these errors were encountered: