feat: add ingress for invest-api.k8s.home
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Yaojia Wang
2026-03-10 01:28:24 +01:00
parent 1a0c8ea675
commit f9f5d37b44
2 changed files with 25 additions and 0 deletions

24
k8s/base/ingress.yaml Normal file
View File

@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: invest-api
namespace: invest-api
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "10m"
spec:
ingressClassName: nginx
tls:
- hosts:
- invest-api.k8s.home
secretName: invest-api-tls
rules:
- host: invest-api.k8s.home
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: invest-api
port:
number: 8000

View File

@@ -8,3 +8,4 @@ resources:
- secret.yaml - secret.yaml
- deployment.yaml - deployment.yaml
- service.yaml - service.yaml
- ingress.yaml