添加 k8s/ingress.yaml

This commit is contained in:
2026-03-23 14:21:24 +00:00
parent 38d68063a2
commit 9d22690f08

25
k8s/ingress.yaml Normal file
View 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