添加 k8s/ingress.yaml
This commit is contained in:
25
k8s/ingress.yaml
Normal file
25
k8s/ingress.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# ingress.yaml
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: todo-ingress
|
||||||
|
namespace: drone
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
#traefik.ingress.kubernetes.io/service.protocol: http
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- todo.violin-work.online
|
||||||
|
secretName: violin-tls
|
||||||
|
rules:
|
||||||
|
- host: todo.violin-work.online
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: todo-frontend
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
Reference in New Issue
Block a user