...
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | install kubectl |
---|
|
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
kubectl version --client
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:52:00Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"} |
Install Helm
Run the below command to install latest helm,
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | install Helm |
---|
|
curl -L https://git.io/get_helm.sh | bash |
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | helm tiller |
---|
|
cat > tiller-serviceaccount.yaml << EOF
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: tiller-clusterrolebinding
subjects:
- kind: ServiceAccount
name: tiller
namespace: kube-system
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: ""
EOF |
Create yaml file to define the service account & cluster role binding for helm,
Install Nonrtric
Troubleshoot
...