External-dns: RBAC attempting to list pods

Created on 9 Mar 2018  路  2Comments  路  Source: kubernetes-sigs/external-dns

time="2018-03-09T13:02:19Z" level=error msg="List Pods of service[prometheus] error:pods is forbidden: User "system:serviceaccount:default:external-dns" cannot list pods in the namespace "default""
time="2018-03-09T13:02:19Z" level=error msg="List Pods of service[prometheus-exporter] error:pods is forbidden: User "system:serviceaccount:default:external-dns" cannot list pods in the namespace "default""
time="2018-03-09T13:02:19Z" level=info msg="All records are already up to date"

The RBAC permissions I'm giving it are similar to the ones that were just documented and neither call out listing pods permissions.

apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
  labels:
    app: external-dns
    heritage: Tiller
    release: external-dns
    chart: external-dns-0.4.9
  name: external-dns
rules:
  - apiGroups:
      - ""
      - extensions
    resources:
      - ingresses
      - services
    verbs:
      - get
      - list
      - watch
docs missing kinbug

Most helpful comment

I think the RBAC (docs?) needs to be updated..

All 2 comments

I think the RBAC (docs?) needs to be updated..

With the following ClusterRole configuration it works for me:

apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
  name: clusterrole-external-dns
rules:
  - apiGroups:
      - ""
    resources:
      - services
    verbs:
      - get
      - list
      - watch
  - apiGroups:
      - ""
    resources:
      - pods
    verbs:
      - list
  - apiGroups:
      - "extensions"
    resources:
      - ingresses
    verbs:
      - get
      - list
      - watch
Was this page helpful?
0 / 5 - 0 ratings