diff --git a/add-ons/coredns/Chart.yaml b/add-ons/coredns/Chart.yaml new file mode 100644 index 00000000..c5c7b0ef --- /dev/null +++ b/add-ons/coredns/Chart.yaml @@ -0,0 +1,17 @@ +apiVersion: v2 +name: coredns +description: A Helm chart for installing the CoreDNS +type: application + +# The chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +version: 0.1.0 + +# Version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. +appVersion: "1.0" + +dependencies: +- name: coredns + version: 1.19.7 + repository: https://coredns.github.io/helm diff --git a/add-ons/coredns/values.yaml b/add-ons/coredns/values.yaml new file mode 100644 index 00000000..fe769798 --- /dev/null +++ b/add-ons/coredns/values.yaml @@ -0,0 +1,22 @@ +coredns: + k8sAppLabelOverride: kube-dns + priorityClassName: system-cluster-critical + service: + name: kube-dns + serviceAccount: + create: false + replicaCount: 3 + podDisruptionBudget: + maxUnavailable: 1 + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: k8s-app + operator: In + values: + - coredns + topologyKey: "topology.kubernetes.io/zone" diff --git a/chart/templates/coredns.yaml b/chart/templates/coredns.yaml new file mode 100644 index 00000000..0c2ed912 --- /dev/null +++ b/chart/templates/coredns.yaml @@ -0,0 +1,31 @@ +{{- if and (.Values.coredns) (.Values.coredns.enable) -}} +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: coredns + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: {{ .Values.repoUrl }} + path: add-ons/coredns + targetRevision: {{ .Values.targetRevision }} + helm: + values: | + coredns: + {{- toYaml .Values.coredns | nindent 10 }} + destination: + server: https://kubernetes.default.svc + namespace: kube-system + syncPolicy: + automated: + prune: true + retry: + limit: 1 + backoff: + duration: 5s + factor: 2 + maxDuration: 1m +{{- end -}} diff --git a/chart/values.yaml b/chart/values.yaml index dd491399..27a31eea 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -59,7 +59,7 @@ certManagerCsiDriver: clusterAutoscaler: enable: false serviceAccountName: - + # Datadog Operator datadogOperator: enable: false @@ -214,10 +214,13 @@ policies: reporter: enable: false - + # NVIDIA Device Plugin Values nvidiaDevicePlugin: enable: false velero: - enable: false \ No newline at end of file + enable: false + +coredns: + enable: false