diff --git a/whatismyip/gateway.yaml b/whatismyip/gateway.yaml new file mode 100644 index 0000000..40206de --- /dev/null +++ b/whatismyip/gateway.yaml @@ -0,0 +1,18 @@ +apiVersion: gateway.networking.k8s.io/v1 +kind: Gateway +metadata: + name: traefik +spec: + gatewayClassName: traefik + listeners: + - name: https + protocol: HTTPS + port: 8443 + tls: + mode: Terminate + certificateRefs: + - name: cert-dubyatp-xyz + namespace: cert-manager + allowedRoutes: + namespaces: + from: Same \ No newline at end of file diff --git a/whatismyip/httproute.yaml b/whatismyip/httproute.yaml new file mode 100644 index 0000000..71f4cc9 --- /dev/null +++ b/whatismyip/httproute.yaml @@ -0,0 +1,19 @@ +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: whatismyip-ingress +spec: + parentRefs: + - name: traefik + sectionName: https + kind: Gateway + hostnames: + - whatismyip.dubyatp.xyz + rules: + - matches: + - path: + type: PathPrefix + value: / + backendRefs: + - name: whatismyip-svc + port: 8080 \ No newline at end of file diff --git a/whatismyip/ingress.yaml b/whatismyip/ingress.yaml deleted file mode 100644 index 47983db..0000000 --- a/whatismyip/ingress.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: whatismyip-ingress - annotations: - traefik.ingress.kubernetes.io/router.middlewares: cloudflarewarp@file -spec: - rules: - - host: whatismyip.dubyatp.xyz - http: - paths: - - pathType: Prefix - path: "/" - backend: - service: - name: whatismyip-svc - port: - number: 8080 - tls: - - hosts: - - whatismyip.dubyatp.xyz - secretName: cert-dubyatp-xyz \ No newline at end of file