diff --git a/clusters/ontime-dev/configs/gateway.yaml b/clusters/ontime-dev/configs/gateway.yaml deleted file mode 100644 index bef1e9e..0000000 --- a/clusters/ontime-dev/configs/gateway.yaml +++ /dev/null @@ -1,45 +0,0 @@ -apiVersion: gateway.networking.k8s.io/v1 -kind: Gateway -metadata: - annotations: - cert-manager.io/cluster-issuer: lets-encrypt-prod - name: ontime - namespace: kube-system -spec: - gatewayClassName: cilium - listeners: - - hostname: ontime.jwetzell.com - name: http - port: 80 - protocol: HTTP - allowedRoutes: - namespaces: - from: All - - hostname: ontime.jwetzell.com - name: https - port: 443 - protocol: HTTPS - allowedRoutes: - namespaces: - from: All - tls: - mode: Terminate - certificateRefs: - - name: ontime.jwetzell.com-tls ---- -apiVersion: gateway.networking.k8s.io/v1 -kind: HTTPRoute -metadata: - name: http-filter-redirect - namespace: kube-system -spec: - parentRefs: - - name: ontime - sectionName: http - namespace: kube-system - rules: - - filters: - - type: RequestRedirect - requestRedirect: - scheme: https - statusCode: 301 \ No newline at end of file diff --git a/clusters/ontime-dev/configs/kustomization.yaml b/clusters/ontime-dev/configs/kustomization.yaml index 8718b70..d95b52b 100644 --- a/clusters/ontime-dev/configs/kustomization.yaml +++ b/clusters/ontime-dev/configs/kustomization.yaml @@ -2,5 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - cluster-issuer.yaml - - gateway.yaml - storageclass.yaml \ No newline at end of file