From 2dbd7e8975493f1daaf689fda626d602e03cabfb Mon Sep 17 00:00:00 2001 From: Karthik Ranganathan Date: Tue, 13 Feb 2018 15:46:30 -0800 Subject: [PATCH] Update yugabyte-statefulset.yaml Added volume claim templates. --- cloud/kubernetes/yugabyte-statefulset.yaml | 44 +++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/cloud/kubernetes/yugabyte-statefulset.yaml b/cloud/kubernetes/yugabyte-statefulset.yaml index a19cb03f799f8..1ed24c05ce188 100644 --- a/cloud/kubernetes/yugabyte-statefulset.yaml +++ b/cloud/kubernetes/yugabyte-statefulset.yaml @@ -94,22 +94,22 @@ spec: # These volume mounts are persistent. They are like inline claims, # but not exactly because the names need to match exactly one of # the stateful pod volumes. -# volumeMounts: -# - name: datadir -# mountPath: /mnt/data0 + volumeMounts: + - name: datadir + mountPath: /mnt/data0 updateStrategy: type: RollingUpdate # These are converted to volume claims by the controller # and mounted at the paths mentioned above. # do not use these in production until ssd GCEPersistentDisk or other ssd pd -# volumeClaimTemplates: -# - metadata: -# name: datadir -# spec: -# accessModes: [ "ReadWriteOnce" ] -# resources: -# requests: -# storage: 10Gi + volumeClaimTemplates: + - metadata: + name: datadir + spec: + accessModes: [ "ReadWriteOnce" ] + resources: + requests: + storage: 1Gi --- apiVersion: v1 @@ -185,19 +185,19 @@ spec: # These volume mounts are persistent. They are like inline claims, # but not exactly because the names need to match exactly one of # the stateful pod volumes. -# volumeMounts: -# - name: datadir -# mountPath: /mnt/data0 + volumeMounts: + - name: datadir + mountPath: /mnt/data0 updateStrategy: type: RollingUpdate # These are converted to volume claims by the controller # and mounted at the paths mentioned above. # do not use these in production until ssd GCEPersistentDisk or other ssd pd -# volumeClaimTemplates: -# - metadata: -# name: datadir -# spec: -# accessModes: [ "ReadWriteOnce" ] -# resources: -# requests: -# storage: 10Gi + volumeClaimTemplates: + - metadata: + name: datadir + spec: + accessModes: [ "ReadWriteOnce" ] + resources: + requests: + storage: 1Gi