add ingress
This commit is contained in:
19
kubernetes/fastapi-chart/templates/ingress.yaml
Normal file
19
kubernetes/fastapi-chart/templates/ingress.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: mark-word-fastapi-ingress
|
||||||
|
namespace: default
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/router.entrypoints: web
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: mark-word-fastapi
|
||||||
|
port:
|
||||||
|
number: 8000
|
||||||
Reference in New Issue
Block a user