tidaldb/k8s/cluster/kustomization.yaml

31 lines
1022 B
YAML

# tidalDB CLUSTER deployment (m11p5 §4). Apply with:
# kubectl apply -k k8s/cluster/
#
# MUTUALLY EXCLUSIVE with the standalone set (k8s/, namespace `tidaldb`). This
# set lives in namespace `tidaldb-cluster`. Deploy ONE or the OTHER per
# namespace — never both (they share the StatefulSet name `tidaldb` and the
# standalone set's replicas:1 is load-bearing).
#
# Create the API-key secret FIRST (deliberately excluded so no key is committed —
# see secret.example.yaml). Secret shape is the stress/Ref-A lineage:
# kubectl -n tidaldb-cluster create secret generic tidaldb-credentials \
# --from-literal=TIDAL_API_KEY="$(openssl rand -hex 32)"
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: tidaldb-cluster
resources:
- namespace.yaml
- schema-configmap.yaml
- topology-configmap.yaml
- service-peers.yaml
- service-client.yaml
- statefulset.yaml
- poddisruptionbudget.yaml
labels:
- pairs:
app.kubernetes.io/part-of: tidaldb
includeSelectors: false