Skip to content

Commit 15baa02

Browse files
committed
feat: Adding CoreDNS Helm Chart
1 parent ebd6bdd commit 15baa02

File tree

4 files changed

+74
-3
lines changed

4 files changed

+74
-3
lines changed

add-ons/coredns/Chart.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: v2
2+
name: coredns
3+
description: A Helm chart for installing the CoreDNS
4+
type: application
5+
6+
# The chart version. This version number should be incremented each time you make changes
7+
# to the chart and its templates, including the app version.
8+
version: 0.1.0
9+
10+
# Version number of the application being deployed. This version number should be
11+
# incremented each time you make changes to the application.
12+
appVersion: "1.0"
13+
14+
dependencies:
15+
- name: coredns
16+
version: 1.19.7
17+
repository: https://coredns.github.io/helm

add-ons/coredns/values.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
coredns:
2+
k8sAppLabelOverride: kube-dns
3+
priorityClassName: system-cluster-critical
4+
serviceAccount:
5+
create: false
6+
replicaCount: 3
7+
podDisruptionBudget:
8+
maxUnavailable: 1
9+
affinity:
10+
podAntiAffinity:
11+
preferredDuringSchedulingIgnoredDuringExecution:
12+
- weight: 100
13+
podAffinityTerm:
14+
labelSelector:
15+
matchExpressions:
16+
- key: k8s-app
17+
operator: In
18+
values:
19+
- coredns
20+
topologyKey: "topology.kubernetes.io/zone"

chart/templates/coredns.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{{- if and (.Values.coredns) (.Values.coredns.enable) -}}
2+
apiVersion: argoproj.io/v1alpha1
3+
kind: Application
4+
metadata:
5+
name: coredns
6+
namespace: argocd
7+
finalizers:
8+
- resources-finalizer.argocd.argoproj.io
9+
spec:
10+
project: default
11+
source:
12+
repoURL: {{ .Values.repoUrl }}
13+
path: add-ons/coredns
14+
targetRevision: {{ .Values.targetRevision }}
15+
helm:
16+
values: |
17+
coredns:
18+
{{- toYaml .Values.coredns | nindent 10 }}
19+
destination:
20+
server: https://kubernetes.default.svc
21+
namespace: kube-system
22+
syncPolicy:
23+
automated:
24+
prune: true
25+
retry:
26+
limit: 1
27+
backoff:
28+
duration: 5s
29+
factor: 2
30+
maxDuration: 1m
31+
{{- end -}}

chart/values.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ certManagerCsiDriver:
5959
clusterAutoscaler:
6060
enable: false
6161
serviceAccountName:
62-
62+
6363
# Datadog Operator
6464
datadogOperator:
6565
enable: false
@@ -214,10 +214,13 @@ policies:
214214

215215
reporter:
216216
enable: false
217-
217+
218218
# NVIDIA Device Plugin Values
219219
nvidiaDevicePlugin:
220220
enable: false
221221

222222
velero:
223-
enable: false
223+
enable: false
224+
225+
coredns:
226+
enable: false

0 commit comments

Comments
 (0)