Initial commit

This commit is contained in:
Arvind Prabhakar 2026-06-16 00:03:01 +00:00
commit c029592583
31 changed files with 39732 additions and 0 deletions

View file

@ -0,0 +1,6 @@
apiVersion: v2
name: longhorn-wrapper
description: Wrapper chart for Longhorn
type: application
version: 0.1.0
appVersion: "1.0.0"

View file

@ -0,0 +1,39 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: {{ .Values.route.name }}
namespace: {{ .Values.route.namespace }}
spec:
parentRefs:
- name: {{ .Values.route.gatewayName }}
namespace: {{ .Values.route.gatewayNamespace }}
hostnames:
{{- range .Values.route.hostnames }}
- {{ . | quote }}
{{- end }}
rules:
- matches:
- path:
type: Exact
value: {{ .Values.longhorn.basePath | quote }}
filters:
- type: RequestRedirect
requestRedirect:
path:
type: ReplaceFullPath
replaceFullPath: {{ printf "%s/" .Values.longhorn.basePath | quote }}
statusCode: 301
- matches:
- path:
type: PathPrefix
value: {{ printf "%s/" .Values.longhorn.basePath | quote }}
filters:
- type: URLRewrite
urlRewrite:
path:
type: ReplacePrefixMatch
replacePrefixMatch: {{ .Values.longhorn.rewriteTo | quote }}
backendRefs:
- name: {{ .Values.route.serviceName }}
port: {{ .Values.route.servicePort }}

View file

@ -0,0 +1,12 @@
defaultSettings:
defaultDataPath: /var/lib/longhorn
defaultReplicaCount: 2
persistence:
defaultClassReplicaCount: 2
longhornUI:
replicas: 1
ingress:
enabled: false

View file

@ -0,0 +1,15 @@
longhorn:
url: http://www.symcrest.com/internal/ops/longhorn
basePath: /internal/ops/longhorn
rewriteTo: /
route:
name: longhorn
namespace: longhorn-system
gatewayName: public-gateway
gatewayNamespace: apps
hostnames:
- symcrest.com
- www.symcrest.com
serviceName: longhorn-frontend
servicePort: 80