This commit is contained in:
Daniel Flanagan 2022-08-03 11:45:37 -05:00
parent a26c12e3d5
commit 0639002210
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
5 changed files with 74 additions and 0 deletions

View 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 "$@"

View 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

View File

@ -4,6 +4,13 @@ kind: Kustomization
resources:
# - namespace.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/zfs-operator.yaml
# - https://openebs.github.io/charts/lvm-operator.yaml
# patchesStrategicMerge:
# - ./daemonset.yaml
#- ./config.yaml

View File

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

View File

@ -0,0 +1,9 @@
apiVersion: openebs.io/v1alpha1
kind: JivaVolumePolicy
metadata:
name: example-jivavolumepolicy
namespace: openebs
spec:
replicaSC: openebs-hostpath
target:
replicationFactor: 1