Skip to content

Instantly share code, notes, and snippets.

@sjenning
Created December 14, 2016 22:49
Show Gist options
  • Save sjenning/3ceb08458ccda241fcae05a01f5473fd to your computer and use it in GitHub Desktop.
Save sjenning/3ceb08458ccda241fcae05a01f5473fd to your computer and use it in GitHub Desktop.
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: gluster-volume
annotations:
volume.beta.kubernetes.io/storage-class: default
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
---
apiVersion: extensions/v1beta1
kind: ReplicaSet
metadata:
name: glusterfs-demo
spec:
replicas: 1
selector:
matchLabels:
app: gluster-demo
template:
metadata:
labels:
app: gluster-demo
spec:
containers:
- name: busybox
image: busybox
volumeMounts:
- name: myvol
mountPath: /mnt
args:
- sleep
- "360"
volumes:
- name: myvol
persistentVolumeClaim:
claimName: gluster-volume
terminationGracePeriodSeconds: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment