Skip to content

Commit

Permalink
tsuru-prometheus-pool: allow custom k8s API ports
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheu committed Aug 13, 2024
1 parent e54afd1 commit 9652790
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/tsuru-prometheus-pool/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.6
version: 0.2.7

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
6 changes: 3 additions & 3 deletions charts/tsuru-prometheus-pool/templates/networkpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ spec:
name: tsuru-{{ .Values.tsuru.pool.name }}

- ports: # allow egress to k8s-apiserver
- port: 80
protocol: TCP
- port: 443
{{- range $_, $port := .Values.networkPolicy.k8sAPIPorts }}
- port: {{ $port }}
protocol: TCP
{{- end }}
to:
- namespaceSelector:
matchLabels:
Expand Down
1 change: 1 addition & 0 deletions charts/tsuru-prometheus-pool/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ networkPolicy:
enabled: true
k8sAPIAddresses: []
# - IPs of k8s-apiserver
k8sAPIPorts: [80, 443]

# additionalEgressRules:
# - to:
Expand Down

0 comments on commit 9652790

Please sign in to comment.