mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-14 13:44:37 +08:00
27 lines
589 B
YAML
27 lines
589 B
YAML
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: nm-api-ingress-nginx
|
||
|
annotations:
|
||
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
||
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||
|
nginx.ingress.kubernetes.io/ssl-redirect: 'true'
|
||
|
spec:
|
||
|
ingressClassName: public
|
||
|
tls:
|
||
|
- hosts:
|
||
|
- api.NETMAKER_BASE_DOMAIN
|
||
|
secretName: nm-api-tls
|
||
|
rules:
|
||
|
- host: api.NETMAKER_BASE_DOMAIN
|
||
|
http:
|
||
|
paths:
|
||
|
- path: /
|
||
|
pathType: Prefix
|
||
|
backend:
|
||
|
service:
|
||
|
name: netmaker-api
|
||
|
port:
|
||
|
number: 8081
|
||
|
|