Files
2026-11-17 21:11:30 +00:00

34 lines
948 B
YAML

apiVersion: v1
kind: ServiceAccount
metadata:
name: gitea-k3s-deployer
namespace: gitea-deployer
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: gitea-k3s-deployer
rules:
- apiGroups: [""]
resources: ["namespaces", "services", "configmaps", "secrets", "persistentvolumeclaims"]
verbs: ["get", "list", "watch", "create", "update", "patch"]
- apiGroups: ["apps"]
resources: ["deployments", "statefulsets"]
verbs: ["get", "list", "watch", "create", "update", "patch"]
- apiGroups: ["networking.k8s.io"]
resources: ["ingresses"]
verbs: ["get", "list", "watch", "create", "update", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: gitea-k3s-deployer
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: gitea-k3s-deployer
subjects:
- kind: ServiceAccount
name: gitea-k3s-deployer
namespace: gitea-deployer