--- apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: name: elasticsearch namespace: flux-system spec: interval: 5m timeout: 15m retryInterval: 1m path: "./manifests/infrastructure/elasticsearch" prune: true sourceRef: kind: GitRepository name: flux-system # Wait for these before deploying Elasticsearch dependsOn: - name: longhorn namespace: flux-system # Force apply to handle CRDs that may not be registered yet during validation # The operator HelmRelease will install CRDs, but validation happens before apply force: true wait: true healthChecks: - apiVersion: apps/v1 kind: Deployment name: elastic-operator namespace: elasticsearch-system - apiVersion: elasticsearch.k8s.elastic.co/v1 kind: Elasticsearch name: elasticsearch namespace: elasticsearch-system