kubectl apply -f values.yaml
values.yaml
# Only create this for K8s 1.9+
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-storage
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer
# Supported policies: Delete, Retain
reclaimPolicy: Retain
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: opensearch-agent-1
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: