From d8d6c729f5bb189c30239ec8fafce27359fed09f Mon Sep 17 00:00:00 2001 From: Dpoke Date: Sun, 5 Dec 2021 23:14:56 +0300 Subject: [PATCH] Updated Proxy examples (markdown) --- Proxy-examples.md | 61 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/Proxy-examples.md b/Proxy-examples.md index fdae616..86cc200 100644 --- a/Proxy-examples.md +++ b/Proxy-examples.md @@ -721,4 +721,65 @@ This in turn will add the equivilent of below to your config (note this is an ex use_backend VaultWarden-Notifications_ipvANY if !ACL4 To test, if you navigate in a browser to /notifications/hub then you should get a page saying "WebSocket Protocol Error: Unable to parse WebSocket key.".. that means its working! - all other sub pages should get a Rocket error. + + +
+Istio k8s (by @dpoke)
+ +```gateway+vs +apiVersion: networking.istio.io/v1beta1 +kind: Gateway +metadata: + name: vaultwarden-gateway + namespace: vaultwarden +spec: + selector: + istio: ingressgateway-internal # use Istio default gateway implementation + servers: + - hosts: + - vw.k8s.prod + port: + number: 80 + name: http + protocol: HTTP + tls: + httpsRedirect: true + - hosts: + - vw.k8s.prod + port: + name: https-443 + number: 443 + protocol: HTTPS + tls: + mode: SIMPLE + credentialName: vw-k8s-prod-tls +--- +apiVersion: networking.istio.io/v1beta1 +kind: VirtualService +metadata: + name: vaultwarden-vs + namespace: vaultwarden +spec: + hosts: + - vw.k8s.prod + gateways: + - vaultwarden-gateway + http: + - match: + - uri: + exact: /notifications/hub + route: + - destination: + port: + number: 3012 + host: vaultwarden-ws + - match: + - uri: + prefix: / + route: + - destination: + port: + number: 80 + host: vaultwarden +```
\ No newline at end of file