update
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m50s

This commit is contained in:
matst80
2024-11-09 13:57:09 +01:00
parent 28ed80e20a
commit a7c5332db0
6 changed files with 39 additions and 41 deletions

22
deployment/roles.yaml Normal file
View File

@@ -0,0 +1,22 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cart-discovery
rules:
- apiGroups: [""] # "" indicates the core API group
resources: ["pods","services"]
verbs: ["get", "watch", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cart-discovery-binding
subjects:
- kind: ServiceAccount
name: default
namespace: cart
apiGroup: ""
roleRef:
kind: ClusterRole
name: cart-discovery
apiGroup: ""