89 lines
1.7 KiB
YAML
89 lines
1.7 KiB
YAML
# Bootstrap this file once with an administrator identity. CI can update only
|
|
# the existing Anubis resources and cannot call the Kubernetes Secrets API.
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: gitea-anubis-deployer
|
|
namespace: default
|
|
automountServiceAccountToken: false
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: gitea-anubis-deployer
|
|
namespace: default
|
|
rules:
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- configmaps
|
|
resourceNames:
|
|
- gitea-anubis-policy
|
|
verbs:
|
|
- get
|
|
- patch
|
|
- update
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- services
|
|
resourceNames:
|
|
- gitea-anubis
|
|
verbs:
|
|
- get
|
|
- patch
|
|
- update
|
|
- apiGroups:
|
|
- apps
|
|
resources:
|
|
- deployments
|
|
resourceNames:
|
|
- gitea-anubis
|
|
verbs:
|
|
- get
|
|
- patch
|
|
- update
|
|
- apiGroups:
|
|
- traefik.io
|
|
resources:
|
|
- middlewares
|
|
resourceNames:
|
|
- gitea-anubis
|
|
verbs:
|
|
- get
|
|
- patch
|
|
- update
|
|
- apiGroups:
|
|
- traefik.io
|
|
resources:
|
|
- ingressroutes
|
|
resourceNames:
|
|
- code-brunner-ninja-anubis
|
|
verbs:
|
|
- get
|
|
- patch
|
|
- update
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: gitea-anubis-deployer
|
|
namespace: default
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: gitea-anubis-deployer
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: gitea-anubis-deployer
|
|
namespace: default
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: gitea-anubis-deployer-token
|
|
namespace: default
|
|
annotations:
|
|
kubernetes.io/service-account.name: gitea-anubis-deployer
|
|
type: kubernetes.io/service-account-token
|