This commit is contained in:
23
kubernetes/ingress-traefik.yaml
Normal file
23
kubernetes/ingress-traefik.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: blog-ingress
|
||||
namespace: blog
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: traefik
|
||||
spec:
|
||||
rules:
|
||||
- host: blog.offends.cn
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: blog-gateway
|
||||
port:
|
||||
number: 80
|
||||
tls:
|
||||
- hosts:
|
||||
- blog.offends.cn
|
||||
secretName: blog-tls
|
Reference in New Issue
Block a user