mirror of https://git.rancher.io/rke2-charts
parent
040f662edf
commit
67c631846a
|
@ -1,2 +1,2 @@
|
||||||
url: https://kubernetes-charts.storage.googleapis.com/coredns-1.10.1.tgz
|
url: https://kubernetes-charts.storage.googleapis.com/coredns-1.13.8.tgz
|
||||||
packageVersion: 01
|
packageVersion: 00
|
||||||
|
|
|
@ -1,15 +1,24 @@
|
||||||
diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/Chart.yaml packages/rke2-coredns/charts/Chart.yaml
|
diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/Chart.yaml packages/rke2-coredns/charts/Chart.yaml
|
||||||
--- packages/rke2-coredns/charts-original/Chart.yaml
|
--- packages/rke2-coredns/charts-original/Chart.yaml
|
||||||
+++ packages/rke2-coredns/charts/Chart.yaml
|
+++ packages/rke2-coredns/charts/Chart.yaml
|
||||||
@@ -17,7 +17,7 @@
|
@@ -1,7 +1,6 @@
|
||||||
name: andor44
|
apiVersion: v1
|
||||||
- email: manuel@rueg.eu
|
appVersion: 1.7.1
|
||||||
name: mrueg
|
-deprecated: true
|
||||||
|
-description: DEPRECATED CoreDNS is a DNS server that chains plugins and provides Kubernetes
|
||||||
|
+description: CoreDNS is a DNS server that chains plugins and provides Kubernetes
|
||||||
|
DNS Services
|
||||||
|
home: https://coredns.io
|
||||||
|
icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png
|
||||||
|
@@ -9,7 +8,7 @@
|
||||||
|
- coredns
|
||||||
|
- dns
|
||||||
|
- kubedns
|
||||||
-name: coredns
|
-name: coredns
|
||||||
+name: rke2-coredns
|
+name: rke2-coredns
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/coredns/coredns
|
- https://github.com/coredns/coredns
|
||||||
version: 1.10.1
|
version: 1.13.8
|
||||||
diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/templates/clusterrole-autoscaler.yaml packages/rke2-coredns/charts/templates/clusterrole-autoscaler.yaml
|
diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/templates/clusterrole-autoscaler.yaml packages/rke2-coredns/charts/templates/clusterrole-autoscaler.yaml
|
||||||
--- packages/rke2-coredns/charts-original/templates/clusterrole-autoscaler.yaml
|
--- packages/rke2-coredns/charts-original/templates/clusterrole-autoscaler.yaml
|
||||||
+++ packages/rke2-coredns/charts/templates/clusterrole-autoscaler.yaml
|
+++ packages/rke2-coredns/charts/templates/clusterrole-autoscaler.yaml
|
||||||
|
@ -158,7 +167,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/templates
|
||||||
{{- end }}
|
{{- end }}
|
||||||
app.kubernetes.io/name: {{ template "coredns.name" . }}
|
app.kubernetes.io/name: {{ template "coredns.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name | quote }}
|
app.kubernetes.io/instance: {{ .Release.Name | quote }}
|
||||||
@@ -70,7 +70,7 @@
|
@@ -76,7 +76,7 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: "coredns"
|
- name: "coredns"
|
||||||
|
@ -167,6 +176,150 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/templates
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
args: [ "-conf", "/etc/coredns/Corefile" ]
|
args: [ "-conf", "/etc/coredns/Corefile" ]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/templates/deployment.yaml.orig packages/rke2-coredns/charts/templates/deployment.yaml.orig
|
||||||
|
--- packages/rke2-coredns/charts-original/templates/deployment.yaml.orig
|
||||||
|
+++ packages/rke2-coredns/charts/templates/deployment.yaml.orig
|
||||||
|
@@ -0,0 +1,140 @@
|
||||||
|
+apiVersion: apps/v1
|
||||||
|
+kind: Deployment
|
||||||
|
+metadata:
|
||||||
|
+ name: {{ template "coredns.fullname" . }}
|
||||||
|
+ labels:
|
||||||
|
+ app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
|
||||||
|
+ app.kubernetes.io/instance: {{ .Release.Name | quote }}
|
||||||
|
+ helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
|
||||||
|
+ {{- if .Values.isClusterService }}
|
||||||
|
+ k8s-app: {{ .Chart.Name | quote }}
|
||||||
|
+ kubernetes.io/cluster-service: "true"
|
||||||
|
+ kubernetes.io/name: "CoreDNS"
|
||||||
|
+ {{- end }}
|
||||||
|
+ app.kubernetes.io/name: {{ template "coredns.name" . }}
|
||||||
|
+{{- if .Values.customLabels }}
|
||||||
|
+{{ toYaml .Values.customLabels | indent 4 }}
|
||||||
|
+{{- end }}
|
||||||
|
+spec:
|
||||||
|
+ {{- if not .Values.autoscaler.enabled }}
|
||||||
|
+ replicas: {{ .Values.replicaCount }}
|
||||||
|
+ {{- end }}
|
||||||
|
+ strategy:
|
||||||
|
+ type: RollingUpdate
|
||||||
|
+ rollingUpdate:
|
||||||
|
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
|
||||||
|
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
|
||||||
|
+ selector:
|
||||||
|
+ matchLabels:
|
||||||
|
+ app.kubernetes.io/instance: {{ .Release.Name | quote }}
|
||||||
|
+ {{- if .Values.isClusterService }}
|
||||||
|
+ k8s-app: {{ .Chart.Name | quote }}
|
||||||
|
+ {{- end }}
|
||||||
|
+ app.kubernetes.io/name: {{ template "coredns.name" . }}
|
||||||
|
+ template:
|
||||||
|
+ metadata:
|
||||||
|
+ labels:
|
||||||
|
+ {{- if .Values.isClusterService }}
|
||||||
|
+ k8s-app: {{ .Chart.Name | quote }}
|
||||||
|
+ {{- end }}
|
||||||
|
+ app.kubernetes.io/name: {{ template "coredns.name" . }}
|
||||||
|
+ app.kubernetes.io/instance: {{ .Release.Name | quote }}
|
||||||
|
+ {{- if .Values.customLabels }}
|
||||||
|
+ {{ toYaml .Values.customLabels }}
|
||||||
|
+ {{- end }}
|
||||||
|
+ annotations:
|
||||||
|
+ checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||||
|
+ {{- if .Values.isClusterService }}
|
||||||
|
+ scheduler.alpha.kubernetes.io/critical-pod: ''
|
||||||
|
+ scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
|
||||||
|
+ {{- end }}
|
||||||
|
+{{- if .Values.podAnnotations }}
|
||||||
|
+{{ toYaml .Values.podAnnotations | indent 8 }}
|
||||||
|
+{{- end }}
|
||||||
|
+ spec:
|
||||||
|
+ {{- if .Values.terminationGracePeriodSeconds }}
|
||||||
|
+ terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
|
||||||
|
+ {{- end }}
|
||||||
|
+ serviceAccountName: {{ template "coredns.serviceAccountName" . }}
|
||||||
|
+ {{- if .Values.priorityClassName }}
|
||||||
|
+ priorityClassName: {{ .Values.priorityClassName | quote }}
|
||||||
|
+ {{- end }}
|
||||||
|
+ {{- if .Values.isClusterService }}
|
||||||
|
+ dnsPolicy: Default
|
||||||
|
+ {{- end }}
|
||||||
|
+ {{- if .Values.affinity }}
|
||||||
|
+ affinity:
|
||||||
|
+{{ toYaml .Values.affinity | indent 8 }}
|
||||||
|
+ {{- end }}
|
||||||
|
+ {{- if .Values.tolerations }}
|
||||||
|
+ tolerations:
|
||||||
|
+{{ toYaml .Values.tolerations | indent 8 }}
|
||||||
|
+ {{- end }}
|
||||||
|
+ {{- if .Values.nodeSelector }}
|
||||||
|
+ nodeSelector:
|
||||||
|
+{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||||
|
+ {{- end }}
|
||||||
|
+ containers:
|
||||||
|
+ - name: "coredns"
|
||||||
|
+ image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
+ args: [ "-conf", "/etc/coredns/Corefile" ]
|
||||||
|
+ volumeMounts:
|
||||||
|
+ - name: config-volume
|
||||||
|
+ mountPath: /etc/coredns
|
||||||
|
+{{- range .Values.extraSecrets }}
|
||||||
|
+ - name: {{ .name }}
|
||||||
|
+ mountPath: {{ .mountPath }}
|
||||||
|
+ readOnly: true
|
||||||
|
+{{- end }}
|
||||||
|
+{{- if .Values.extraVolumeMounts }}
|
||||||
|
+{{- toYaml .Values.extraVolumeMounts | nindent 8}}
|
||||||
|
+{{- end }}
|
||||||
|
+ resources:
|
||||||
|
+{{ toYaml .Values.resources | indent 10 }}
|
||||||
|
+ ports:
|
||||||
|
+{{ include "coredns.containerPorts" . | indent 8 }}
|
||||||
|
+ livenessProbe:
|
||||||
|
+ httpGet:
|
||||||
|
+ path: /health
|
||||||
|
+ port: 8080
|
||||||
|
+ scheme: HTTP
|
||||||
|
+ initialDelaySeconds: 60
|
||||||
|
+ timeoutSeconds: 5
|
||||||
|
+ successThreshold: 1
|
||||||
|
+ failureThreshold: 5
|
||||||
|
+ readinessProbe:
|
||||||
|
+ httpGet:
|
||||||
|
+ path: /ready
|
||||||
|
+ port: 8181
|
||||||
|
+ scheme: HTTP
|
||||||
|
+ initialDelaySeconds: 10
|
||||||
|
+ timeoutSeconds: 5
|
||||||
|
+ successThreshold: 1
|
||||||
|
+ failureThreshold: 5
|
||||||
|
+ {{- if .Values.preStopSleep }}
|
||||||
|
+ lifecycle:
|
||||||
|
+ preStop:
|
||||||
|
+ exec:
|
||||||
|
+ command: ["/usr/bin/sleep", "{{ .Values.preStopSleep }}"]
|
||||||
|
+ {{- end }}
|
||||||
|
+ volumes:
|
||||||
|
+ - name: config-volume
|
||||||
|
+ configMap:
|
||||||
|
+ name: {{ template "coredns.fullname" . }}
|
||||||
|
+ items:
|
||||||
|
+ - key: Corefile
|
||||||
|
+ path: Corefile
|
||||||
|
+ {{ range .Values.zoneFiles }}
|
||||||
|
+ - key: {{ .filename }}
|
||||||
|
+ path: {{ .filename }}
|
||||||
|
+ {{ end }}
|
||||||
|
+{{- range .Values.extraSecrets }}
|
||||||
|
+ - name: {{ .name }}
|
||||||
|
+ secret:
|
||||||
|
+ secretName: {{ .name }}
|
||||||
|
+ defaultMode: 400
|
||||||
|
+{{- end }}
|
||||||
|
+{{- if .Values.extraVolumes }}
|
||||||
|
+{{ toYaml .Values.extraVolumes | indent 8 }}
|
||||||
|
+{{- end }}
|
||||||
diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/templates/_helpers.tpl packages/rke2-coredns/charts/templates/_helpers.tpl
|
diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/templates/_helpers.tpl packages/rke2-coredns/charts/templates/_helpers.tpl
|
||||||
--- packages/rke2-coredns/charts-original/templates/_helpers.tpl
|
--- packages/rke2-coredns/charts-original/templates/_helpers.tpl
|
||||||
+++ packages/rke2-coredns/charts/templates/_helpers.tpl
|
+++ packages/rke2-coredns/charts/templates/_helpers.tpl
|
||||||
|
@ -314,8 +467,54 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/templates
|
||||||
+ {{ else }}
|
+ {{ else }}
|
||||||
+ clusterIP: {{ (lookup "v1" "ConfigMap" "kube-system" "cluster-dns").data.clusterDNS }}
|
+ clusterIP: {{ (lookup "v1" "ConfigMap" "kube-system" "cluster-dns").data.clusterDNS }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.service.externalTrafficPolicy }}
|
{{- if .Values.service.externalIPs }}
|
||||||
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
|
externalIPs:
|
||||||
|
diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/templates/service.yaml.orig packages/rke2-coredns/charts/templates/service.yaml.orig
|
||||||
|
--- packages/rke2-coredns/charts-original/templates/service.yaml.orig
|
||||||
|
+++ packages/rke2-coredns/charts/templates/service.yaml.orig
|
||||||
|
@@ -0,0 +1,42 @@
|
||||||
|
+apiVersion: v1
|
||||||
|
+kind: Service
|
||||||
|
+metadata:
|
||||||
|
+ name: {{ template "coredns.fullname" . }}
|
||||||
|
+ labels:
|
||||||
|
+ app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
|
||||||
|
+ app.kubernetes.io/instance: {{ .Release.Name | quote }}
|
||||||
|
+ helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
|
||||||
|
+ {{- if .Values.isClusterService }}
|
||||||
|
+ k8s-app: {{ .Chart.Name | quote }}
|
||||||
|
+ kubernetes.io/cluster-service: "true"
|
||||||
|
+ kubernetes.io/name: "CoreDNS"
|
||||||
|
+ {{- end }}
|
||||||
|
+ app.kubernetes.io/name: {{ template "coredns.name" . }}
|
||||||
|
+{{- if .Values.customLabels }}
|
||||||
|
+{{ toYaml .Values.customLabels | indent 4 }}
|
||||||
|
+{{- end }}
|
||||||
|
+ annotations:
|
||||||
|
+{{ toYaml .Values.service.annotations | indent 4 }}
|
||||||
|
+spec:
|
||||||
|
+ selector:
|
||||||
|
+ app.kubernetes.io/instance: {{ .Release.Name | quote }}
|
||||||
|
+ {{- if .Values.isClusterService }}
|
||||||
|
+ k8s-app: {{ .Chart.Name | quote }}
|
||||||
|
+ {{- end }}
|
||||||
|
+ app.kubernetes.io/name: {{ template "coredns.name" . }}
|
||||||
|
+ {{- if .Values.service.clusterIP }}
|
||||||
|
+ clusterIP: {{ .Values.service.clusterIP }}
|
||||||
|
+ {{- end }}
|
||||||
|
+ {{- if .Values.service.externalIPs }}
|
||||||
|
+ externalIPs:
|
||||||
|
+ {{ toYaml .Values.service.externalIPs | indent 4 }}
|
||||||
|
+ {{- end }}
|
||||||
|
+ {{- if .Values.service.externalTrafficPolicy }}
|
||||||
|
+ externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
|
||||||
|
+ {{- end }}
|
||||||
|
+ {{- if .Values.service.loadBalancerIP }}
|
||||||
|
+ loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
||||||
|
+ {{- end }}
|
||||||
|
+ ports:
|
||||||
|
+{{ include "coredns.servicePorts" . | indent 2 -}}
|
||||||
|
+ type: {{ default "ClusterIP" .Values.serviceType }}
|
||||||
diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/values.yaml packages/rke2-coredns/charts/values.yaml
|
diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/values.yaml packages/rke2-coredns/charts/values.yaml
|
||||||
--- packages/rke2-coredns/charts-original/values.yaml
|
--- packages/rke2-coredns/charts-original/values.yaml
|
||||||
+++ packages/rke2-coredns/charts/values.yaml
|
+++ packages/rke2-coredns/charts/values.yaml
|
||||||
|
@ -324,14 +523,14 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/values.ya
|
||||||
|
|
||||||
image:
|
image:
|
||||||
- repository: coredns/coredns
|
- repository: coredns/coredns
|
||||||
- tag: "1.6.9"
|
- tag: "1.7.1"
|
||||||
+ repository: rancher/hardened-coredns
|
+ repository: rancher/hardened-coredns
|
||||||
+ tag: "v1.6.9"
|
+ tag: "v1.7.1"
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
@@ -34,10 +34,10 @@
|
@@ -66,10 +66,10 @@
|
||||||
prometheus.io/port: "9153"
|
annotations: {}
|
||||||
|
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
- create: false
|
- create: false
|
||||||
|
@ -343,7 +542,7 @@ diff -x '*.tgz' -x '*.lock' -uNr packages/rke2-coredns/charts-original/values.ya
|
||||||
|
|
||||||
rbac:
|
rbac:
|
||||||
# If true, create & use RBAC resources
|
# If true, create & use RBAC resources
|
||||||
@@ -196,3 +196,7 @@
|
@@ -253,3 +253,7 @@
|
||||||
## Annotations for the coredns-autoscaler configmap
|
## Annotations for the coredns-autoscaler configmap
|
||||||
# i.e. strategy.spinnaker.io/versioned: "false" to ensure configmap isn't renamed
|
# i.e. strategy.spinnaker.io/versioned: "false" to ensure configmap isn't renamed
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
|
Loading…
Reference in New Issue