Files
Axel Uhl 14d990ecb0 fixed helm install script
Change-Id: I8f6e8cb1d9dbd8468aab06b3eb5c83c02c25bd32
2019-01-25 16:22:09 +01:00

23 lines
420 B
Bash
Executable File

#!/bin/bash
cat <<EOF | kubectl create -f -
apiVersion: v1
kind: ServiceAccount
metadata:
name: helm
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: helm
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: helm
namespace: kube-system
EOF
helm init --service-account helm