Files
feedc0de 01185ad0bc
Validate and deploy Anubis / Validate manifests (push) Successful in 12s
Validate and deploy Anubis / Deploy to Kubernetes (push) Successful in 35s
Add existing anubis deployment and add CI/CD
2026-09-04 10:43:09 +02:00

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