alexellis / k8s-on-raspbian

Kubernetes on Raspbian (Raspberry Pi)
https://blog.alexellis.io/build-your-own-bare-metal-arm-cluster/
MIT License
882 stars 130 forks source link

Added note re ip_forward and updated dashboard url #27

Open chrisbu opened 4 years ago

chrisbu commented 4 years ago

Description

For my install (raspbian buster) I had to also set net.ipv4.ip_forward=1 to get networking working between nodes. Also updated the alternative dashboard url to the current one.

Motivation and Context

Fixed problems accessing dashboard when it was deployed anywhere other than the master node.

How Has This Been Tested?

Tested using raspbian buster fresh install and a 3 node cluster. Not tested on earlier versions of raspbian.

Types of changes

Checklist:

davelosert commented 4 years ago

@chrisbu : Just stumbled accross this PR when I was trying to install the dashboard. You might also want to adjust the ClusterRoleBinding above to:

apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
  name: kubernetes-dashboard-admin
  labels:
    k8s-app: kubernetes-dashboard
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: kubernetes-dashboard
  namespace: kubernetes-dashboard