Skip to content

Commit

Permalink
fix haproxy resolver fails on kubernets with out full service dns nam…
Browse files Browse the repository at this point in the history
…es (#2088)
  • Loading branch information
gnmahanth authored Apr 12, 2024
1 parent c29a707 commit da6606f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ spec:
- name: FORCE_HTTPS_REDIRECT
value: "{{ .Values.router.forceHttpsRedirect }}"
- name: UI_SERVICE_NAME
value: {{ include "deepfence-console.fullname" . }}-ui
value: {{ include "deepfence-console.fullname" . }}-ui.{{ .Release.Namespace }}.svc.{{ .Values.router.cluster_domain }}
- name: UI_SERVICE_PORT
value: {{ .Values.ui.service.port | quote }}
- name: API_SERVICE_HOST
value: {{ include "deepfence-console.fullname" . }}-server
value: {{ include "deepfence-console.fullname" . }}-server.{{ .Release.Namespace }}.svc.{{ .Values.router.cluster_domain }}
- name: API_SERVICE_PORT
value: {{ .Values.server.service.port | quote }}
- name: DEEPFENCE_FILE_SERVER_HOST
value: {{ include "deepfence-console.fullname" . }}-file-server
value: {{ include "deepfence-console.fullname" . }}-file-server.{{ .Release.Namespace }}.svc.{{ .Values.router.cluster_domain }}
- name: DEEPFENCE_FILE_SERVER_PORT
value: "9000"
envFrom:
Expand Down
3 changes: 3 additions & 0 deletions deployment-scripts/helm-charts/deepfence-console/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ router:
# Overrides the image tag whose default is .global.imageTag
# tag: 2.2.0
forceHttpsRedirect: true
# used to in service name generation
# <service>.<namespace>.svc.<cluster_domain>
cluster_domain: "cluster.local"
podAnnotations: {}
podSecurityContext: {}
securityContext: {}
Expand Down
1 change: 1 addition & 0 deletions haproxy/haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ defaults

resolvers container
parse-resolv-conf
accepted_payload_size 8192
# nameserver dns 127.0.0.11:53


Expand Down

0 comments on commit da6606f

Please sign in to comment.