Skip to content

Instantly share code, notes, and snippets.

@shawnho1018
Created May 26, 2019 14:00
Show Gist options
  • Save shawnho1018/c8d4ee6c61b3be29216b941c1db177e2 to your computer and use it in GitHub Desktop.
Save shawnho1018/c8d4ee6c61b3be29216b941c1db177e2 to your computer and use it in GitHub Desktop.
This is to provide namespace privilege to a user.
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
namespace: default
name: namespace-admin
rules:
- apiGroups: ["*"] # 空字符串""表明使用core API group
resources: ["*"]
verbs: ["*"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment