Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Commit

Permalink
Warn that Minikube cannot handle the PVC/PV resizes properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Vasilyev committed Jun 2, 2019
1 parent b4d5802 commit 9caf449
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/walkthrough/prerequisites.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ Otherwise, let's install minikube locally (e.g. for MacOS):
* `Install kubectl <https://kubernetes.io/docs/tasks/tools/install-kubectl/>`_
* :doc:`Install minikube </minikube>` (a local Kubernetes cluster)
* :doc:`Install Kopf </install>`

.. warning::
Unfortunately, Minikube cannot handle the PVC/PV resizing,
as it uses the HostPath provider internally.
You can either skip the :doc:`updates` step of this tutorial
(where the sizes of the volumes are changed),
or you can use an external Kubernetes cluster
with real dynamically sized volumes.
13 changes: 13 additions & 0 deletions docs/walkthrough/updates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
Updating the objects
====================

.. warning::
Unfortunately, Minikube cannot handle the PVC/PV resizing,
as it uses the HostPath provider internally.
You can either skip this step of the tutorial,
or you can use an external Kubernetes cluster
with real dynamically sized volumes.

Previously (:doc:`creation`),
we have implemented a handler for the creation of an ``EphemeralVolumeClaim`` (EVC),
and created the corresponding ``PersistantVolumeClaim`` (PVC).
Expand Down Expand Up @@ -109,3 +116,9 @@ Check the size of the actual PV behind the PVC, which is now increased:
NAME CAPACITY ACCESS MODES ...
pvc-a37b65bd-8384-11e9-b857-42010a800265 2Gi RWO ...
.. warning::
Kubernetes & ``kubectl`` improperly show the capacity of PVCs:
it remains the same (1G) event after the change.
The size of actual PV (Persistent Volume) of each PVC is important!
This issue is not related to Kopf, so we go around it.

0 comments on commit 9caf449

Please sign in to comment.