Oleg Pykhalov 5a199d7c4e infrastructure: base: piraeus: release: Change reconcileStrategy. | 4 månader sedan | |
---|---|---|
.. | ||
README.md | 1 år sedan | |
kustomization.yaml | 1 år sedan | |
kustomizeconfig.yaml | 1 år sedan | |
namespace.yaml | 1 år sedan | |
release.yaml | 4 månader sedan | |
values.yaml | 1 år sedan |
piraeus-operator/security.md at master · piraeusdatastore/piraeus-operator
If you ever delete or change the passphrase secret, the LINSTOR Controller can no longer start with a failure message like Automatic injection of passphrase failed. You can force the Controller to start by setting the luksSecret value in the LinstorController resource to "". This will not give you access to encrypted items such as remotes, but it will allow the Controller to start. If you need to recover encrypted values, you need to restore the original secret.
cat <<EOF
apiVersion: v1
data:
MASTER_PASSPHRASE: $(pass show majordomo/public/kubernetes/piraeus/piraeus-op-passphrase)
immutable: true
kind: Secret
metadata:
name: piraeus-op-passphrase
namespace: piraeus
type: Opaque
EOF
cfdisk /dev/sda
pvcreate /dev/sda2
vgcreate vg0 /dev/sda2
lvcreate -l 100%FREE -Zn --type thin-pool --thinpool pool0 vg0
Run nix-shell to get kubectl linstor
.
$ kubectl linstor storage-pool create lvmthin kube1 pool0 lvm2/thinpool2
SUCCESS:
Successfully set property key(s): StorDriver/StorPoolName
SUCCESS:
Description:
New storage pool 'pool0' on node 'kube1' registered.
Details:
Storage pool 'pool0' on node 'kube1' UUID is: 6a41ba9f-a9bb-41bd-89dd-67ef5b39e7e2
SUCCESS:
(kube1) Changes applied to storage pool 'pool0'
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: dbench-linstor
spec:
storageClassName: linstor-pool0
accessModes:
- ReadWriteMany
resources:
requests:
storage: 5Gi
---
apiVersion: batch/v1
kind: Job
metadata:
name: dbench-linstor
spec:
template:
spec:
tolerations:
- operator: Exists
# nodeSelector:
# kubernetes.io/hostname: kube2
containers:
- name: dbench
image: sotoaster/dbench:latest
imagePullPolicy: IfNotPresent
env:
- name: DBENCH_MOUNTPOINT
value: /data
- name: FIO_SIZE
value: 1G
volumeMounts:
- name: dbench-pv
mountPath: /data
restartPolicy: Never
volumes:
- name: dbench-pv
persistentVolumeClaim:
claimName: dbench-linstor
backoffLimit: 4
Linstor/DRBD Grafana dashboards should not contain any bad (red) graphics.
Make sure there are no:
Also make sure there are no:
[ ] DrbdOptions/AutoEvictAllowEviction setted from default value of 'true' to custom 'false' [1] to avoid eviction from nodes with networking failure. The piraeus-op-cs-controller deployment restarted. No disconnects so far, but we should do something other than disabling DrbdOptions/AutoEvictAllowEviction option.
[1]:
$ linstor controller list-properties
DrbdOptions/AutoEvictAllowEviction false