xen + democratic csi
This commit is contained in:
73
k8s/democratic.yaml
Normal file
73
k8s/democratic.yaml
Normal file
@@ -0,0 +1,73 @@
|
||||
---
|
||||
# Namespace
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
labels:
|
||||
name: democratic-csi
|
||||
name: democratic-csi
|
||||
|
||||
---
|
||||
# HelmChart
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: democratic-csi
|
||||
namespace: kube-system
|
||||
spec:
|
||||
repo: https://democratic-csi.github.io/charts/
|
||||
chart: democratic-csi
|
||||
targetNamespace: democratic-csi
|
||||
valuesContent: |-
|
||||
csiDriver:
|
||||
name: "org.democratic-csi.iscsi"
|
||||
|
||||
storageClasses:
|
||||
- name: truenas-iscsi
|
||||
defaultClass: true
|
||||
reclaimPolicy: Delete
|
||||
volumeBindingMode: Immediate
|
||||
allowVolumeExpansion: true
|
||||
parameters:
|
||||
fsType: xfs
|
||||
|
||||
driver:
|
||||
config:
|
||||
driver: freenas-iscsi
|
||||
instance_id: kube
|
||||
httpConnection:
|
||||
protocol: http
|
||||
host: 10.0.20.138
|
||||
port: 80
|
||||
apiKey: @apiKey@
|
||||
apiVersion: 2
|
||||
sshConnection:
|
||||
host: 10.0.20.138
|
||||
port: 22
|
||||
username: k8s-csi
|
||||
privateKey: @privateKey@
|
||||
zfs:
|
||||
cli:
|
||||
sudoEnabled: true
|
||||
paths:
|
||||
zfs: /sbin/zfs
|
||||
zpool: /sbin/zpool
|
||||
sudo: /usr/bin/sudo
|
||||
chroot: /usr/sbin/chroot
|
||||
datasetParentName: KubeStorage/pv/iscsi/v
|
||||
detachedSnapshotsDatasetParentName: KubeStorage/pv/iscsi/s
|
||||
zvolEnableReservation: false
|
||||
iscsi:
|
||||
targetPortal: "10.0.20.138:3260"
|
||||
targetPortals: []
|
||||
namePrefix: csi-
|
||||
nameSuffix: "-cluster"
|
||||
targetGroups:
|
||||
- targetGroupPortalGroup: 1
|
||||
targetGroupInitiatorGroup: 1
|
||||
targetGroupAuthType: None
|
||||
extentInsecureTpc: true
|
||||
extentXenCompat: false
|
||||
extentDisablePhysicalBlocksize: true
|
||||
extentBlocksize: 4096
|
||||
extentAvailThreshold: 0
|
||||
@@ -32,9 +32,9 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: kasten
|
||||
labels:
|
||||
name: kasten
|
||||
name: kasten
|
||||
---
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
@@ -71,12 +71,12 @@ metadata:
|
||||
name: storage-class-rename
|
||||
namespace: kasten
|
||||
spec:
|
||||
comment: Renames cstor-r1 to ceph-block-triple
|
||||
comment: Renames cstor-r1 to truenas-iscsi
|
||||
transforms:
|
||||
- json:
|
||||
- op: replace
|
||||
path: /spec/storageClassName
|
||||
value: ceph-block-triple
|
||||
value: truenas-iscsi
|
||||
name: StorageClassRename
|
||||
subject:
|
||||
name: ""
|
||||
|
||||
Reference in New Issue
Block a user