Skip to content

Instantly share code, notes, and snippets.

@SunChero
Last active September 10, 2019 15:30
Show Gist options
  • Save SunChero/6127eae47473fdcdf3334e7d2265867e to your computer and use it in GitHub Desktop.
Save SunChero/6127eae47473fdcdf3334e7d2265867e to your computer and use it in GitHub Desktop.
wget https://get.helm.sh/helm-v2.14.3-linux-amd64.tar.gz
tar -xvf helm-v2.14.3-linux-amd64.tar.gz
./helm
./helm init
./helm init --kube-context default
./helm init --kube-context default@default
KUBECONFIG=/etc/rancher/k3s/k3s.yaml helm init
helm
helm version
KUBECONFIG=/etc/rancher/k3s/k3s.yaml helm version
KUBECONFIG=/etc/rancher/k3s/k3s.yaml helm repo add istio.io https://storage.googleapis.com/istio-release/releases/1.2.4/charts/
helm search istio
kubectl create namespace istio-system
helm template install/kubernetes/helm/istio --name istio --namespace istio-system | kubectl apply -f -
helm template install/kubernetes/helm/istio --name istio --namespace istio-system | kubectl delete -f -
l
export PATH="$PATH:/app/istio-1.2.4/bin"
istioctl verify-instal
istioctl verify-install
## configure tiller
kubectl create serviceaccount tiller --namespace default
helm init --service-account tiller --history-max 200
helm init --upgrade --service-account tiller --history-max 200
#add rbac config for tiller/helm + service account
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: tiller
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: tiller
namespace: kube-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment