From 2e3bb35f86939e29a09b1d82d5f101934fa85212 Mon Sep 17 00:00:00 2001 From: Udo Waechter Date: Sun, 15 Oct 2023 19:17:51 +0200 Subject: [PATCH] coreddns update --- _sys/coredns-1.26-x.yaml | 122 ++++++++++++++++++ .../deployment_nfs-hdd-ebin01.yaml | 4 +- 2 files changed, 124 insertions(+), 2 deletions(-) create mode 100644 _sys/coredns-1.26-x.yaml diff --git a/_sys/coredns-1.26-x.yaml b/_sys/coredns-1.26-x.yaml new file mode 100644 index 0000000..040a845 --- /dev/null +++ b/_sys/coredns-1.26-x.yaml @@ -0,0 +1,122 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: coredns + namespace: kube-system + uid: 7bf78c83-68ac-4dee-95f6-52964e38e2d3 + resourceVersion: '441765420' + generation: 37 + creationTimestamp: '2021-01-20T14:55:14Z' + labels: + k8s-app: kube-dns + annotations: + deployment.kubernetes.io/revision: '34' +spec: + replicas: 2 + selector: + matchLabels: + k8s-app: kube-dns + template: + metadata: + creationTimestamp: null + labels: + k8s-app: kube-dns + spec: + volumes: + - name: config-volume + configMap: + name: coredns + items: + - key: Corefile + path: Corefile + defaultMode: 420 + containers: + - name: coredns + image: registry.k8s.io/coredns/coredns:v1.9.3 + args: + - '-conf' + - /etc/coredns/Corefile + ports: + - name: dns + containerPort: 53 + protocol: UDP + - name: dns-tcp + containerPort: 53 + protocol: TCP + - name: metrics + containerPort: 9153 + protocol: TCP + resources: + limits: + memory: 170Mi + requests: + cpu: 100m + memory: 70Mi + volumeMounts: + - name: config-volume + readOnly: true + mountPath: /etc/coredns + livenessProbe: + httpGet: + path: /health + port: 8080 + scheme: HTTP + initialDelaySeconds: 60 + timeoutSeconds: 5 + periodSeconds: 10 + successThreshold: 1 + failureThreshold: 5 + readinessProbe: + httpGet: + path: /ready + port: 8181 + scheme: HTTP + timeoutSeconds: 1 + periodSeconds: 10 + successThreshold: 1 + failureThreshold: 3 + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + imagePullPolicy: IfNotPresent + securityContext: + capabilities: + add: + - NET_BIND_SERVICE + drop: + - all + readOnlyRootFilesystem: true + allowPrivilegeEscalation: false + restartPolicy: Always + terminationGracePeriodSeconds: 30 + dnsPolicy: Default + nodeSelector: + kubernetes.io/os: linux + serviceAccountName: coredns + serviceAccount: coredns + securityContext: {} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: k8s-app + operator: In + values: + - kube-dns + topologyKey: kubernetes.io/hostname + schedulerName: default-scheduler + tolerations: + - key: CriticalAddonsOnly + operator: Exists + - key: node-role.kubernetes.io/control-plane + effect: NoSchedule + priorityClassName: system-cluster-critical + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 25% + revisionHistoryLimit: 10 + progressDeadlineSeconds: 600 diff --git a/_sys/nfs-provisioners/deployment_nfs-hdd-ebin01.yaml b/_sys/nfs-provisioners/deployment_nfs-hdd-ebin01.yaml index 0bb790d..aea9f58 100644 --- a/_sys/nfs-provisioners/deployment_nfs-hdd-ebin01.yaml +++ b/_sys/nfs-provisioners/deployment_nfs-hdd-ebin01.yaml @@ -31,7 +31,7 @@ spec: - name: NFS_SERVER value: ebin01 - name: NFS_PATH - value: /data/raid1-hdd/k8s-data + value: /data/k8s-data-hdd affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -46,4 +46,4 @@ spec: - name: nfs-client-root nfs: server: ebin01 - path: /data/raid1-hdd/k8s-data + path: /data/k8s-data-hdd