# Bootstrap this file once with an administrator identity. CI can update only # the existing phpPgAdmin resources and cannot call the Kubernetes Secrets API. apiVersion: v1 kind: ServiceAccount metadata: name: phppgadmin-deployer namespace: default automountServiceAccountToken: false --- apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: phppgadmin-deployer namespace: default rules: - apiGroups: - "" resources: - configmaps resourceNames: - phppgadmin-config verbs: - get - patch - update - apiGroups: - "" resources: - services resourceNames: - phppgadmin verbs: - get - patch - update - apiGroups: - apps resources: - deployments resourceNames: - phppgadmin verbs: - get - patch - update - apiGroups: - networking.k8s.io resources: - ingresses resourceNames: - phppgadmin verbs: - get - patch - update - apiGroups: - traefik.io resources: - middlewares resourceNames: - phppgadmin-root-redirect verbs: - get - patch - update --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: phppgadmin-deployer namespace: default roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: phppgadmin-deployer subjects: - kind: ServiceAccount name: phppgadmin-deployer namespace: default --- apiVersion: v1 kind: Secret metadata: name: phppgadmin-deployer-token namespace: default annotations: kubernetes.io/service-account.name: phppgadmin-deployer type: kubernetes.io/service-account-token