OpenEBS
This commit is contained in:
parent
a26c12e3d5
commit
0639002210
13
home/manifests/initialization/openebs-jiva/config.yaml
Normal file
13
home/manifests/initialization/openebs-jiva/config.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/managed-by: pulumi
|
||||||
|
name: openebs-jiva-csi-iscsiadm
|
||||||
|
namespace: openebs
|
||||||
|
data:
|
||||||
|
iscsiadm: |
|
||||||
|
#!/bin/sh
|
||||||
|
iscsid_pid=$(pgrep iscsid)
|
||||||
|
|
||||||
|
nsenter --mount="/proc/${iscsid_pid}/ns/mnt" --net="/proc/${iscsid_pid}/ns/net" -- /usr/local/sbin/iscsiadm "$@"
|
12
home/manifests/initialization/openebs-jiva/daemonset.yaml
Normal file
12
home/manifests/initialization/openebs-jiva/daemonset.yaml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: DaemonSet
|
||||||
|
metadata:
|
||||||
|
name: openebs-jiva-csi-node
|
||||||
|
labels:
|
||||||
|
app: openebs-jiva-csi-node
|
||||||
|
namespace: openebs
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
hostPID: true
|
|
@ -4,6 +4,13 @@ kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
# - namespace.yaml
|
# - namespace.yaml
|
||||||
- https://openebs.github.io/charts/openebs-operator.yaml
|
- https://openebs.github.io/charts/openebs-operator.yaml
|
||||||
|
#- https://openebs.github.io/charts/hostpath-operator.yaml
|
||||||
|
#- https://openebs.github.io/charts/jiva-operator.yaml
|
||||||
|
- ./volume-policy.yaml
|
||||||
|
#- ./storage-class.yaml
|
||||||
# - https://openebs.github.io/charts/cstor-operator.yaml
|
# - https://openebs.github.io/charts/cstor-operator.yaml
|
||||||
# - https://openebs.github.io/charts/zfs-operator.yaml
|
# - https://openebs.github.io/charts/zfs-operator.yaml
|
||||||
# - https://openebs.github.io/charts/lvm-operator.yaml
|
# - https://openebs.github.io/charts/lvm-operator.yaml
|
||||||
|
# patchesStrategicMerge:
|
||||||
|
# - ./daemonset.yaml
|
||||||
|
#- ./config.yaml
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
kind: StorageClass
|
||||||
|
metadata:
|
||||||
|
name: openebs-jiva-csi-sc
|
||||||
|
provisioner: jiva.csi.openebs.io
|
||||||
|
allowVolumeExpansion: true
|
||||||
|
parameters:
|
||||||
|
cas-type: "jiva"
|
||||||
|
policy: "example-jivavolumepolicy"
|
||||||
|
---
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
kind: StorageClass
|
||||||
|
metadata:
|
||||||
|
name: openebs-hostpath
|
||||||
|
annotations:
|
||||||
|
openebs.io/cas-type: local
|
||||||
|
cas.openebs.io/config: |
|
||||||
|
# hostpath type will create a PV by
|
||||||
|
# creating a sub-directory under the
|
||||||
|
# BASEPATH provided below.
|
||||||
|
- name: StorageType
|
||||||
|
value: "hostpath"
|
||||||
|
# Specify the location (directory) where
|
||||||
|
# where PV(volume) data will be saved.
|
||||||
|
# A sub-directory with pv-name will be
|
||||||
|
# created. When the volume is deleted,
|
||||||
|
# the PV sub-directory will be deleted.
|
||||||
|
#Default value is /var/openebs/local
|
||||||
|
- name: BasePath
|
||||||
|
value: "/var/openebs/local/"
|
||||||
|
provisioner: openebs.io/local
|
||||||
|
volumeBindingMode: WaitForFirstConsumer
|
||||||
|
reclaimPolicy: Delete
|
|
@ -0,0 +1,9 @@
|
||||||
|
apiVersion: openebs.io/v1alpha1
|
||||||
|
kind: JivaVolumePolicy
|
||||||
|
metadata:
|
||||||
|
name: example-jivavolumepolicy
|
||||||
|
namespace: openebs
|
||||||
|
spec:
|
||||||
|
replicaSC: openebs-hostpath
|
||||||
|
target:
|
||||||
|
replicationFactor: 1
|
Loading…
Reference in a new issue