mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
30 lines
823 B
YAML
30 lines
823 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: argocd-server
|
|
spec:
|
|
replicas: 2
|
|
template:
|
|
spec:
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: argocd-server
|
|
topologyKey: kubernetes.io/hostname
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 100
|
|
podAffinityTerm:
|
|
labelSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: argocd-server
|
|
topologyKey: topology.kubernetes.io/zone
|
|
containers:
|
|
- name: argocd-server
|
|
env:
|
|
- name: ARGOCD_API_SERVER_REPLICAS
|
|
value: '2'
|
|
args:
|
|
- /usr/local/bin/argocd-server
|