configure longhorn for pvc
All checks were successful
Mirror to GitHub / mirror (push) Successful in 7s
All checks were successful
Mirror to GitHub / mirror (push) Successful in 7s
This commit is contained in:
17
longhorn/kustomization.yaml
Normal file
17
longhorn/kustomization.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
helmCharts:
|
||||
- name: longhorn
|
||||
repo: https://charts.longhorn.io
|
||||
releaseName: longhorn
|
||||
namespace: longhorn-system
|
||||
version: v1.12.0
|
||||
valuesInline:
|
||||
preUpgradeChecker:
|
||||
jobEnabled: false
|
||||
csi:
|
||||
kubeletRootDir: /var/snap/microk8s/common/var/lib/kubelet
|
||||
|
||||
resources:
|
||||
- longhorn-istio.yaml
|
||||
20
longhorn/longhorn-application.yaml
Normal file
20
longhorn/longhorn-application.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: longhorn
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
project: longhorn
|
||||
source:
|
||||
repoURL: https://gitea.controller.bittehackmichnicht.de/argocd/kubernetes-config.git
|
||||
targetRevision: main
|
||||
path: longhorn
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: longhorn-system
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- ServerSideApply=true
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
38
longhorn/longhorn-istio.yaml
Normal file
38
longhorn/longhorn-istio.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: longhorn-gateway
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
selector:
|
||||
istio: ingressgateway
|
||||
servers:
|
||||
- port:
|
||||
number: 443
|
||||
name: https-longhorn
|
||||
protocol: HTTPS
|
||||
hosts:
|
||||
- longhorn.k8s.bittehackmichnicht.de
|
||||
tls:
|
||||
mode: PASSTHROUGH
|
||||
---
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: longhorn-vs
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
hosts:
|
||||
- longhorn.k8s.bittehackmichnicht.de
|
||||
gateways:
|
||||
- longhorn-gateway
|
||||
tls:
|
||||
- match:
|
||||
- port: 443
|
||||
sniHosts:
|
||||
- longhorn.k8s.bittehackmichnicht.de
|
||||
route:
|
||||
- destination:
|
||||
host: longhorn-ui.longhorn-system.svc.cluster.local
|
||||
port:
|
||||
number: 80
|
||||
Reference in New Issue
Block a user