Skip to content

Commit

Permalink
increase ipam resilience (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
qrnvttrl authored Aug 21, 2024
1 parent 49ed7a6 commit bd62af6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/metal-control-plane/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for deploying the metal control plane in K8s
name: metal-control-plane
version: 0.4.3
version: 0.4.4
23 changes: 23 additions & 0 deletions charts/metal-control-plane/templates/ipam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ kind: Deployment
metadata:
name: ipam
spec:
replicas: {{ .Values.ipam.replicas }}
selector:
matchLabels:
app: ipam
Expand All @@ -16,6 +17,18 @@ spec:
prometheus.io/path: /metrics
prometheus.io/port: '2112'
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- ipam
topologyKey: kubernetes.io/hostname
containers:
- name: ipam
args:
Expand Down Expand Up @@ -71,3 +84,13 @@ spec:
targetPort: 2112
selector:
app: ipam
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: ipam-pdb
spec:
minAvailable: 2
selector:
matchLabels:
app: ipam
1 change: 1 addition & 0 deletions charts/metal-control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ metal_api:
release_version: ""

ipam:
replicas: 2
grpc_server_endpoint: "0.0.0.0:9090"
log_level: "info"
db_host: ""
Expand Down

0 comments on commit bd62af6

Please sign in to comment.