Nereus/deploy/overlays/prod/kustomization.yaml

44 lines
1 KiB
YAML

# prod overlay -- the two Fedora nodes.
# kubectl apply -k deploy/overlays/prod
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: nereus
resources:
- ../../base
- ../../rollouts
- ../../secrets
images:
- name: nereus-api
newName: git.fiwlabs.dev/fiwdev/nereus-api
newTag: 0.1.0
- name: nereus-loadgen
newName: git.fiwlabs.dev/fiwdev/nereus-loadgen
newTag: 0.1.0
patches:
# 3 replicas so a node can go down mid-rollout.
- target:
kind: Rollout
name: nereus-api
patch: |
- op: replace
path: /spec/replicas
value: 3
# Spread the API across both nodes.
- target:
kind: Rollout
name: nereus-api
patch: |
- op: add
path: /spec/template/spec/topologySpreadConstraints
value:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app.kubernetes.io/name: nereus-api