diff --git a/kubernetes/infrastructure/crowdsec/lapi-ingress.yaml b/kubernetes/infrastructure/crowdsec/lapi-ingress.yaml index bacc513f..b1a5fd4f 100644 --- a/kubernetes/infrastructure/crowdsec/lapi-ingress.yaml +++ b/kubernetes/infrastructure/crowdsec/lapi-ingress.yaml @@ -31,22 +31,12 @@ # serves read-only decision streams to a valid bouncer key and nothing else. # The admin surface is cscli, in-cluster. If the source address ever becomes # deterministic, an ipAllowList can be added on top. ---- +# # The LAPI serves HTTPS only once tls.enabled is set — there is no plaintext # fallback and no second port; 8080 is the TLS port. Its certificate comes # from the chart's own self-signed CA, so Traefik needs that CA to verify the -# backend. SANs include crowdsec-service.crowdsec.svc.cluster.local, which is -# what the Service resolves to. -apiVersion: traefik.io/v1alpha1 -kind: ServersTransport -metadata: - name: crowdsec-lapi - namespace: crowdsec -spec: - serverName: crowdsec-service.crowdsec.svc.cluster.local - rootCAs: - - secret: crowdsec-root-secret ---- +# backend; the ServersTransport carrying it is a traefik.io CRD consumer and +# lives in post-crds/crowdsec-lapi-serverstransport.yaml. apiVersion: networking.k8s.io/v1 kind: Ingress metadata: diff --git a/kubernetes/infrastructure/post-crds/kustomization.yaml b/kubernetes/infrastructure/post-crds/kustomization.yaml index 265ba748..a086e1bd 100644 --- a/kubernetes/infrastructure/post-crds/kustomization.yaml +++ b/kubernetes/infrastructure/post-crds/kustomization.yaml @@ -31,7 +31,5 @@ resources: - traefik-crowdsec-middleware.yaml - traefik-rate-limit-middleware.yaml - traefik-security-headers-middleware.yaml - # Phase 1 of a two-Kustomization move: also still in crowdsec/lapi-ingress.yaml - # until this layer has applied it once, so prune never runs ahead of apply. - crowdsec-lapi-serverstransport.yaml - ../network-policies/