Skip to content

Commit

Permalink
feat: add cluster-role for pod-monitoring
Browse files Browse the repository at this point in the history
Signed-off-by: Lenin Mehedy <[email protected]>
  • Loading branch information
leninmehedy committed Sep 15, 2023
1 parent a4019dd commit 6af526f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
18 changes: 15 additions & 3 deletions charts/hedera-network/templates/rbac/pod-monitor-role.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
kind: ClusterRole
metadata:
name: pod-monitoring-role
namespace: {{ .Values.namespace }}
rules:
- apiGroups: [ "" ]
resources:
Expand All @@ -16,15 +17,26 @@ rules:
- pods/exec
verbs:
- create
- apiGroups: [ "gateway.networking.k8s.io" ]
resources:
- gatewayclasses
- gateways
- httproutes
- tcproutes
verbs:
- get
- list
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
kind: ClusterRoleBinding
metadata:
name: pod-monitoring-role-binding
namespace: {{ .Values.namespace }}
subjects:
- kind: ServiceAccount
name: pod-monitor
namespace: {{ .Values.namespace }}
roleRef:
kind: Role
kind: ClusterRole
name: pod-monitoring-role
apiGroup: rbac.authorization.k8s.io
3 changes: 2 additions & 1 deletion charts/hedera-network/templates/rbac/service-accounts.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: pod-monitor
name: pod-monitor
namespace: {{ .Values.namespace }}
2 changes: 2 additions & 0 deletions charts/hedera-network/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ gatewayApi:
route:
hostname: "{{ .node.name }}.fst.local"

namespace: default

# default settings for a single node
# This default configurations can be overridden for each node in the hedera.nodes section.
defaults:
Expand Down

0 comments on commit 6af526f

Please sign in to comment.