Skip to content
Merged
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
10 changes: 10 additions & 0 deletions charts/portkey-gateway/templates/dataservice/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,14 @@ spec:
hostAliases:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.dataservice.deployment.dnsPolicy }}
{{- if and (eq .Values.dataservice.deployment.dnsPolicy "None") (empty .Values.dataservice.deployment.dnsConfig.nameservers) }}
{{- fail "dataservice: dnsPolicy \"None\" requires at least one entry in dataservice.deployment.dnsConfig.nameservers" }}
{{- end }}
dnsPolicy: {{ .Values.dataservice.deployment.dnsPolicy }}
{{- end }}
{{- with .Values.dataservice.deployment.dnsConfig }}
dnsConfig:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end -}}
10 changes: 10 additions & 0 deletions charts/portkey-gateway/templates/gateway/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,14 @@ spec:
{{- with .Values.hostAlias }}
hostAliases:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.dnsPolicy }}
{{- if and (eq .Values.dnsPolicy "None") (empty .Values.dnsConfig.nameservers) }}
{{- fail "gateway: dnsPolicy \"None\" requires at least one entry in dnsConfig.nameservers" }}
{{- end }}
dnsPolicy: {{ .Values.dnsPolicy }}
{{- end }}
{{- with .Values.dnsConfig }}
dnsConfig:
{{- toYaml . | nindent 8 }}
{{- end }}
33 changes: 33 additions & 0 deletions charts/portkey-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,24 @@ affinity: {}
# - "www.example.com"
hostAlias: []

# DNS policy for the gateway pod.
# Valid values: ClusterFirst (default), ClusterFirstWithHostNet, Default, None
# NOTE: When set to "None", dnsConfig must be provided with at least one nameserver.
dnsPolicy: ""

# Custom DNS configuration for the gateway pod.
# Required when dnsPolicy is "None" (must include at least one nameserver).
# Example:
# dnsConfig:
# nameservers:
# - 1.2.3.4
# searches:
# - ns1.svc.cluster.local
# options:
# - name: ndots
# value: "5"
dnsConfig: {}

# if you want to restart instance automatically
autoRestart: false

Expand Down Expand Up @@ -397,6 +415,21 @@ dataservice:
# - "example.com"
# - "www.example.com"
hostAlias: []
# DNS policy for the dataservice pod.
# Valid values: ClusterFirst (default), ClusterFirstWithHostNet, Default, None
# NOTE: When set to "None", dnsConfig must be provided with at least one nameserver.
dnsPolicy: ""
# Custom DNS configuration for the dataservice pod.
# Example:
# dnsConfig:
# nameservers:
# - 1.2.3.4
# searches:
# - ns1.svc.cluster.local
# options:
# - name: ndots
# value: "5"
dnsConfig: {}
service:
type: ClusterIP
port: 8081
Expand Down