Change pvc set up to local storage

This commit is contained in:
2024-08-18 22:29:58 +01:00
parent c3b68ec4fd
commit b3fe51e9da
9 changed files with 32 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# resources:
# - deployment.yaml
# - service.yaml
# - ingress.yaml
resources:
- pvc.yaml
- deployment.yaml
- service.yaml
- ingress.yaml

8
apps/sonarr/pvc.yaml Normal file
View File

@@ -0,0 +1,8 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: sonarr-pvc
spec:
accessModes:
- ReadWriteOncePod
storageClassName: local-storage

View File

@@ -16,4 +16,4 @@ spec:
values:
persistence:
enabled: true
storageClassName: longhorn
storageClassName: local-storage

View File

@@ -4,6 +4,6 @@ namespace: monitoring
resources:
- namespace.yaml
- helmrepo.yaml
# - ./loki
# - ./promtail
# - ./grafana
- ./loki
- ./promtail
- ./grafana

View File

@@ -45,7 +45,7 @@ spec:
minio:
enabled: true
persistence:
storageClass: longhorn
storageClass: local-storage
# Zero out replica counts of other deployment modes
singleBinary:

View File

@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- storageclass.yaml

View File

@@ -0,0 +1,9 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-storage
provisioner: rancher.io/local-path
parameters:
nodePath: /usr/local
pathPattern: "{{ .PVC.Namespace }}/{{ .PVC.Name }}"
reclaimPolicy: Retain

View File

@@ -13,7 +13,7 @@
- Burn to usb
- Boot from usb, live install and go to the config webui
- Add the public keys to the config (from ~/.ssh - `ssh-keygen -t ed25519 -C "joemonk@hotmail.co.uk"`)
- Put the kairos_config in, check the shutdown button and let it install
- Put the kairos-config in, check the shutdown button and let it install
- Remove the usb, ssh in with using the specific private key (i.e. from ~/.ssh - `ssh -i ./kairos kairos@192.168.1.101` or add the following to ~/.ssh/config to just use `ssh 192.168.1.101`)
```