Skip to content

Commit e3d4588

Browse files
committed
fix: Update Ingress path to support sub-paths for documentation
1 parent c68a3be commit e3d4588

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

k8s/deployment.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,16 @@ metadata:
4848
namespace: docs
4949
annotations:
5050
kubernetes.io/ingress.class: nginx
51+
nginx.ingress.kubernetes.io/rewrite-target: /$1
5152
spec:
5253
rules:
5354
- host: articom.io
5455
http:
5556
paths:
56-
- path: /docs
57+
- path: /docs(/|$)(.*)
5758
pathType: Prefix
5859
backend:
5960
service:
6061
name: articom-docs
6162
port:
62-
number: 3000
63+
number: 3000

0 commit comments

Comments
 (0)