mirror of
https://github.com/zoriya/snow.git
synced 2025-12-05 23:06:23 +00:00
Add storage class for ocean pool
This commit is contained in:
@@ -16,3 +16,11 @@ helm install argocd oci://ghcr.io/argoproj/argo-helm/argo-cd -n argocd --create-
|
||||
|
||||
kubectl apply -f ./apps/apps.yaml
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
zfs pool creation:
|
||||
```bash
|
||||
k -n kube-system debug -it --profile sysadmin --image=ubuntu node/kadan
|
||||
chroot /host zpool create -o ashift=12 -O mountpoint=/var/ocean -O xattr=sa -O compression=zstd -O acltype=posixacl -O atime=off ocean raidz sdc sdd
|
||||
```
|
||||
|
||||
@@ -29,6 +29,7 @@ spec:
|
||||
env:
|
||||
- name: AUTHENTIK_STORAGE__MEDIA__BACKEND
|
||||
value: s3
|
||||
# TODO: configure s3
|
||||
|
||||
- name: AUTHENTIK_POSTGRESQL__SSLMODE
|
||||
value: verify-full
|
||||
|
||||
@@ -52,3 +52,13 @@ parameters:
|
||||
fstype: zfs
|
||||
poolname: tank
|
||||
provisioner: zfs.csi.openebs.io
|
||||
---
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: openebs-zfs-ocean
|
||||
parameters:
|
||||
compression: zstd
|
||||
fstype: zfs
|
||||
poolname: ocean
|
||||
provisioner: zfs.csi.openebs.io
|
||||
|
||||
33
debug.yaml
33
debug.yaml
@@ -72,10 +72,29 @@ spec:
|
||||
name: ubuntu
|
||||
spec:
|
||||
containers:
|
||||
- name: ubuntu
|
||||
image: ubuntu
|
||||
command:
|
||||
- sleep
|
||||
- infinity
|
||||
securityContext:
|
||||
privileged: true
|
||||
- name: ubuntu
|
||||
image: ubuntu
|
||||
command:
|
||||
- sleep
|
||||
- infinity
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumeMounts:
|
||||
- mountPath: /dev
|
||||
name: dev
|
||||
- mountPath: /host
|
||||
name: host
|
||||
volumes:
|
||||
- name: host
|
||||
hostPath:
|
||||
path: /
|
||||
type: Directory
|
||||
- name: dev
|
||||
hostPath:
|
||||
path: /dev
|
||||
type: Directory
|
||||
tolerations:
|
||||
- key: node.kubernetes.io/disk-pressure
|
||||
operator: Exists
|
||||
effect: PreferNoSchedule
|
||||
|
||||
|
||||
Reference in New Issue
Block a user