Membuat Cluster role binding manual

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  annotations:
    meta.helm.sh/release-name: rancher
    meta.helm.sh/release-namespace: cattle-system
  finalizers:
  - wrangler.cattle.io/auth-prov-v2-crb
  labels:
    app: rancher
    app.kubernetes.io/managed-by: Helm
    chart: rancher-2.7.6
    heritage: Helm
    release: rancher
  name: rancher
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: rancher
  namespace: cattle-system

Apply role

root@labs-wachid:/# nano role-binding.yml
root@labs-wachid:/# kubectl apply -f role-binding.yml
clusterrolebinding.rbac.authorization.k8s.io/rancher created
root@labs-wachid:/#

Leave a Reply

Your email address will not be published. Required fields are marked *