Fixes MicroService Pathing

This commit is contained in:
2023-08-23 10:55:27 -03:00
parent 30fcf41c77
commit dcd0da0cd8
5 changed files with 35 additions and 3 deletions

View File

@@ -16,6 +16,13 @@ spec:
- host: ${DOMAIN}
http:
paths:
- path: /api/storage
pathType: Prefix
backend:
service:
name: storage-service
port:
number: 8000
- path: /api(/|$)(.*)
pathType: Prefix
backend:
@@ -25,6 +32,13 @@ spec:
number: 8070
- http:
paths:
- path: /api/storage
pathType: Prefix
backend:
service:
name: storage-service
port:
number: 8000
- path: /api(/|$)(.*)
pathType: Prefix
backend:

View File

@@ -12,6 +12,7 @@ spec:
- hosts:
- ${DOMAIN}
- ${API_DOMAIN}
- ${STORAGE_API_DOMAIN}
secretName: letsencrypt-cluster-certificate-tls
rules:
- host: ${DOMAIN}
@@ -34,6 +35,16 @@ spec:
name: backend-service
port:
number: 8070
- host: ${STORAGE_API_DOMAIN}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: storage-service
port:
number: 8000
- http:
paths:
- path: /

View File

@@ -5,6 +5,7 @@ metadata:
name: storage-secret
type: Opaque
data:
storage_url: $STORAGE_URL
storage_type: $STORAGE_TYPE
aws_access_key_id: $AWS_ACCESS_KEY_ID
aws_access_access_key: $AWS_SECRET_ACCESS_KEY