How to create “PersistentVolumeClaim” in Kubernetes on “Docker for windows”?

0 votes

In the "Juju" installation of kubernetes in Vsphere, we create pvc as follows,

---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: db-data
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: fast
  resources:
    requests:
      storage: 1Gi

with the storageClassName as "fast". What it the storage class we need to create a "PersistentVolumeClaim" in "Docker for windows" installation.

Oct 4, 2018 in Docker by Sophie may
• 9,870 points
586 views

1 answer to this question.

0 votes

Try this:

kubectl get storageclass gives output as follows,
NAME                 PROVISIONER          AGE
hostpath (default)   docker.io/hostpath   22h

then, we can use 'hostpath' as the value for 'storageClassName'

answered Oct 4, 2018 by Tyrion anex
• 8,280 points

Related Questions In Docker

0 votes
2 answers
0 votes
1 answer

How to enable/ disable Hyper-V for Docker on Windows?

You can do this from command prompt ...READ MORE

answered Sep 10, 2018 in Docker by Tyrion anex
• 8,280 points
612 views
0 votes
1 answer

How to run an image with volume on docker for windows?

Try : declaring the volume of container mounting the ...READ MORE

answered Sep 19, 2018 in Docker by Tyrion anex
• 8,280 points
54 views
0 votes
1 answer

How to update docker-compose on Docker for Windows?

Please check "version" value in the docker-compose.yml ...READ MORE

answered Sep 20, 2018 in Docker by Tyrion anex
• 8,280 points
89 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to install telnet in Docker for Windows 10?

If you are trying to telnet in ...READ MORE

answered Aug 27, 2018 in Docker by Tyrion anex
• 8,280 points
640 views
0 votes
1 answer

How to save a Dynamic port in Docker for Windows?

The mapped ports can be accessed via ...READ MORE

answered Sep 4, 2018 in Docker by Tyrion anex
• 8,280 points
49 views