Skip to content

Commit

Permalink
[ocp-proxy-api] Adding LB Source Ranges to restrict access at SG level (
Browse files Browse the repository at this point in the history
#48)

* Adding LB Source Ranges to restrict access at SG level

* Adding LB Source Ranges to restrict access at SG level

* Update Chart.yaml
  • Loading branch information
oybed authored Apr 6, 2023
1 parent 7e0fbd6 commit ece0b09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/ocp-proxy-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: ocp-proxy-api
description: A Helm chart for Kubernetes to create and manage an nginx proxy for OCP API/Console
type: application
version: 0.1.1
version: 0.1.2
home: "https://rh-mobb.github.io/helm-charts/"
maintainers:
- name: rh-mobb
4 changes: 4 additions & 0 deletions charts/ocp-proxy-api/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ spec:
name: ingress
selector:
{{- include "ocp-proxy-api.selectorLabels" . | nindent 4 }}
{{- with .Values.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- toYaml . | nindent 4 }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/ocp-proxy-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ podAnnotations: {}
service:
type: LoadBalancer
port: 80
loadBalancerSourceRanges: []
# - 192.168.1.0/24
# - 10.1.1.0/24

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down

0 comments on commit ece0b09

Please sign in to comment.