Files
infra/06-stackops/rbac.yaml
2026-04-09 13:26:46 +03:00

45 lines
812 B
YAML

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