mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-12 04:25:08 +08:00
26 lines
589 B
YAML
26 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
|
|
|