Skip to content

Commit 6c43dc7

Browse files
authored
v2.4.2 loose ends (#59)
Signed-off-by: Michael Mattsson <[email protected]>
1 parent 1adedee commit 6c43dc7

File tree

5 files changed

+103
-4
lines changed

5 files changed

+103
-4
lines changed

INSTALL.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ Install HPE CSI Driver using manifests (assumes latest supported Kubernetes vers
2525

2626
```
2727
kubectl create ns hpe-storage
28-
kubectl create -f https://raw.githubusercontent.com/hpe-storage/co-deployments/master/yaml/csi-driver/v2.3.0/hpe-linux-config.yaml
29-
kubectl create -f https://raw.githubusercontent.com/hpe-storage/co-deployments/master/yaml/csi-driver/v2.3.0/hpe-csi-k8s-1.26.yaml
28+
kubectl create -f https://raw.githubusercontent.com/hpe-storage/co-deployments/master/yaml/csi-driver/v2.4.2/hpe-linux-config.yaml
29+
kubectl create -f https://raw.githubusercontent.com/hpe-storage/co-deployments/master/yaml/csi-driver/v2.4.2/hpe-csi-k8s-1.29.yaml
3030
```
3131

3232
Install the TrueNAS CSP using manifests:
3333

3434
```
35-
kubectl create -f https://raw.githubusercontent.com/hpe-storage/truenas-csp/master/K8s/v2.3.10/truenas-csp.yaml
35+
kubectl create -f https://raw.githubusercontent.com/hpe-storage/truenas-csp/master/K8s/v2.4.2/truenas-csp.yaml
3636
```
3737

3838
**Note:** Replace `hpe-csi-k8s-<version>.yaml` with your version of Kubernetes. Also change the version of the HPE CSI Driver manifests where applicable. Using mismatching versions of the TrueNAS CSP and the HPE CSI Driver will most likely **NOT** work.
@@ -88,7 +88,7 @@ All the ZVols created on TrueNAS/FreeNAS will by default be created with these p
8888
- compression: LZ4
8989
- sparse: "true"
9090
- sync: STANDARD
91-
- description: "Dataset created by HPE CSI Driver for Kubernetes"
91+
- description: "Dataset created by HPE CSI Driver for Kubernetes as {pv} in {namespace} from {pvc}"
9292
- root: tank
9393

9494
These parameters may be overridden in the `StorageClass` or have the defaults altered by passing environment variables to the CSP runtime with the convention of `DEFAULT_COMPRESSION=OFF`.

K8s/v2.4.2/hpe-storageclass-nfs.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
apiVersion: storage.k8s.io/v1
3+
kind: StorageClass
4+
metadata:
5+
annotations:
6+
storageclass.kubernetes.io/is-default-class: "false"
7+
name: hpe-standard-nfs
8+
provisioner: csi.hpe.com
9+
parameters:
10+
csi.storage.k8s.io/controller-expand-secret-name: truenas-secret
11+
csi.storage.k8s.io/controller-expand-secret-namespace: hpe-storage
12+
csi.storage.k8s.io/controller-publish-secret-name: truenas-secret
13+
csi.storage.k8s.io/controller-publish-secret-namespace: hpe-storage
14+
csi.storage.k8s.io/node-publish-secret-name: truenas-secret
15+
csi.storage.k8s.io/node-publish-secret-namespace: hpe-storage
16+
csi.storage.k8s.io/node-stage-secret-name: truenas-secret
17+
csi.storage.k8s.io/node-stage-secret-namespace: hpe-storage
18+
csi.storage.k8s.io/provisioner-secret-name: truenas-secret
19+
csi.storage.k8s.io/provisioner-secret-namespace: hpe-storage
20+
csi.storage.k8s.io/fstype: xfs
21+
nfsResources: "true"
22+
allowOverrides: sparse,compression,deduplication,volblocksize,sync,description
23+
root: zwimming/csi-volumes
24+
reclaimPolicy: Delete
25+
allowVolumeExpansion: true

K8s/v2.4.2/hpe-storageclass.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
apiVersion: storage.k8s.io/v1
3+
kind: StorageClass
4+
metadata:
5+
annotations:
6+
storageclass.kubernetes.io/is-default-class: "true"
7+
name: hpe-standard
8+
provisioner: csi.hpe.com
9+
parameters:
10+
csi.storage.k8s.io/controller-expand-secret-name: truenas-secret
11+
csi.storage.k8s.io/controller-expand-secret-namespace: hpe-storage
12+
csi.storage.k8s.io/controller-publish-secret-name: truenas-secret
13+
csi.storage.k8s.io/controller-publish-secret-namespace: hpe-storage
14+
csi.storage.k8s.io/node-publish-secret-name: truenas-secret
15+
csi.storage.k8s.io/node-publish-secret-namespace: hpe-storage
16+
csi.storage.k8s.io/node-stage-secret-name: truenas-secret
17+
csi.storage.k8s.io/node-stage-secret-namespace: hpe-storage
18+
csi.storage.k8s.io/provisioner-secret-name: truenas-secret
19+
csi.storage.k8s.io/provisioner-secret-namespace: hpe-storage
20+
csi.storage.k8s.io/fstype: xfs
21+
allowOverrides: sparse,compression,deduplication,volblocksize,sync,description
22+
root: zwimming/csi-volumes
23+
reclaimPolicy: Delete
24+
allowVolumeExpansion: true

K8s/v2.4.2/truenas-csp.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
kind: Service
3+
apiVersion: v1
4+
metadata:
5+
name: truenas-csp-svc
6+
namespace: hpe-storage
7+
labels:
8+
app: truenas-csp-svc
9+
spec:
10+
ports:
11+
- port: 8080
12+
protocol: TCP
13+
selector:
14+
app: truenas-csp
15+
16+
---
17+
kind: Deployment
18+
apiVersion: apps/v1
19+
metadata:
20+
name: truenas-csp
21+
namespace: hpe-storage
22+
spec:
23+
selector:
24+
matchLabels:
25+
app: truenas-csp
26+
replicas: 1
27+
template:
28+
metadata:
29+
labels:
30+
app: truenas-csp
31+
spec:
32+
priorityClassName: system-cluster-critical
33+
containers:
34+
- name: truenas-csp
35+
image: quay.io/datamattsson/truenas-csp:v2.4.2
36+
imagePullPolicy: IfNotPresent
37+
ports:
38+
- containerPort: 8080

K8s/v2.4.2/truenas-secret.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: truenas-secret
6+
namespace: hpe-storage
7+
stringData:
8+
serviceName: truenas-csp-svc
9+
servicePort: "8080"
10+
username: hpe-csi (username is a no-op)
11+
password: API key or root password of TrueNAS/FreeNAS appliance
12+
backend: Management IP address of TrueNAS/FreeNAS appliance

0 commit comments

Comments
 (0)