Change pvc set up to local storage
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
# resources:
|
resources:
|
||||||
# - deployment.yaml
|
- pvc.yaml
|
||||||
# - service.yaml
|
- deployment.yaml
|
||||||
# - ingress.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:
|
values:
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
storageClassName: longhorn
|
storageClassName: local-storage
|
||||||
@@ -4,6 +4,6 @@ namespace: monitoring
|
|||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- helmrepo.yaml
|
- helmrepo.yaml
|
||||||
# - ./loki
|
- ./loki
|
||||||
# - ./promtail
|
- ./promtail
|
||||||
# - ./grafana
|
- ./grafana
|
||||||
@@ -45,7 +45,7 @@ spec:
|
|||||||
minio:
|
minio:
|
||||||
enabled: true
|
enabled: true
|
||||||
persistence:
|
persistence:
|
||||||
storageClass: longhorn
|
storageClass: local-storage
|
||||||
|
|
||||||
# Zero out replica counts of other deployment modes
|
# Zero out replica counts of other deployment modes
|
||||||
singleBinary:
|
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
|
- Burn to usb
|
||||||
- Boot from usb, live install and go to the config webui
|
- 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"`)
|
- 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`)
|
- 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