Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(allow-list): added a new parameter in both services to create an allow list for desired IPs be allowed and rest blocked #191

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions charts/hyades/templates/api-server/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@ metadata:
spec:
type: {{ .Values.apiServer.service.type | quote }}
ports:
- name: web
port: {{ .Values.apiServer.service.port }}
targetPort: web
- name: web
port: {{ .Values.apiServer.service.port }}
targetPort: web
{{- with .Values.apiServer.service.nodePort }}
nodePort: {{ . }}
nodePort: {{ . }}
{{- end }}
selector: {{- include "hyades.apiServerSelectorLabels" . | nindent 4 }}
{{- if eq .Values.apiServer.service.type "LoadBalancer" }}
{{- if .Values.apiServer.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- range .Values.apiServer.service.loadBalancerSourceRanges }}
- {{ . }}
{{- end }}
{{- end -}}
{{- end -}}
{{- end }}
16 changes: 12 additions & 4 deletions charts/hyades/templates/frontend/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@ metadata:
spec:
type: {{ .Values.frontend.service.type | quote }}
ports:
- name: web
port: {{ .Values.frontend.service.port }}
targetPort: web
- name: web
port: {{ .Values.frontend.service.port }}
targetPort: web
{{- with .Values.frontend.service.nodePort }}
nodePort: {{ . }}
nodePort: {{ . }}
{{- end }}
selector: {{- include "hyades.frontendSelectorLabels" . | nindent 4 }}
{{- if eq .Values.frontend.service.type "LoadBalancer" }}
{{- if .Values.frontend.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- range .Values.frontend.service.loadBalancerSourceRanges }}
- {{ . }}
{{- end }}
{{- end -}}
{{- end -}}
{{- end }}
4 changes: 4 additions & 0 deletions charts/hyades/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ apiServer:
nodePort: ~
port: 8080
annotations: {}
# loadBalancerSourceRanges:
# - 0.0.0.0/0
serviceMonitor:
enabled: false
namespace: monitoring
Expand Down Expand Up @@ -233,6 +235,8 @@ frontend:
nodePort: ~
port: 8080
annotations: {}
# loadBalancerSourceRanges:
# - 0.0.0.0/0
apiBaseUrl: ""
# -- Additional init containers to deploy. Supports templating.
initContainers: []
Expand Down