diff --git a/_/ClusterRole/hairpin-proxy-controller-cr.yaml b/_/ClusterRole/hairpin-proxy-controller-cr.yaml deleted file mode 100644 index bb7d88b..0000000 --- a/_/ClusterRole/hairpin-proxy-controller-cr.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: hairpin-proxy-controller-cr -rules: - - apiGroups: - - extensions - - networking.k8s.io - resources: - - ingresses - verbs: - - get - - list - - watch diff --git a/_/ClusterRoleBinding/hairpin-proxy-controller-crb.yaml b/_/ClusterRoleBinding/hairpin-proxy-controller-crb.yaml deleted file mode 100644 index a01ce2e..0000000 --- a/_/ClusterRoleBinding/hairpin-proxy-controller-crb.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: hairpin-proxy-controller-crb -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: hairpin-proxy-controller-cr -subjects: - - kind: ServiceAccount - name: hairpin-proxy-controller-sa - namespace: hairpin-proxy diff --git a/_/Namespace/hairpin-proxy.yaml b/_/Namespace/hairpin-proxy.yaml deleted file mode 100644 index 093b5da..0000000 --- a/_/Namespace/hairpin-proxy.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: hairpin-proxy diff --git a/choose-native-plants/HTTPRoute/choose-native-plants.yaml b/choose-native-plants/HTTPRoute/choose-native-plants.yaml index 3c5f559..e1b2b61 100644 --- a/choose-native-plants/HTTPRoute/choose-native-plants.yaml +++ b/choose-native-plants/HTTPRoute/choose-native-plants.yaml @@ -7,8 +7,6 @@ spec: hostnames: - choose-native-plants.sandbox.k8s.phl.io parentRefs: - - name: main-gateway - namespace: envoy-gateway-system - name: choose-native-plants rules: - backendRefs: diff --git a/code-for-philly/HTTPRoute/latest.yaml b/code-for-philly/HTTPRoute/latest.yaml index de491b2..78c198b 100644 --- a/code-for-philly/HTTPRoute/latest.yaml +++ b/code-for-philly/HTTPRoute/latest.yaml @@ -7,8 +7,6 @@ spec: hostnames: - latest.codeforphilly.sandbox.k8s.phl.io parentRefs: - - name: main-gateway - namespace: envoy-gateway-system - name: latest rules: - backendRefs: diff --git a/codeforphilly-rewrite-sandbox/HTTPRoute/codeforphilly.yaml b/codeforphilly-rewrite-sandbox/HTTPRoute/codeforphilly.yaml index 00f7d3e..d6b6dd9 100644 --- a/codeforphilly-rewrite-sandbox/HTTPRoute/codeforphilly.yaml +++ b/codeforphilly-rewrite-sandbox/HTTPRoute/codeforphilly.yaml @@ -7,8 +7,6 @@ spec: hostnames: - codeforphilly-rewrite.codeforphilly.sandbox.k8s.phl.io parentRefs: - - name: main-gateway - namespace: envoy-gateway-system - name: codeforphilly rules: - backendRefs: diff --git a/echo-http/HTTPRoute/echo-http.yaml b/echo-http/HTTPRoute/echo-http.yaml index c670310..52a4f6a 100644 --- a/echo-http/HTTPRoute/echo-http.yaml +++ b/echo-http/HTTPRoute/echo-http.yaml @@ -7,8 +7,6 @@ spec: hostnames: - echo-http.sandbox.k8s.phl.io parentRefs: - - name: main-gateway - namespace: envoy-gateway-system - name: echo-http rules: - backendRefs: diff --git a/envoy-gateway-system/HTTPRoute/http-redirect.yaml b/envoy-gateway-system/HTTPRoute/http-redirect.yaml new file mode 100644 index 0000000..611b673 --- /dev/null +++ b/envoy-gateway-system/HTTPRoute/http-redirect.yaml @@ -0,0 +1,14 @@ +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: http-redirect + namespace: envoy-gateway-system +spec: + parentRefs: + - name: main-gateway + rules: + - filters: + - requestRedirect: + scheme: https + statusCode: 301 + type: RequestRedirect diff --git a/grafana/HTTPRoute/grafana.yaml b/grafana/HTTPRoute/grafana.yaml index a6df59c..0403f74 100644 --- a/grafana/HTTPRoute/grafana.yaml +++ b/grafana/HTTPRoute/grafana.yaml @@ -7,8 +7,6 @@ spec: hostnames: - metrics.sandbox.k8s.phl.io parentRefs: - - name: main-gateway - namespace: envoy-gateway-system - name: grafana rules: - backendRefs: diff --git a/hairpin-proxy/Deployment/hairpin-proxy-controller.yaml b/hairpin-proxy/Deployment/hairpin-proxy-controller.yaml deleted file mode 100644 index 44c138e..0000000 --- a/hairpin-proxy/Deployment/hairpin-proxy-controller.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app: hairpin-proxy-controller - name: hairpin-proxy-controller - namespace: hairpin-proxy -spec: - replicas: 1 - selector: - matchLabels: - app: hairpin-proxy-controller - template: - metadata: - labels: - app: hairpin-proxy-controller - spec: - containers: - - env: - - name: COREDNS_CONFIGMAP_NAME - value: coredns-custom - - name: COREDNS_IMPORT_CONFIG - value: 'true' - image: ghcr.io/jarvusinnovations/hairpin-proxy/controller:0.3.0 - name: main - resources: - limits: - cpu: 50m - memory: 100Mi - requests: - cpu: 10m - memory: 50Mi - securityContext: - runAsGroup: 65533 - runAsUser: 405 - serviceAccountName: hairpin-proxy-controller-sa diff --git a/hairpin-proxy/Deployment/hairpin-proxy-haproxy.yaml b/hairpin-proxy/Deployment/hairpin-proxy-haproxy.yaml deleted file mode 100644 index 20ba8a9..0000000 --- a/hairpin-proxy/Deployment/hairpin-proxy-haproxy.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app: hairpin-proxy-haproxy - name: hairpin-proxy-haproxy - namespace: hairpin-proxy -spec: - replicas: 1 - selector: - matchLabels: - app: hairpin-proxy-haproxy - template: - metadata: - labels: - app: hairpin-proxy-haproxy - spec: - containers: - - image: ghcr.io/jarvusinnovations/hairpin-proxy/haproxy:0.3.0 - name: main - resources: - limits: - cpu: 50m - memory: 200Mi - requests: - cpu: 10m - memory: 100Mi diff --git a/hairpin-proxy/Service/hairpin-proxy.yaml b/hairpin-proxy/Service/hairpin-proxy.yaml deleted file mode 100644 index f38ee00..0000000 --- a/hairpin-proxy/Service/hairpin-proxy.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: hairpin-proxy - namespace: hairpin-proxy -spec: - ports: - - name: http - port: 80 - protocol: TCP - targetPort: 80 - - name: https - port: 443 - protocol: TCP - targetPort: 443 - selector: - app: hairpin-proxy-haproxy diff --git a/hairpin-proxy/ServiceAccount/hairpin-proxy-controller-sa.yaml b/hairpin-proxy/ServiceAccount/hairpin-proxy-controller-sa.yaml deleted file mode 100644 index d00336f..0000000 --- a/hairpin-proxy/ServiceAccount/hairpin-proxy-controller-sa.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: hairpin-proxy-controller-sa - namespace: hairpin-proxy diff --git a/kube-system/ConfigMap/coredns-custom.yaml b/kube-system/ConfigMap/coredns-custom.yaml deleted file mode 100644 index e50b593..0000000 --- a/kube-system/ConfigMap/coredns-custom.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v1 -data: - hairpinproxy.include: '' -kind: ConfigMap -metadata: - name: coredns-custom - namespace: kube-system diff --git a/kube-system/Role/hairpin-proxy-controller-r.yaml b/kube-system/Role/hairpin-proxy-controller-r.yaml deleted file mode 100644 index e0e52ad..0000000 --- a/kube-system/Role/hairpin-proxy-controller-r.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: hairpin-proxy-controller-r - namespace: kube-system -rules: - - apiGroups: - - '' - resourceNames: - - coredns - - coredns-base - - coredns-custom - resources: - - configmaps - verbs: - - get - - watch - - update diff --git a/kube-system/RoleBinding/hairpin-proxy-controller-rb.yaml b/kube-system/RoleBinding/hairpin-proxy-controller-rb.yaml deleted file mode 100644 index f3df467..0000000 --- a/kube-system/RoleBinding/hairpin-proxy-controller-rb.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: hairpin-proxy-controller-rb - namespace: kube-system -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: hairpin-proxy-controller-r -subjects: - - kind: ServiceAccount - name: hairpin-proxy-controller-sa - namespace: hairpin-proxy diff --git a/laddr/HTTPRoute/latest.yaml b/laddr/HTTPRoute/latest.yaml index 0b9ecb4..4c317a8 100644 --- a/laddr/HTTPRoute/latest.yaml +++ b/laddr/HTTPRoute/latest.yaml @@ -7,8 +7,6 @@ spec: hostnames: - latest.laddr.sandbox.k8s.phl.io parentRefs: - - name: main-gateway - namespace: envoy-gateway-system - name: latest rules: - backendRefs: diff --git a/metabase/HTTPRoute/metabase.yaml b/metabase/HTTPRoute/metabase.yaml index a42bf44..f3f9ec7 100644 --- a/metabase/HTTPRoute/metabase.yaml +++ b/metabase/HTTPRoute/metabase.yaml @@ -7,8 +7,6 @@ spec: hostnames: - metabase.sandbox.k8s.phl.io parentRefs: - - name: main-gateway - namespace: envoy-gateway-system - name: metabase rules: - backendRefs: diff --git a/paws-data-pipeline/HTTPRoute/paws-data-pipeline.yaml b/paws-data-pipeline/HTTPRoute/paws-data-pipeline.yaml index 04d9cbe..c84d051 100644 --- a/paws-data-pipeline/HTTPRoute/paws-data-pipeline.yaml +++ b/paws-data-pipeline/HTTPRoute/paws-data-pipeline.yaml @@ -7,8 +7,6 @@ spec: hostnames: - paws-data-pipeline.sandbox.k8s.phl.io parentRefs: - - name: main-gateway - namespace: envoy-gateway-system - name: paws-data-pipeline rules: - backendRefs: diff --git a/prevention-point/HTTPRoute/prevention-point.yaml b/prevention-point/HTTPRoute/prevention-point.yaml index b12c9a2..be4f74b 100644 --- a/prevention-point/HTTPRoute/prevention-point.yaml +++ b/prevention-point/HTTPRoute/prevention-point.yaml @@ -7,8 +7,6 @@ spec: hostnames: - prevention-point.sandbox.k8s.phl.io parentRefs: - - name: main-gateway - namespace: envoy-gateway-system - name: prevention-point rules: - backendRefs: diff --git a/sealed-secrets/HTTPRoute/sealed-secrets.yaml b/sealed-secrets/HTTPRoute/sealed-secrets.yaml index cdfab2f..8f19db8 100644 --- a/sealed-secrets/HTTPRoute/sealed-secrets.yaml +++ b/sealed-secrets/HTTPRoute/sealed-secrets.yaml @@ -7,8 +7,6 @@ spec: hostnames: - sealed-secrets.sandbox.k8s.phl.io parentRefs: - - name: main-gateway - namespace: envoy-gateway-system - name: sealed-secrets rules: - backendRefs: