Created
June 2, 2018 17:51
-
-
Save AmitDJagtap/29cc3a1f91f3ecc7a24454c2abe0f72a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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