rolling-upgrade-test.sh: release N-1 to N from ghcr.io, pinned by digest, with mail flowing the whole way (mailflow.py, a message a second, retried as an MTA would) and every accepted message checked to arrive exactly once. 27.1-rc.33 to rc.34: rolled in 19s, 43 accepted, 43 arrived, one connection refused while a pod went away and retried. crossing-test.sh: a store made and filled by 2026.11.18.3 (layout 1), upgraded by the chart to 27.1-rc.34: refused until the layout change is acknowledged, then crossed in 194s (1 to 2 to 3), mailbox digests equal. Fixes on the way: fresh-store.sh's pods and seed-job.yaml carry the chart's labels, so its NetworkPolicies cover them as the Kyverno policy requires; fresh-store.sh and seed-store.sh take PULL for published images; mailtest.py and mailbox-digest.py send from a sender domain of their own (the default throttle allows 25 an hour per sender domain and recipient), and mailbox-digest.py one message per session, paced.
50 lines
2.3 KiB
YAML
50 lines
2.3 KiB
YAML
# The seed run, as the chart will make it: `inbuxa --seed` sets up the new
|
|
# store from seed.json (ConfigMap inbuxa-lab-seed) and exits. Its secrets come
|
|
# from Secret inbuxa-seed, mounted at /etc/inbuxa/seed-secrets, which only
|
|
# this Job sees. The server's own secrets are where every node reads them.
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: inbuxa-seed
|
|
namespace: inbuxa
|
|
spec:
|
|
backoffLimit: 0
|
|
ttlSecondsAfterFinished: 3600
|
|
template:
|
|
metadata:
|
|
# The chart's seed labels: the chart's deny-all and jobs NetworkPolicies
|
|
# cover it, as the lab's Kyverno policy requires
|
|
labels: {app: inbuxa-seed, app.kubernetes.io/name: inbuxa, app.kubernetes.io/instance: inbuxa, app.kubernetes.io/component: seed}
|
|
spec:
|
|
restartPolicy: Never
|
|
automountServiceAccountToken: false
|
|
enableServiceLinks: false
|
|
securityContext: {runAsNonRoot: true, runAsUser: 2000, runAsGroup: 2000, fsGroup: 2000, seccompProfile: {type: RuntimeDefault}}
|
|
containers:
|
|
- name: seed
|
|
image: IMAGE
|
|
imagePullPolicy: Never
|
|
args: [--seed, /etc/inbuxa/seed/seed.json, --config, /etc/inbuxa/config.json]
|
|
env:
|
|
- {name: INBUXA_HOSTNAME, value: seed}
|
|
securityContext: {allowPrivilegeEscalation: false, readOnlyRootFilesystem: true, capabilities: {drop: [ALL]}}
|
|
volumeMounts:
|
|
- {name: config, mountPath: /etc/inbuxa/config.json, subPath: config.json}
|
|
- {name: seed, mountPath: /etc/inbuxa/seed}
|
|
- {name: seed-secrets, mountPath: /etc/inbuxa/seed-secrets}
|
|
- {name: data-secrets, mountPath: /etc/inbuxa/secrets}
|
|
- {name: var, mountPath: /var/lib/inbuxa}
|
|
- {name: tmp, mountPath: /tmp}
|
|
volumes:
|
|
- {name: config, configMap: {name: inbuxa-config}}
|
|
- {name: seed, configMap: {name: inbuxa-lab-seed}}
|
|
- {name: seed-secrets, secret: {secretName: inbuxa-seed, defaultMode: 0440}}
|
|
- name: data-secrets
|
|
projected:
|
|
defaultMode: 0440
|
|
sources:
|
|
- secret: {name: inbuxa-data, items: [{key: pg-password, path: pg-password}, {key: nats-password, path: nats-password}]}
|
|
- secret: {name: inbuxa-s3, items: [{key: secret-key, path: s3-secret-key}]}
|
|
- {name: var, emptyDir: {}}
|
|
- {name: tmp, emptyDir: {}}
|