the great migration from truenas to fedora and all its collatoral
All checks were successful
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 24m47s
All checks were successful
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 24m47s
This commit is contained in:
@@ -3,11 +3,8 @@
|
||||
value: |-
|
||||
{
|
||||
"storageClassConfigs": {
|
||||
"ssd": {
|
||||
"sharedFileSystemPath": "/opt/local-path-provisioner/ssd"
|
||||
},
|
||||
"hdd": {
|
||||
"sharedFileSystemPath": "/opt/local-path-provisioner/hdd"
|
||||
"local-path": {
|
||||
"sharedFileSystemPath": "/opt/local-path-provisioner"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
- op: replace # action
|
||||
path: /metadata/name # resource we want to change
|
||||
value: hdd # value we want to use for patching
|
||||
@@ -1,15 +1,10 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
# Creates local path storage and a storage class
|
||||
# Patched by ConfigMap-patch.yaml and namespace-patch.yaml
|
||||
resources:
|
||||
- local-path-storage.yaml
|
||||
- ssd-storage.yaml
|
||||
patches:
|
||||
- target:
|
||||
group: storage.k8s.io
|
||||
version: v1
|
||||
kind: StorageClass
|
||||
name: local-path
|
||||
path: StorageClass-hdd-patch.yaml
|
||||
- target:
|
||||
group: ""
|
||||
version: v1
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
|
||||
# Local Path Provisioner Install
|
||||
|
||||
1. `mkdir /var/lib/rancher/k3s/storage`
|
||||
2. Edit fstab to mount your drive to `/var/lib/rancher/k3s/storage`
|
||||
3. `systemctl daemon-reload`
|
||||
4. `mount -a`
|
||||
|
||||
<https://github.com/rancher/local-path-provisioner/tree/master/deploy/chart/local-path-provisioner>
|
||||
|
||||
```bash
|
||||
# Download the updated template from github
|
||||
kubectl kustomize "github.com/rancher/local-path-provisioner/deploy?ref=v0.0.31" > kubernetes/graduated/local-path-provisioner/local-path-storage.yaml
|
||||
|
||||
# Apply customizations (ssd/hdd storage, read write many support)
|
||||
kubectl kustomize kubernetes/graduated/local-path-provisioner | kubectl apply -f -
|
||||
|
||||
# Create test pod
|
||||
kubectl apply -f systemd/graduated/k3s/tests/local-storage-test.yaml
|
||||
kubectl get pod -n default
|
||||
# Exec in and test - storage will be mounted at /storage
|
||||
kubectl exec -it -n default <local-storage-test> -- bash
|
||||
kubectl delete -f systemd/graduated/k3s/tests/local-storage-test.yaml
|
||||
```
|
||||
@@ -176,7 +176,7 @@ spec:
|
||||
fieldPath: metadata.namespace
|
||||
- name: CONFIG_MOUNT_PATH
|
||||
value: /etc/config/
|
||||
image: rancher/local-path-provisioner:v0.0.28
|
||||
image: rancher/local-path-provisioner:v0.0.31
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: local-path-provisioner
|
||||
volumeMounts:
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: ssd
|
||||
annotations:
|
||||
storageclass.kubernetes.io/is-default-class: "true"
|
||||
provisioner: rancher.io/local-path
|
||||
reclaimPolicy: Delete
|
||||
volumeBindingMode: WaitForFirstConsumer
|
||||
Reference in New Issue
Block a user