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
2 changes: 1 addition & 1 deletion parcellab/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: common
description: A Helm chart library for parcelLab charts
type: library
version: 1.3.5
version: 1.3.6
maintainers:
- name: parcelLab
email: engineering@parcellab.com
9 changes: 9 additions & 0 deletions parcellab/common/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
{{- $datadog := .Values.datadog -}}
{{- $type := default "service" .type -}}
{{- $securityContext := .Values.securityContext -}}
{{- $dnsConfig := default .Values.dnsConfig .pod.dnsConfig -}}
{{- $dnsPolicy := default .Values.dnsPolicy .pod.dnsPolicy -}}
metadata:
annotations:
{{- if and $datadog $datadog.enabled }}
Expand Down Expand Up @@ -55,6 +57,13 @@ spec:
hostAliases:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if $dnsPolicy }}
dnsPolicy: {{ $dnsPolicy }}
{{- end }}
{{- if $dnsConfig }}
dnsConfig:
{{- toYaml $dnsConfig | nindent 4 }}
{{- end }}
terminationGracePeriodSeconds: {{ default 30 .Values.terminationGracePeriodSeconds }}
volumes:
{{- if $podVolumes }}
Expand Down
13 changes: 13 additions & 0 deletions parcellab/common/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,16 @@ vpa:
mode: "Auto"
initContainers: []
extraContainers: []
# dnsPolicy defines how DNS resolution is handled for pods.
# Common values: "ClusterFirst" (default), "None" (requires dnsConfig), "Default", "ClusterFirstWithHostNet".
# Set to "None" when you want full control over DNS settings via dnsConfig.
# dnsPolicy: ClusterFirst

# dnsConfig allows fine-grained control over DNS settings for pods.
# The most common use case is adjusting ndots to reduce unnecessary DNS lookups.
# dnsConfig:
# options:
# - name: ndots
# value: "2"
# nameservers: []
# searches: []
2 changes: 1 addition & 1 deletion parcellab/cronjob/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: cronjob
description: Single cron job
version: 0.5.0
version: 0.5.1
dependencies:
- name: common
version: "*"
Expand Down
11 changes: 11 additions & 0 deletions parcellab/cronjob/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ externalSecret:

affinity: {}

# dnsPolicy: "None"

# dnsConfig:
# nameservers:
# - 1.1.1.1
# searches:
# - my-namespace.svc.cluster.local
# options:
# - name: ndots
# value: "2"

datadog:
enabled: true

Expand Down
2 changes: 1 addition & 1 deletion parcellab/microservice/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: microservice
description: Simple microservice
version: 0.5.5
version: 0.5.6
dependencies:
- name: common
version: "*"
Expand Down
14 changes: 14 additions & 0 deletions parcellab/microservice/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,20 @@ strategy:

tolerations: []

# dnsPolicy defines how DNS resolution is handled for pods.
# When using dnsConfig with custom options (e.g. ndots), you typically want
# to set dnsPolicy to "None" or keep the default "ClusterFirst".
# dnsPolicy: ClusterFirst

# dnsConfig allows fine-grained control over DNS settings for pods.
# The most common use case is adjusting ndots to reduce unnecessary DNS lookups.
# dnsConfig:
# options:
# - name: ndots
# value: "2"
# nameservers: []
# searches: []

volumes: []

##
Expand Down
2 changes: 1 addition & 1 deletion parcellab/monolith/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: monolith
description: Application that may define multiple services and cronjobs
version: 0.5.6
version: 0.5.7
dependencies:
- name: common
version: "*"
Expand Down
15 changes: 15 additions & 0 deletions parcellab/monolith/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,21 @@ vpa:

affinity: {}

# dnsPolicy defines how DNS resolution is handled for the pod.
# Common values: "ClusterFirst" (default), "None" (requires dnsConfig), "Default", "ClusterFirstWithHostNet".
# Set to "None" when you want full control over DNS settings via dnsConfig.
# dnsPolicy: ClusterFirst

# dnsConfig allows you to customize the DNS settings for the pod.
# When dnsPolicy is set to "None", all DNS settings must be provided here.
# ndots controls the number of dots in a name before an absolute lookup is made.
# dnsConfig:
# nameservers: []
# options:
# - name: ndots
# value: "2"
# searches: []

datadog:
enabled: true

Expand Down
2 changes: 1 addition & 1 deletion parcellab/worker-group/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: worker-group
description: Set of workers that do not expose a service
version: 0.3.3
version: 0.3.4
dependencies:
- name: common
version: "*"
Expand Down
15 changes: 15 additions & 0 deletions parcellab/worker-group/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,21 @@ strategy:

tolerations: []

# dnsPolicy defines how DNS resolution is handled for the pod.
# Common values: "ClusterFirst" (default), "None" (requires dnsConfig), "Default", "ClusterFirstWithHostNet".
# Set to "None" when you want full control over DNS settings via dnsConfig.
# dnsPolicy: ClusterFirst

# dnsConfig allows you to customize the DNS settings for the pod.
# When dnsPolicy is set to "None", all DNS settings must be provided here.
# ndots controls the number of dots in a name before an absolute lookup is made.
# dnsConfig:
# nameservers: []
# options:
# - name: ndots
# value: "2"
# searches: []

volumes: []

##
Expand Down
Loading