Skip to content

Commit

Permalink
fix: make affinity for coredns configurable
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Berger <adrian.berger@bedag.ch>
  • Loading branch information
adberger committed Jan 3, 2024
1 parent 3e5d740 commit 00438ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion charts/vcluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: vcluster
description: Virtual Kubernetes Cluster
type: application
version: 0.5.3
version: 0.5.4
appVersion: 0.1.0
keywords:
- vcluster
Expand Down
2 changes: 1 addition & 1 deletion charts/vcluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__This Chart is under active development! We try to improve documentation and values consistency over time__

![Version: 0.5.3](https://img.shields.io/badge/Version-0.5.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.5.4](https://img.shields.io/badge/Version-0.5.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Virtual Kubernetes Cluster

Expand Down
17 changes: 5 additions & 12 deletions charts/vcluster/manifests/kubernetes/coredns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,22 +135,15 @@ spec:
{{- end }}
priorityClassName: {{ $kubernetes.coredns.priorityClassName }}
serviceAccountName: coredns
{{- with $kubernetes.coredns.affinity }}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: k8s-app
operator: In
values: ["kube-dns"]
topologyKey: kubernetes.io/hostname
{{- with $kubernetes.coredns.tolerations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $kubernetes.coredns.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $kubernetes.coredns.nodeSelector }}
{{- with $kubernetes.coredns.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down

0 comments on commit 00438ec

Please sign in to comment.