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

Readers' RPi clusters #11

Open
alexellis opened this Issue Feb 10, 2019 · 3 comments

Comments

Projects
None yet
3 participants
@alexellis
Copy link
Owner

alexellis commented Feb 10, 2019

Readers' RPi clusters

Please comment here here with your name and URL to your cluster, plus any useful notes you have.

I'll then add it to the Readers' RPi clusters in the main README.

Alex

Join the #arm-and-pi channel on OpenFaaS Slack to chat with our community - https://docs.openfaas.com/community/

@dnachman

This comment has been minimized.

Copy link

dnachman commented Feb 10, 2019

Hi @alexellis -

Link to my cluster: https://twitter.com/dnachman/status/1094419142948593664

Everything went relatively smoothly except for the dashboard deployment. The pod was crashing/retrying. Eventually I went in to the logs and saw this:

kubectl logs pod/kubernetes-dashboard-head-7bc4868777-lzv9r -n kube-system 2019/02/10 16:41:21 Starting overwatch 2019/02/10 16:41:21 Using namespace: kube-system 2019/02/10 16:41:21 Using in-cluster config to connect to apiserver 2019/02/10 16:41:21 Using secret token for csrf signing 2019/02/10 16:41:21 Initializing csrf token from kubernetes-dashboard-csrf secret panic: secrets "kubernetes-dashboard-csrf" not found goroutine 1 [running]: github.com/kubernetes/dashboard/src/app/backend/client/csrf.(*csrfTokenManager).init(0x1f87250) /home/travis/build/kubernetes/dashboard/.tmp/backend/src/github.com/kubernetes/dashboard/src/app/backend/client/csrf/manager.go:40 +0x2fc github.com/kubernetes/dashboard/src/app/backend/client/csrf.NewCsrfTokenManager(0xef9d40, 0x1fb4120, 0x1, 0xa5c9d4) /home/travis/build/kubernetes/dashboard/.tmp/backend/src/github.com/kubernetes/dashboard/src/app/backend/client/csrf/manager.go:65 +0x4c github.com/kubernetes/dashboard/src/app/backend/client.(*clientManager).initCSRFKey(0x1f5a1e0) /home/travis/build/kubernetes/dashboard/.tmp/backend/src/github.com/kubernetes/dashboard/src/app/backend/client/manager.go:362 +0x70 github.com/kubernetes/dashboard/src/app/backend/client.(*clientManager).init(0x1f5a1e0) /home/travis/build/kubernetes/dashboard/.tmp/backend/src/github.com/kubernetes/dashboard/src/app/backend/client/manager.go:330 +0x34 github.com/kubernetes/dashboard/src/app/backend/client.NewClientManager(0x0, 0x0, 0x0, 0x0, 0x1, 0x0) /home/travis/build/kubernetes/dashboard/.tmp/backend/src/github.com/kubernetes/dashboard/src/app/backend/client/manager.go:398 +0x6c main.main() /home/travis/build/kubernetes/dashboard/.tmp/backend/src/github.com/kubernetes/dashboard/src/app/backend/dashboard.go:99 +0x104

Looking at the main dashboard, I executed this to create the kubernetes-dashboard-csrf:

echo 'apiVersion: v1 kind: Secret metadata: labels: k8s-app: kubernetes-dashboard name: kubernetes-dashboard-csrf namespace: kube-system type: Opaque data: csrf: ""' | kubectl apply -f -

And then everything worked.

You might also want to include the port forwarding command (if people are running headless) and the dashboard url:

ssh -L 8001:localhost:8001 node-1

http://localhost:8001/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard-head:/proxy/#/overview?namespace=default

Good stuff! Now I've got to go build some new arm docker images for my code (already had x86)

@ravidsinghbiz

This comment has been minimized.

Copy link

ravidsinghbiz commented Feb 11, 2019

Hello @alexellis,

Here is the link to my RPi cluster:
https://twitter.com/ravidsinghbiz/status/1094529653362966528

Thank you,

  • Ravi
@alexellis

This comment has been minimized.

Copy link
Owner Author

alexellis commented Feb 12, 2019

@dnachman please raise a separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment