apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: edgemesh-gateway
  labels:
    k8s-app: kubeedge
    kubeedge: edgemesh-gateway
rules:
  - apiGroups: [""]
    resources: ["pods", "endpoints", "namespaces"]
    verbs: ["get", "list", "watch"]
  - apiGroups: [""]
    resources: ["secrets", "services", "configmaps"]
    verbs: ["get", "list", "watch", "create", "update"]
  - apiGroups: ["networking.istio.io"]
    resources: ["*"]
    verbs: ["get", "list", "watch"]