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

namespace: kubeslice-system

resources:
- ../default
- operator_pdb.yaml

patches:
- path: manager_ha_patch.yaml
target:
group: apps
version: v1
kind: Deployment
name: operator

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/operator_pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: kubeslice-operator-pdb
namespace: system
spec:
minAvailable: 1
selector:
matchLabels:
control-plane: controller-manager
Comment thread
Maximus-08 marked this conversation as resolved.