Adding Persistent Storage to Kubernetes for GCP Web UI users.

Jake Cattrall
Jun 8, 2018 · 3 min read

Creating a PersistentVolumeClaim

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: cool-data
namespace: default
spec:
storageClassName: standard
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 80Gi
spec:
template:
spec:
containers:
- env:
volumeMounts:
- mountPath: /var/www/html
name: cool-data
subPath: wp
volumes:
- name: cool-data
persistentVolumeClaim:
claimName: cool-data

Jake Cattrall

Written by

Programmer and advocate of web languages. Front-end developer @ www.igdb.com. My opinions are my own!

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade