mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-10-25 02:31:30 +00:00
27 lines
673 B
YAML
27 lines
673 B
YAML
{{- $network := index .Values.networks .Values.network }}
|
|
{{- $namespace := $network.namespace }}
|
|
# Role to allow luxd pods to read their own LoadBalancer service for public IP discovery
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: luxd-service-reader
|
|
namespace: {{ $namespace }}
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: ["services"]
|
|
verbs: ["get"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: luxd-service-reader
|
|
namespace: {{ $namespace }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: luxd-service-reader
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: default
|
|
namespace: {{ $namespace }}
|