Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: PDBs for all pods, require spread #2437

Merged
merged 4 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
13 changes: 13 additions & 0 deletions src/content/changes/documentation/2024-12-17.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
date: 2024-12-17T14:00:00
title: Documentation Release v2.2.1379
changes_categories:
- Documentation
owner:
- https://github.com/orgs/giantswarm/teams/sig-docs
---

### Added
- Use `requiredDuringSchedulingIgnoredDuringExecution` for `podAntiAffinity`
- Add `PodDisruptionBudget` (PDB) for all deployments
- Add `RollingUpdate` strategy with `maxSurge: 1` and `maxUnavailable: 1`
lyind marked this conversation as resolved.
Show resolved Hide resolved
Loading