Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
11 changes: 11 additions & 0 deletions config/ha/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../default

resources:
Comment thread
Maximus-08 marked this conversation as resolved.
Outdated
- pdb.yaml

patchesStrategicMerge:
- manager_ha_patch.yaml
18 changes: 18 additions & 0 deletions config/ha/manager_ha_patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: operator
namespace: system
Comment thread
Maximus-08 marked this conversation as resolved.
spec:
replicas: 2
template:
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
topologyKey: kubernetes.io/hostname
labelSelector:
matchLabels:
control-plane: controller-manager
10 changes: 10 additions & 0 deletions config/ha/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: kubeslice-worker-pdb
Comment thread
Maximus-08 marked this conversation as resolved.
Outdated
namespace: system
spec:
minAvailable: 1
selector:
matchLabels:
control-plane: controller-manager