Skip to content

Commit

Permalink
docs: PDBs for all pods, require spread (#2437)
Browse files Browse the repository at this point in the history
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: jonas@giantswarm.io <jonas@giantswarm.io>
  • Loading branch information
devin-ai-integration[bot] and lyind authored Dec 17, 2024
1 parent 2013ee2 commit d5b4934
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions helm/docs-app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ metadata:
spec:
replicas: 2
revisionHistoryLimit: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
selector:
matchLabels:
app: {{ .Values.name }}
Expand All @@ -19,21 +24,18 @@ spec:
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
app: {{ .Values.name }}
topologyKey: kubernetes.io/hostname
weight: 100
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: {{ .Values.name }}
topologyKey: kubernetes.io/hostname
securityContext:
runAsUser: 1000
seccompProfile:
type: RuntimeDefault

containers:
- name: docs-app
# Public image required
image: gsoci.azurecr.io/giantswarm/docs:{{ .Chart.Version }}
securityContext:
allowPrivilegeEscalation: false
Expand Down

0 comments on commit d5b4934

Please sign in to comment.