mirror of
https://github.com/vacp2p/pod-api-requester.git
synced 2026-08-27 09:41:16 +00:00
- Use configs to define actions - Run a server to allow running commands interactively
25 lines
541 B
YAML
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
|