Skip to content

Instantly share code, notes, and snippets.

@shawnho1018
Created June 23, 2019 08:07
Show Gist options
  • Save shawnho1018/b333464b5a7c8638e591b084126cf76e to your computer and use it in GitHub Desktop.
Save shawnho1018/b333464b5a7c8638e591b084126cf76e to your computer and use it in GitHub Desktop.
create serviceaccount with cluster-admin privilege
# 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