whatismyip: migrate to gateway api
This commit is contained in:
3 files changed
+37
-22
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user