Network Operator Application Notes 23.10.0 - Sphinx Test
1.0

Create local PersistentVolume

This page describes steps required to create local StorageClass and PersistentVolume which can be used to deploy Built-in vault-server in case if CSI provider is unavailable in a cluster.

Check Kubernetes documentation for details.

Note

It is not recommended to use local PersistentVolumes for production clusters.

Copy
Copied!
            

mkdir -p /local_storage/vault-server-pv


Copy
Copied!
            

cat << 'EOF' | tee local-storage-sc.yaml kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: local-storage provisioner: kubernetes.io/no-provisioner volumeBindingMode: WaitForFirstConsumer EOF kubectl apply -f local-storage-sc.yaml


Replace <NODE-HOSTNAME> with hostname of the node on which you want to create this PV

Copy
Copied!
            

cat << 'EOF' | tee pv.yaml apiVersion: v1 kind: PersistentVolume metadata: name: vault-server-pv spec: capacity: storage: 10Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain storageClassName: local-storage local: path: /local_storage/vault-server-pv nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/hostname operator: In values: - <NODE-HOSTNAME> # hostname of the iCP master node EOF kubectl apply -f pv.yaml


Previous Use images from private registry
Next Manual GRPC API usage
© Copyright 2023, NVIDIA. Last updated on Feb 7, 2024.