Skip to content

Commit

Permalink
Add dnsConfig to head, worker and additional workers (#2377)
Browse files Browse the repository at this point in the history
  • Loading branch information
edward2a authored Oct 10, 2024
1 parent bf21d2d commit 9a0b9d0
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
9 changes: 9 additions & 0 deletions helm-chart/ray-cluster/templates/raycluster-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ spec:
{{- end }}
template:
spec:
{{- if .Values.head.dnsConfig }}
dnsConfig: {{- toYaml .Values.head.dnsConfig | nindent 10 }}
{{- end }}
imagePullSecrets: {{- toYaml .Values.imagePullSecrets | nindent 10 }}
{{- if .Values.head.serviceAccountName }}
serviceAccountName: {{ .Values.head.serviceAccountName }}
Expand Down Expand Up @@ -135,6 +138,9 @@ spec:
groupName: {{ $groupName }}
template:
spec:
{{- if $values.dnsConfig }}
dnsConfig: {{- toYaml $values.dnsConfig | nindent 10 }}
{{- end }}
imagePullSecrets: {{- toYaml $.Values.imagePullSecrets | nindent 10 }}
{{- if $values.serviceAccountName }}
serviceAccountName: {{ $values.serviceAccountName }}
Expand Down Expand Up @@ -232,6 +238,9 @@ spec:
groupName: {{ .Values.worker.groupName }}
template:
spec:
{{- if .Values.worker.dnsConfig }}
dnsConfig: {{- toYaml .Values.worker.dnsConfig | nindent 10 }}
{{- end }}
imagePullSecrets: {{- toYaml .Values.imagePullSecrets | nindent 10 }}
{{- if .Values.worker.serviceAccountName }}
serviceAccountName: {{ .Values.worker.serviceAccountName }}
Expand Down
36 changes: 36 additions & 0 deletions helm-chart/ray-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,18 @@ head:
# annotations:
# prometheus.io/scrape: "true"

# Custom pod DNS configuration
# See https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config
# dnsConfig:
# nameservers:
# - 8.8.8.8
# searches:
# - example.local
# options:
# - name: ndots
# value: "2"
# - name: edns0


worker:
# If you want to disable the default workergroup
Expand Down Expand Up @@ -179,6 +191,18 @@ worker:
command: []
args: []

# Custom pod DNS configuration
# See https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config
# dnsConfig:
# nameservers:
# - 8.8.8.8
# searches:
# - example.local
# options:
# - name: ndots
# value: "2"
# - name: edns0

# The map's key is used as the groupName.
# For example, key:small-group in the map below
# will be used as the groupName
Expand Down Expand Up @@ -241,6 +265,18 @@ additionalWorkerGroups:
command: []
args: []

# Custom pod DNS configuration
# See https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config
# dnsConfig:
# nameservers:
# - 8.8.8.8
# searches:
# - example.local
# options:
# - name: ndots
# value: "2"
# - name: edns0

# Configuration for Head's Kubernetes Service
service:
# This is optional, and the default is ClusterIP.
Expand Down

0 comments on commit 9a0b9d0

Please sign in to comment.