Files
Pearson White 953da9b0c0 Refactor to use configs and server
- Use configs to define actions

- Run a server to allow running commands interactively
2026-01-11 16:37:14 -05:00

25 lines
541 B
YAML

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
namespace: zerotesting
name: pod-service-reader
rules:
- apiGroups: [""]
resources: ["pods", "services"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: pod-service-reader-binding
namespace: zerotesting
subjects:
- kind: ServiceAccount
name: default # service account your pod uses
namespace: zerotesting
roleRef:
kind: Role
name: pod-service-reader
apiGroup: rbac.authorization.k8s.io