Files
traefik-error-pages/ci-deployer.yaml
T
feedc0de 4a68a78f0a
Validate and deploy error pages / Validate manifests (push) Failing after 25s
Validate and deploy error pages / Deploy to Kubernetes (push) Has been skipped
Initial commit
2026-08-08 20:42:38 +02:00

85 lines
1.8 KiB
YAML

# 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