Note: This tutorial assumes that your cluster is configured to dynamically provision PersistentVolumes. If your cluster is not configured to do so, you will have to manually provision two 1 GiB volumes prior to starting this tutorial.
$ kubectl apply -f statefulset.yaml
$ kubectl get service nginx
$ kubectl get statefulset web