Configure three CoreDNS replicas on core nodes
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 17s
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 17s
This commit is contained in:
1 parent
9b0530fb70
commit
2a08898a23
4 files changed
+35
No files matched your search
@@ -23,6 +23,9 @@ spec:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true
|
||||
{{- if and (hasKey . "validate") (not .validate) }}
|
||||
- Validate=false
|
||||
{{- end }}
|
||||
{{- if .skipDryRunOnMissingResource }}
|
||||
- SkipDryRunOnMissingResource=true
|
||||
{{- end }}
|
||||
|
||||
@@ -24,6 +24,11 @@ apps:
|
||||
path: k8s-ng/core/traefik-config
|
||||
namespace: kube-system
|
||||
wave: 1
|
||||
- name: coredns-config
|
||||
path: k8s-ng/core/coredns-config
|
||||
namespace: kube-system
|
||||
wave: 1
|
||||
validate: false # partial Deployment: only the fields we manage
|
||||
- name: reloader
|
||||
path: k8s-ng/core/reloader
|
||||
namespace: reloader
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# K3s owns the CoreDNS Deployment. Apply only the fields customized here so
|
||||
# upstream image, probes, Corefile mounts and topology spread stay intact.
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: coredns
|
||||
namespace: kube-system
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false,Delete=false
|
||||
spec:
|
||||
replicas: 3
|
||||
template:
|
||||
spec:
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: homelab.hexor.cy/pool
|
||||
operator: In
|
||||
values:
|
||||
- core
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- deployment.yaml
|
||||
Reference in new issue
Block a user