From e68f406adca9d9eef686b198ef4b5dd145b7f336 Mon Sep 17 00:00:00 2001 From: Shaun Smiley Date: Wed, 23 Jan 2019 10:33:04 -0800 Subject: [PATCH] add storageClassName to pvc as well otherwise, the pvc won't come up. Instead, we get the error: ``` Warning VolumeMismatch 3m51s (x323 over 84m) persistentvolume-controller Cannot bind to requested volume "postgres-pv": storageClassName does not match``` --- kubernetes/persistent-volume-claim.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/kubernetes/persistent-volume-claim.yml b/kubernetes/persistent-volume-claim.yml index 81ca805..e689b66 100644 --- a/kubernetes/persistent-volume-claim.yml +++ b/kubernetes/persistent-volume-claim.yml @@ -11,3 +11,4 @@ spec: requests: storage: 2Gi volumeName: postgres-pv + storageClassName: standard