Skip to content

Instantly share code, notes, and snippets.

@NileshGule
Last active September 13, 2018 14:50
Show Gist options
  • Save NileshGule/70430bf541299015193494908871d50d to your computer and use it in GitHub Desktop.
Save NileshGule/70430bf541299015193494908871d50d to your computer and use it in GitHub Desktop.
Gist for PV and PVC post
---
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: azure-disk
namespace: abc2018sg
provisioner: kubernetes.io/azure-disk
parameters:
storageaccounttype: Standard_LRS
kind: Managed
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: techtalksdb-data
namespace: abc2018sg
annotations:
volume.beta.kubernetes.io/storage-class: azure-disk
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment