Skip to content

Commit

Permalink
k8s/longhorn: init
Browse files Browse the repository at this point in the history
  • Loading branch information
ttrssreal committed Jan 13, 2025
1 parent fd97ceb commit 5350091
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
25 changes: 25 additions & 0 deletions k8s/longhorn/longhorn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: longhorn
namespace: apps
spec:
project: apps
source:
chart: longhorn
repoURL: https://charts.longhorn.io
targetRevision: 1.7.2
helm:
releaseName: longhorn
valuesObject:
# https://github.com/longhorn/longhorn/issues/6946
preUpgradeChecker:
jobEnabled: false
destination:
server: "https://kubernetes.default.svc"
namespace: longhorn-system
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false
4 changes: 4 additions & 0 deletions k8s/longhorn/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: longhorn-system
7 changes: 7 additions & 0 deletions nixos/ari/kubernetes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,22 @@
"k8s/github-runners"
"k8s/ingress"
"k8s/k8s-dashboard"
"k8s/longhorn"
];
};

networking.firewall.enable = false;

services = {
openiscsi = {
enable = true;
name = "iqn.2025-01.cafe.jessie.iscsi:ari";
};

# kuwubernetes
kubernetes = {
masterAddress = config.networking.hostName;
apiserver.allowPrivileged = true;

roles = [
"master"
Expand Down

0 comments on commit 5350091

Please sign in to comment.