Trigger build
Some checks failed
Build and Deploy Backend (Kaniko) / build-and-deploy (push) Has been cancelled

This commit is contained in:
2025-12-09 11:26:56 +08:00
parent 4e555680af
commit 5866e05ec0
2 changed files with 65 additions and 116 deletions

View File

@@ -0,0 +1,33 @@
# kaniko-rbac.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: kaniko-builder
namespace: cloudforge
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: kaniko-builder
namespace: cloudforge
rules:
- apiGroups: [""]
resources: ["pods", "pods/log"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kaniko-builder
namespace: cloudforge
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: kaniko-builder
subjects:
- kind: ServiceAccount
name: kaniko-builder
namespace: cloudforge