Files
storage/minio/manifests/console-deployment.yaml
Mayne0213 7487b477a7 FEAT(storage): enable HA with replica 2 and soft anti-affinity
- Add replicaCount: 2 to cnpg, pgweb, velero-ui, minio-console
- Add soft pod anti-affinity for node distribution
- Configure affinity for all storage components
2026-01-08 13:16:43 +09:00

55 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: minio-console
namespace: minio
labels:
app: minio-console
spec:
replicas: 2
selector:
matchLabels:
app: minio-console
template:
metadata:
labels:
app: minio-console
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app: minio-console
topologyKey: kubernetes.io/hostname
containers:
- name: console
image: ghcr.io/georgmangold/console:v1.9.1
ports:
- containerPort: 9090
name: http
env:
- name: CONSOLE_MINIO_SERVER
value: "http://minio.minio.svc.cluster.local:9000"
resources:
requests:
cpu: 10m
memory: 64Mi
limits:
memory: 128Mi
---
apiVersion: v1
kind: Service
metadata:
name: minio-console-ui
namespace: minio
spec:
selector:
app: minio-console
ports:
- port: 9090
targetPort: 9090
name: http