Move syncthing off Longhorn
This commit is contained in:
parent
415c60be45
commit
777bb629a2
4 changed files with 12 additions and 23 deletions
|
@ -8,8 +8,6 @@
|
|||
|
||||
config = lib.mkIf config.syncthing.enable {
|
||||
kubernetes.resources = {
|
||||
serviceAccounts.syncthing = {};
|
||||
|
||||
deployments.syncthing.spec = {
|
||||
selector.matchLabels.app = "syncthing";
|
||||
|
||||
|
@ -26,7 +24,7 @@
|
|||
metadata.labels.app = "syncthing";
|
||||
|
||||
spec = {
|
||||
serviceAccountName = "syncthing";
|
||||
nodeName = "jefke";
|
||||
|
||||
containers.syncthing = {
|
||||
image = globals.images.syncthing;
|
||||
|
@ -52,8 +50,15 @@
|
|||
};
|
||||
|
||||
volumes = {
|
||||
config.persistentVolumeClaim.claimName = "config";
|
||||
keepassxc.persistentVolumeClaim.claimName = "keepassxc";
|
||||
keepassxc.hostPath = {
|
||||
path = "/mnt/longhorn/persistent/volumes/keepassxc";
|
||||
type = "Directory";
|
||||
};
|
||||
|
||||
config.hostPath = {
|
||||
path = "/mnt/longhorn/persistent/volumes/syncthing";
|
||||
type = "Directory";
|
||||
};
|
||||
};
|
||||
|
||||
securityContext = {
|
||||
|
@ -77,18 +82,6 @@
|
|||
};
|
||||
|
||||
lab = {
|
||||
longhorn.persistentVolumeClaim = {
|
||||
config = {
|
||||
volumeName = "syncthing";
|
||||
storage = "400Mi";
|
||||
};
|
||||
|
||||
keepassxc = {
|
||||
volumeName = "keepassxc";
|
||||
storage = "100Mi";
|
||||
};
|
||||
};
|
||||
|
||||
tailscaleIngresses.tailscale = {
|
||||
host = "syncthing";
|
||||
service.name = "syncthing";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue