# 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