# Bootstrap this file once with an administrator identity. CI can update only # the already-existing error-page resources named below; it cannot create or # delete workloads and it cannot read Kubernetes Secrets. apiVersion: v1 kind: ServiceAccount metadata: name: traefik-error-pages-deployer namespace: default automountServiceAccountToken: false --- apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: traefik-error-pages-deployer namespace: default rules: - apiGroups: - "" resources: - configmaps resourceNames: - traefik-error-pages verbs: - get - patch - update - apiGroups: - "" resources: - services resourceNames: - traefik-error-pages verbs: - get - patch - update - apiGroups: - apps resources: - deployments resourceNames: - traefik-error-pages verbs: - get - patch - update - apiGroups: - traefik.io resources: - middlewares resourceNames: - upstream-errors - authentik-error-context - authentik-forward - authentik-error-checked - authentik verbs: - get - patch - update --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: traefik-error-pages-deployer namespace: default roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: traefik-error-pages-deployer subjects: - kind: ServiceAccount name: traefik-error-pages-deployer namespace: default --- apiVersion: v1 kind: Secret metadata: name: traefik-error-pages-deployer-token namespace: default annotations: kubernetes.io/service-account.name: traefik-error-pages-deployer type: kubernetes.io/service-account-token