51 lines
1.1 KiB
YAML
51 lines
1.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
|
|
|
|
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
|
|
|
|
- target:
|
|
kind: ConfigMap
|
|
name: nereus-api-config
|
|
patch: |
|
|
- op: replace
|
|
path: /data/LOG_LEVEL
|
|
value: "warn"
|