Setup linting

This commit is contained in:
2026-01-07 23:41:08 +01:00
commit 87ea6d4ba1
39 changed files with 626 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: longhorn-tls
namespace: longhorn-system
spec:
secretName: longhorn-tls
issuerRef:
name: letsencrypt-staging # TODO: change to letsencrypt-prod after timeout
kind: ClusterIssuer
dnsNames:
- longhorn.frankoslaw.top
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: longhorn-tls-ingress
namespace: longhorn-system
spec:
entryPoints:
- websecure
routes:
- match: Host(`longhorn.frankoslaw.top`)
kind: Rule
services:
- name: longhorn-frontend
port: 80
tls:
secretName: longhorn-tls

View File

@@ -0,0 +1,17 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: longhorn-system
resources:
- https://raw.githubusercontent.com/longhorn/longhorn/v1.10.1/deploy/longhorn.yaml
- ingress.yaml
patches:
- path: namespace.yaml
configMapGenerator:
- name: longhorn-storageclass
behavior: merge
namespace: longhorn-system
files:
- storageclass.yaml

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: longhorn-system

View File

@@ -0,0 +1,15 @@
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: longhorn
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: driver.longhorn.io
allowVolumeExpansion: true
reclaimPolicy: Delete
volumeBindingMode: Immediate
parameters:
numberOfReplicas: "1"
staleReplicaTimeout: "2880"
dataLocality: "best-effort"
fsType: "ext4"