milvus/shards/kubernetes_demo/mishards_rbac.yaml

25 lines
438 B
YAML

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pods-list
rules:
- apiGroups: [""]
resources: ["pods", "events"]
verbs: ["list", "get", "watch"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pods-list
subjects:
- kind: ServiceAccount
name: default
namespace: mishards
roleRef:
kind: ClusterRole
name: pods-list
apiGroup: rbac.authorization.k8s.io
---