2021-07-08 05:12:24 +08:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
kubernetes.io/ingress.class: "traefik"
|
|
|
|
kubernetes.io/ingress.allow-http: "false"
|
|
|
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
|
|
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
|
|
|
traefik.ingress.kubernetes.io/rule-type: "PathPrefixStrip"
|
|
|
|
cert-manager.io/cluster-issuer: wildcard-issuer
|
|
|
|
name: nm-api-ingress
|
|
|
|
namespace: netmaker
|
|
|
|
spec:
|
|
|
|
rules:
|
2021-07-16 03:27:34 +08:00
|
|
|
- host: api.NETMAKER_BASE_DOMAIN
|
2021-07-08 05:12:24 +08:00
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
backend:
|
|
|
|
serviceName: netmaker
|
|
|
|
servicePort: 8081
|
|
|
|
tls:
|
|
|
|
- hosts:
|
2021-07-16 03:27:34 +08:00
|
|
|
- api.NETMAKER_BASE_DOMAIN
|
2021-07-08 05:12:24 +08:00
|
|
|
secretName: cert-nm-api
|