Skip to content

Instantly share code, notes, and snippets.

@niiku-y
Created December 8, 2018 13:17
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 niiku-y/be607390be373b2afa87f500d6a798f0 to your computer and use it in GitHub Desktop.
Save niiku-y/be607390be373b2afa87f500d6a798f0 to your computer and use it in GitHub Desktop.
#!/bin/bash
# install_rancher.sh
echo "before : "
helm repo list
echo ""
echo "repository add : "
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
echo ""
echo "after : "
helm repo list
echo ""
echo "install cert-manager ..."
helm install stable/cert-manager --name cert-manager --namespace kube-system
helm ls --all
echo ""
echo "install rancher ..."
helm install rancher-latest/rancher --name rancher --namespace cattle-system --set hostname=lb01.openstacklocal
helm ls --all
kubectl get pods -n ingress-nginx
# if you want to delete rancher, then execute following command:
## helm del --purge rancher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment