GPU-Live/template/stg/grafana/base/grafana/gateway.yaml

48 lines
1.0 KiB
YAML

# Gateway.yaml
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: grafana-gateway
namespace: grafana
spec:
# The selector matches the ingress gateway pod labels.
# If you installed Istio using Helm following the standard documentation, this would be "istio=ingress"
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- monitoring.gpulive.nhncloud.com
tls:
httpsRedirect: true # sends 301 redirect for http requests
- port:
number: 443
name: https
protocol: HTTPS
hosts:
- monitoring.gpulive.nhncloud.com
tls:
mode: SIMPLE # enables HTTPS on this port
credentialName: gpulive-new-ssl
---
# virtual-service.yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: grafana-vs
namespace: grafana
spec:
hosts:
- "monitoring.gpulive.nhncloud.com"
gateways:
- grafana-gateway
http:
- route:
- destination:
port:
number: 80
host: grafana