Skip to content

Commit

Permalink
Update yugabyte-statefulset.yaml
Browse files Browse the repository at this point in the history
Added volume claim templates.
  • Loading branch information
rkarthik007 committed Feb 13, 2018
1 parent 0c87387 commit 2dbd7e8
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions cloud/kubernetes/yugabyte-statefulset.yaml
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 2dbd7e8

Please sign in to comment.