Thursday, November 21, 2019

Helm on Deepthot

Installing Helm

Well, this is odd, I’ve not run into this before. When I was trying to reinstall cert-manager I got

helm install \
> --name cert-manager \
> --namespace cert-manager \
> --version v0.11.0 \
> jetstack/cert-manager
Error: release cert-manager failed: namespaces "cert-manager" is forbidden: User "system:serviceaccount:kube-system:default" cannot get resource "namespaces" in API group "" in the namespace "cert-manager"

Googling I found Helm Example Service account with cluster admin role Which shows:

cat <<EOF >rbac-config.yaml
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
EOF
kubectl create -f rbac-config.yaml
helm init --service-account tiller

I’ll get this in a gitlab repo once I have gitlab up, but for now, it’ll just go in this doc, hence the cat stuff. Looks like that’s all that’s needed.

No comments:

Post a Comment

How Simple Does It Have to Be Before It’s Mine?

 Hi, Joy here, I'm tired.  I'm too tired to polish this.  However bare with me, the text below is *trying* to be me.  It's not l...