add infrastructure manifests

This commit is contained in:
stackops
2026-04-09 13:26:46 +03:00
parent f896fa3d3e
commit 7fe1376fe6
10 changed files with 358 additions and 0 deletions

44
06-stackops/rbac.yaml Normal file
View File

@@ -0,0 +1,44 @@
apiVersion: v1
kind: Namespace
metadata:
name: stackops
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: stackops-api
namespace: stackops
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: stackops-deployer
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: stackops-deployer
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: stackops-deployer
subjects:
- kind: ServiceAccount
name: stackops-api
namespace: stackops
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: stackops-data
namespace: stackops
spec:
accessModes: [ReadWriteOnce]
storageClassName: local-path
resources:
requests:
storage: 1Gi