Files
feedc0de 5fb2d928dc
Validate and deploy coturn / Validate manifests (push) Successful in 17s
Validate and deploy coturn / Deploy to Kubernetes (push) Successful in 26s
Trying to fix CI readiness checks
2026-08-24 10:55:04 +02:00

81 lines
1.5 KiB
YAML

# Bootstrap once with an administrator identity. CI can update only the
# existing coturn resources and cannot read Secrets or change RBAC.
apiVersion: v1
kind: ServiceAccount
metadata:
name: coturn-deployer
namespace: coturn
automountServiceAccountToken: false
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: coturn-deployer
namespace: coturn
rules:
- apiGroups:
- ""
resources:
- serviceaccounts
resourceNames:
- coturn
verbs:
- get
- patch
- update
- apiGroups:
- ""
resources:
- services
resourceNames:
- coturn-tcp
- coturn-udp
- coturn-relay
verbs:
- get
- patch
- update
- apiGroups:
- apps
resources:
- deployments
resourceNames:
- coturn
verbs:
- get
- patch
- update
- apiGroups:
- cert-manager.io
resources:
- certificates
resourceNames:
- coturn
verbs:
- get
- patch
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: coturn-deployer
namespace: coturn
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: coturn-deployer
subjects:
- kind: ServiceAccount
name: coturn-deployer
namespace: coturn
---
apiVersion: v1
kind: Secret
metadata:
name: coturn-deployer-token
namespace: coturn
annotations:
kubernetes.io/service-account.name: coturn-deployer
type: kubernetes.io/service-account-token