milvus/shards/kubernetes_demo/milvus_rbac.yaml

25 lines
436 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: milvus
roleRef:
kind: ClusterRole
name: pods-list
apiGroup: rbac.authorization.k8s.io
---