mirror of
https://github.com/vacp2p/status-benchmarks.git
synced 2026-01-08 15:13:59 -05:00
43 lines
820 B
YAML
43 lines
820 B
YAML
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: config-init-sa
|
|
namespace: status-go-test
|
|
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: pod-reader
|
|
namespace: status-go-test
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: ["pods"]
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: pod-reader-binding
|
|
namespace: status-go-test
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: config-init-sa
|
|
namespace: status-go-test
|
|
roleRef:
|
|
kind: ClusterRole
|
|
name: pod-reader
|
|
apiGroup: rbac.authorization.k8s.io
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: status-backend-relay
|
|
namespace: status-go-test
|
|
spec:
|
|
# Headless service to get per-pod DNS names
|
|
clusterIP: None
|
|
selector:
|
|
app: status-backend-relay |