restore longhorn

This commit is contained in:
Amarpreet Minhas 2024-03-09 21:04:40 +00:00
parent f5225b73b9
commit 79d8dab666
2 changed files with 68 additions and 0 deletions

12
helm/longhorn/install.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
CHART_VERSION=1.4.4
helm repo add longhorn https://charts.longhorn.io
helm repo update
helm upgrade --install \
longhorn \
longhorn/longhorn \
-n longhorn-system \
--version ${CHART_VERSION} \
--create-namespace \
--cleanup-on-fail

View file

@ -0,0 +1,56 @@
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: longhorn-cert
namespace: istio-system
spec:
secretName: longhorn-cert
commonName: longhorn.teapot.masked.name
dnsNames:
- longhorn.teapot.masked.name
issuerRef:
name: vault-issuer
kind: ClusterIssuer
group: cert-manager.io
...
---
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: longhorn-gateway
namespace: longhorn-system
spec:
selector:
istio: ingressgateway-internal
servers:
- port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: longhorn-cert
hosts:
- longhorn.teapot.masked.name
...
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: longhorn-gateway
namespace: longhorn-system
spec:
hosts:
- longhorn.teapot.masked.name
gateways:
- longhorn-gateway
http:
- match:
- uri:
prefix: /
route:
- destination:
port:
number: 80
host: longhorn-frontend