Bind the Gateway TLS secret to Konnect via KongCertificate/KongSNI
Gateway API's listeners[].tls.certificateRefs never gets synced to Konnect by the gateway operator in this setup — same working pattern as every other resource here (KongService, KongRoute, ...): a Kong-native CRD, not the Gateway API's own translation.
This commit is contained in:
@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- rest/service.yaml
|
- rest/service.yaml
|
||||||
|
- rest/certificate.yaml
|
||||||
- rest/routes.yaml
|
- rest/routes.yaml
|
||||||
- rest/path-rewrite.yaml
|
- rest/path-rewrite.yaml
|
||||||
- rest/path-rewrite-bindings.yaml
|
- rest/path-rewrite-bindings.yaml
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: configuration.konghq.com/v1alpha1
|
||||||
|
kind: KongCertificate
|
||||||
|
metadata:
|
||||||
|
name: ${NAME}
|
||||||
|
namespace: ${NAMESPACE}
|
||||||
|
spec:
|
||||||
|
controlPlaneRef:
|
||||||
|
type: konnectNamespacedRef
|
||||||
|
konnectNamespacedRef:
|
||||||
|
name: ${CONTROL_PLANE_REF_NAME}
|
||||||
|
type: secretRef
|
||||||
|
secretRef:
|
||||||
|
name: ${NAME}-tls
|
||||||
|
---
|
||||||
|
apiVersion: configuration.konghq.com/v1alpha1
|
||||||
|
kind: KongSNI
|
||||||
|
metadata:
|
||||||
|
name: ${NAME}
|
||||||
|
namespace: ${NAMESPACE}
|
||||||
|
spec:
|
||||||
|
name: ${REST_HOSTNAME}
|
||||||
|
certificateRef:
|
||||||
|
name: ${NAME}
|
||||||
Reference in New Issue
Block a user