From b9bd872e967633ef767a1b2c7f24a6dca4d17daa Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Sat, 8 Feb 2020 15:28:27 +0100 Subject: [PATCH] selector in pvc not needed --- tobru-ch/ghost.yaml | 19 ------------------- tobru-ch/pvc.yaml | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 19 deletions(-) create mode 100644 tobru-ch/pvc.yaml diff --git a/tobru-ch/ghost.yaml b/tobru-ch/ghost.yaml index e2c9f86..dd20ef1 100644 --- a/tobru-ch/ghost.yaml +++ b/tobru-ch/ghost.yaml @@ -1,23 +1,4 @@ --- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: data - namespace: tobru-ch - labels: - app: tobru-ch -spec: - accessModes: - - ReadWriteOnce - volumeMode: Filesystem - resources: - requests: - storage: 10Gi - storageClassName: local-path - selector: - matchLabels: - app: tobru-ch ---- apiVersion: apps/v1 kind: Deployment metadata: diff --git a/tobru-ch/pvc.yaml b/tobru-ch/pvc.yaml new file mode 100644 index 0000000..63b1413 --- /dev/null +++ b/tobru-ch/pvc.yaml @@ -0,0 +1,16 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: data + namespace: tobru-ch + labels: + app: tobru-ch +spec: + accessModes: + - ReadWriteOnce + volumeMode: Filesystem + resources: + requests: + storage: 10Gi + storageClassName: local-path