duby-blog: migrate to gateway api
This commit is contained in:
3 files changed
+38
-33
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,20 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: duby-blog
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: traefik
|
||||||
|
sectionName: https
|
||||||
|
kind: Gateway
|
||||||
|
hostnames:
|
||||||
|
- dubyatp.xyz
|
||||||
|
- www.dubyatp.xyz
|
||||||
|
rules:
|
||||||
|
- matches:
|
||||||
|
- path:
|
||||||
|
type: PathPrefix
|
||||||
|
value: "/blog"
|
||||||
|
backendRefs:
|
||||||
|
- name: blog-dubyatp-xyz-svc
|
||||||
|
port: 80
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: duby-blog-ingress
|
|
||||||
labels:
|
|
||||||
name: duby-blog-ingress
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: dubyatp.xyz
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: "/blog"
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: blog-dubyatp-xyz-svc
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
- host: www.dubyatp.xyz
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: "/blog"
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: blog-dubyatp-xyz-svc
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- dubyatp.xyz
|
|
||||||
- www.dubyatp.xyz
|
|
||||||
secretName: cert-dubyatp-xyz
|
|
||||||
Reference in new issue
Block a user