Change pvc set up to local storage
This commit is contained in:
@@ -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
8
apps/sonarr/pvc.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: sonarr-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOncePod
|
||||
storageClassName: local-storage
|
||||
@@ -16,4 +16,4 @@ spec:
|
||||
values:
|
||||
persistence:
|
||||
enabled: true
|
||||
storageClassName: longhorn
|
||||
storageClassName: local-storage
|
||||
@@ -4,6 +4,6 @@ namespace: monitoring
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- helmrepo.yaml
|
||||
# - ./loki
|
||||
# - ./promtail
|
||||
# - ./grafana
|
||||
- ./loki
|
||||
- ./promtail
|
||||
- ./grafana
|
||||
@@ -45,7 +45,7 @@ spec:
|
||||
minio:
|
||||
enabled: true
|
||||
persistence:
|
||||
storageClass: longhorn
|
||||
storageClass: local-storage
|
||||
|
||||
# Zero out replica counts of other deployment modes
|
||||
singleBinary:
|
||||
|
||||
4
clusters/kairos/storage/kustomization.yaml
Normal file
4
clusters/kairos/storage/kustomization.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- storageclass.yaml
|
||||
9
clusters/kairos/storage/storageclass.yaml
Normal file
9
clusters/kairos/storage/storageclass.yaml
Normal 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
|
||||
@@ -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`)
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user