--- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: Role metadata: name: prometheus-kong namespace: kong rules: - apiGroups: [""] resources: - services - endpoints - pods verbs: ["get", "list", "watch"] --- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: RoleBinding metadata: name: prometheus-kong namespace: kong roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: prometheus-kong subjects: - kind: ServiceAccount name: prometheus-kong namespace: monitoring