text stringlengths 0 59.1k |
|---|
Name: pvcsc001 |
Namespace: default |
StorageClass: portworx-io-priority-high |
Status: Bound |
Volume: pvc-e5578707-c626-11e6-baf6-08002729a32b |
Labels: <none> |
Capacity: 2Gi |
Access Modes: RWO |
No Events |
``` |
Persistent Volume is automatically created and is bounded to this pvc. |
Verifying persistent volume claim is created: |
``` bash |
$ kubectl describe pv pvc-e5578707-c626-11e6-baf6-08002729a32b |
Name: pvc-e5578707-c626-11e6-baf6-08002729a32b |
Labels: <none> |
StorageClass: portworx-io-priority-high |
Status: Bound |
Claim: default/pvcsc001 |
Reclaim Policy: Delete |
Access Modes: RWO |
Capacity: 2Gi |
Message: |
Source: |
Type: PortworxVolume (a Portworx Persistent Volume resource) |
VolumeID: 374093969022973811 |
No events. |
``` |
3. Create Pod which uses Persistent Volume Claim with storage class. |
See example: |
```yaml |
apiVersion: v1 |
kind: Pod |
metadata: |
name: pvpod |
spec: |
containers: |
- name: test-container |
image: registry.k8s.io/test-webserver |
volumeMounts: |
- name: test-volume |
mountPath: /test-portworx-volume |
volumes: |
- name: test-volume |
persistentVolumeClaim: |
claimName: pvcsc001 |
``` |
[Download example](portworx-volume-pvcscpod.yaml?raw=true) |
Creating the pod: |
``` bash |
$ kubectl create -f examples/volumes/portworx/portworx-volume-pvcscpod.yaml |
``` |
Verifying pod is created: |
``` bash |
$ kubectl get pod pvpod |
NAME READY STATUS RESTARTS AGE |
pvpod 1/1 Running 0 48m |
``` |
<|endoftext|> |
# source: k8s_examples/_archived/volumes/portworx/portworx-volume-pod.yaml type: yaml |
apiVersion: v1 |
kind: Pod |
metadata: |
name: test-portworx-volume-pod |
spec: |
containers: |
- image: registry.k8s.io/test-webserver |
name: test-container |
volumeMounts: |
- mountPath: /test-portworx-volume |
name: test-volume |
volumes: |
- name: test-volume |
# This Portworx volume must already exist. |
portworxVolume: |
volumeID: "vol1" |
<|endoftext|> |
# source: k8s_examples/_archived/volumes/flocker/flocker-pod-with-rc.yml type: yaml |
apiVersion: v1 |
kind: Service |
metadata: |
name: flocker-ghost |
labels: |
app: flocker-ghost |
spec: |
ports: |
# the port that this service should serve on |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.