Initial commit
This commit is contained in:
commit
c029592583
31 changed files with 39732 additions and 0 deletions
6
charts/longhorn/Chart.yaml
Normal file
6
charts/longhorn/Chart.yaml
Normal 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"
|
||||
39
charts/longhorn/templates/httproute.yaml
Normal file
39
charts/longhorn/templates/httproute.yaml
Normal 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 }}
|
||||
12
charts/longhorn/upstream-values.yaml
Normal file
12
charts/longhorn/upstream-values.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
defaultSettings:
|
||||
defaultDataPath: /var/lib/longhorn
|
||||
defaultReplicaCount: 2
|
||||
|
||||
persistence:
|
||||
defaultClassReplicaCount: 2
|
||||
|
||||
longhornUI:
|
||||
replicas: 1
|
||||
|
||||
ingress:
|
||||
enabled: false
|
||||
15
charts/longhorn/values.yaml
Normal file
15
charts/longhorn/values.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue