I hereby claim:
- I am akhilerm on github.
- I am akhilerm (https://keybase.io/akhilerm) on keybase.
- I have a public key ASBCqlRqDCbrGLEQ6vIHi7fnMwjTKd0E-e-jmGu8f0ZbAwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
apiVersion: extensions/v1beta1 | |
kind: PodSecurityPolicy | |
metadata: | |
name: openebs-privileged | |
annotations: | |
seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*' | |
spec: | |
privileged: true | |
allowPrivilegeEscalation: true | |
allowedCapabilities: |
# Define Role that allows operations on K8s pods/deployments | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: openebs-maya-operator | |
rules: | |
- apiGroups: ["*"] | |
resources: ["nodes", "nodes/proxy"] | |
verbs: ["*"] | |
- apiGroups: ["*"] |
apiVersion: openebs.io/v1alpha1 | |
kind: StoragePoolClaim | |
metadata: | |
name: cstor-pool1 | |
annotations: | |
cas.openebs.io/config: | | |
- name: PoolResourceRequests | |
value: |- | |
memory: 1Gi | |
- name: PoolResourceLimits |
// gets the uuid of the provided disk | |
func getUid(device *udev.UdevDevice) string { | |
uid := device.GetPropertyValue(udev.UDEV_WWN) + | |
device.GetPropertyValue(udev.UDEV_MODEL) + | |
device.GetPropertyValue(udev.UDEV_SERIAL) + | |
device.GetPropertyValue(udev.UDEV_VENDOR) | |
idtype := device.GetPropertyValue(udev.UDEV_TYPE) |
disk.EnableUUID
.TRUE
.The configuration file for each VM has to be edited, so that the disk comes with a unique serial number
vi /etc/pve/qemu-server/<VMID>.conf
scsi1: images:<disk image>,cache=writeback,discard=on,size=120G,ssd=1,serial=5fb20ba17c2f
qm shutdown <VMID> && qm start <VMID>
apiVersion: openebs.io/v1alpha1 | |
kind: BlockDevice | |
metadata: | |
name: example-blockdevice | |
labels: | |
kubernetes.io/hostname: <host name of the node in which disk/blockdevice is attached> # like gke-openebs-user-default-pool-044afcb8-bmc0 | |
ndm.io/managed: "false" # for manual disk creation put false | |
ndm.io/blockdevice-type: blockdevice | |
status: | |
claimState: Unclaimed |
Flowchart for local pv upgrade | |
NOTE: Does not support upgrade of localPV rawblock | |
For Cstor, the same flowchart as below applies, but instead of using FSUUID annotation, partition table UUID | |
annotation will be used. |
#Create namespace | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: minio | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
# This name uniquely identifies the Deployment |