Skip to content
Snippets Groups Projects
Verified Commit 509ab7e1 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(blog): Use topologySpreadConstraints

parent c94b5ed0
No related branches found
No related tags found
No related merge requests found
...@@ -15,13 +15,6 @@ spec: ...@@ -15,13 +15,6 @@ spec:
labels: labels:
app.kubernetes.io/name: blog app.kubernetes.io/name: blog
spec: spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/name: blog
topologyKey: kubernetes.io/hostname
automountServiceAccountToken: false automountServiceAccountToken: false
containers: containers:
- name: blog - name: blog
...@@ -60,6 +53,15 @@ spec: ...@@ -60,6 +53,15 @@ spec:
runAsNonRoot: true runAsNonRoot: true
seccompProfile: seccompProfile:
type: RuntimeDefault type: RuntimeDefault
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/name: blog
matchLabelKeys:
- pod-template-hash
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment