From 0dd44a94218c7715ba2babd28dac462c191d661c Mon Sep 17 00:00:00 2001
From: Andrey Senyaev <76472231+asenyaev@users.noreply.github.com>
Date: Sat, 16 Dec 2023 01:01:01 +0300
Subject: [PATCH] Move back Istio k8s config as an additional one (before
v1.29.0)
---
Proxy-examples.md | 62 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
diff --git a/Proxy-examples.md b/Proxy-examples.md
index 66d3ed3..1e6939e 100644
--- a/Proxy-examples.md
+++ b/Proxy-examples.md
@@ -975,6 +975,68 @@ spec:
host: vaultwarden
```
+
+
+Istio k8s - (before v1.29.0) (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
+```
+
+
relayd on openbsd (by olliestrickland)