Skip to content

Commit

Permalink
ingress subpath example
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhatsharma committed Feb 22, 2022
1 parent d5df8c2 commit 7ad98d2
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions k8s/ingress-subpath.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/issuer: letsencrypt-prod
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/connection-proxy-header: keep-alive
nginx.ingress.kubernetes.io/proxy-body-size: 15m
nginx.ingress.kubernetes.io/rewrite-target: /$2
name: zinc
namespace: zinc
spec:
rules:
- host: zinc.yourdomain.com
http:
paths:
- pathType: Prefix
backend:
service:
name: z
port:
number: 4080
path: /subpath(/|$)(.*)
tls:
- hosts:
- zinc.yourdomain.com
secretName: zinc-tls

0 comments on commit 7ad98d2

Please sign in to comment.