Created
June 23, 2019 08:07
-
-
Save shawnho1018/b333464b5a7c8638e591b084126cf76e to your computer and use it in GitHub Desktop.
create serviceaccount with cluster-admin privilege
This file contains 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
# sa-admin.yaml | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: gimbal-sa | |
--- | |
kind: ClusterRoleBinding | |
metadata: | |
creationTimestamp: null | |
name: gimbal-admin-cb | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: cluster-admin | |
subjects: | |
- kind: ServiceAccount | |
name: gimbal-sa | |
namespace: default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment