feat: add ingress for invest-api.k8s.home
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
24
k8s/base/ingress.yaml
Normal file
24
k8s/base/ingress.yaml
Normal 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
|
||||
@@ -8,3 +8,4 @@ resources:
|
||||
- secret.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
|
||||
Reference in New Issue
Block a user