Skip to content

Instantly share code, notes, and snippets.

@AmitDJagtap
Created June 2, 2018 17:51
Show Gist options
  • Save AmitDJagtap/29cc3a1f91f3ecc7a24454c2abe0f72a to your computer and use it in GitHub Desktop.
Save AmitDJagtap/29cc3a1f91f3ecc7a24454c2abe0f72a to your computer and use it in GitHub Desktop.
# NOTE: The service account `default:default` already exists in k8s cluster.
# You can create a new account following like this:
#---
#apiVersion: v1
#kind: ServiceAccount
#metadata:
# name: <new-account-name>
# namespace: <namespace>
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: fabric8-rbac
subjects:
- kind: ServiceAccount
name: default # we are just giving our deafult account more access OR you can Reference to upper's `metadata.name`
namespace: default
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment