# Core, cluster-agnostic tidalDB deployment. Apply with:
#   kubectl apply -k k8s/
#
# Create the API-key secret FIRST (it is deliberately excluded here so no key
# is committed — see secret.example.yaml):
#   kubectl -n tidaldb create secret generic tidaldb-api-key \
#     --from-literal=api-key="$(openssl rand -hex 32)"
#
# servicemonitor.yaml is also excluded (needs the Prometheus Operator); apply it
# separately if you run the Operator.
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: tidaldb

resources:
  - namespace.yaml
  - schema-configmap.yaml
  - service.yaml
  - statefulset.yaml
  - poddisruptionbudget.yaml

labels:
  - pairs:
      app.kubernetes.io/part-of: tidaldb
    includeSelectors: false
