Add storage class for ocean pool

This commit is contained in:
2025-07-25 18:16:55 +02:00
parent d3eb6349f9
commit 660acfd4b3
4 changed files with 45 additions and 7 deletions

View File

@@ -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
```

View File

@@ -29,6 +29,7 @@ spec:
env:
- name: AUTHENTIK_STORAGE__MEDIA__BACKEND
value: s3
# TODO: configure s3
- name: AUTHENTIK_POSTGRESQL__SSLMODE
value: verify-full

View File

@@ -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

View File

@@ -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