apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: hugo-deployer namespace: hugo rules: - apiGroups: ["apps"] resources: ["deployments"] verbs: ["get", "list", "watch", "patch", "update"] - apiGroups: [""] resources: ["pods"] verbs: ["get", "list", "watch"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: hugo-deployer-binding namespace: hugo subjects: - kind: ServiceAccount name: default namespace: gitea-runner roleRef: kind: Role name: hugo-deployer apiGroup: rbac.authorization.k8s.io