Objects can be set to immutable using object lock. Once an object is uploaded, this feature is manageable by below APIs.
A bucket can be set to have default object lock configuration using below API.
Objects can be set to immutable using object lock. Once an object is uploaded, this feature is manageable by below APIs.
A bucket can be set to have default object lock configuration using below API.
| #!/usr/bin/python | |
| import json | |
| import os | |
| import subprocess | |
| def _read_file(filename): | |
| try: | |
| with open(filename) as file: | |
| return file.read().strip() |
As MinIO needs the CN to have the policy name and original mkcert does not support this, download updated mkcert from https://github.com/kanagarajkm/mkcert/releases/download/v1.4.3-1/mkcert
mkcert localhostlocalhost-key.pem and localhost.pem to certs directory of minio server.cp -avi localhost-key.pem ~/.minio/certs/private.keyDrive CRD object is marked as Unavailable, if drive met one of the following condition at startup or added at runtime or dynamic discovery sync.
/var/lib/directcsi.$ kubectl edit directpvdrives <NEW-DRIVE-ID> and add directpv.min.io.volume/pvc-12345678 in the finalizer$ kubectl directpv cordon <NEW-DRIVE-ID>$ kubectl edit directpvdrives <NEW-DRIVE-ID> and remove the directpv.min.io.volume/pvc-12345678 finalizer$ ./replace.sh <OLD-DRIVE-ID> <NEW-DRIVE-ID>Get drives from each node and identify drives for usability.
DirectPV uses sysfs (/sys), udev (/run/udev/data) and procfs (/proc) on each node to collect all necessary information for this and they are stored in directpvnodes CRD.
Uniquely identify each drive not by drive name as it may change on node reboots/drive swaps/removal.
DirectPV computes a hash using values collected for each drive to make sure it is unique across all nodes. This hash is called ID which is also stored in directpvnodes CRD.
Add/Remove of nodes and drives.
DirectPV does not monitor addition or deletion of nodes and drives instead it collects information on demand to update directpvnodes CRD.