Skip to content

Instantly share code, notes, and snippets.

@ChrisMcKee
Created November 12, 2018 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisMcKee/c6fe1b309598930482b6bfb23be77498 to your computer and use it in GitHub Desktop.
Save ChrisMcKee/c6fe1b309598930482b6bfb23be77498 to your computer and use it in GitHub Desktop.
Follow the first few steps of https://rancher.com/blog/2018/2018-05-18-how-to-run-rancher-2-0-on-your-desktop/ in the docker-for-X UI to setup docker for kubernetes.
Pick a folder, open command prompt/terminal.
git clone git@github.com:jgreat/server-chart.git
kubectl -n kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
wait about 30 seconds
helm init --service-account tiller
If the above errors that tiller isnt found; wait a little then try again, its entirely depend on machine size how fast that thing starts.
helm install stable/nginx-ingress --name ingress-nginx --namespace ingress-nginx --set controller.extraArgs.enable-ssl-passthrough=""
helm install stable/cert-manager --name cert-manager --namespace kube-system
cd server-charts/rancher
helm install ./ --name rancher --namespace cattle-system --set hostname=rancher.localhost
Setting hosts file
By default the Rancher server will listen on rancher.localhost. To access it we will need to set a hosts file entry so our browser can resolve the name.
Windows - c:\windows\system32\drivers\etc\hosts
Mac - /etc/hosts
Edit the appropriate file for your system and add this entry.
127.0.0.1 rancher.localhost
Connecting to Rancher
Browse to https://rancher.localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment