Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enh] Support for ephemeral volumes #153

Open
lpabon opened this issue Jul 15, 2020 · 0 comments
Open

[enh] Support for ephemeral volumes #153

lpabon opened this issue Jul 15, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@lpabon
Copy link
Contributor

lpabon commented Jul 15, 2020

Describe the solution you'd like
Ephemeral volumes are supported in Portworx 2.6+ and in Kubernetes since 1.16+ ( see blog

Kubernetes has no way to track these volumes, but pxc can track them.

There are two main areas that they could show up:

  1. When kubectl pxc volume list is shown, the Pod column should show the pod using it (currently it is empty) and there could also be an Ephemeral (True/False) column. This extra column on could be on -o wide.
  2. There could be a kubectl pxc ephemeral-volume list which shows only ephemeral volume information and columns (or kubectl pxc volume list --ephemeral=true|false|only

Information which Pod is using the ephemeral volume is available in the lables:

$ kubectl pxc volume list -o json
[
  {
    "id": "1006941389174831369",
    "source": {},
    "locator": {
      "name": "csi-e8fc5085a63465c05b68a07a2f73b1131e66dde1d9b0e7d35e044757f972ede7",
      "volume_labels": {
        "csi.storage.k8s.io/ephemeral": "true",
        "csi.storage.k8s.io/pod.name": "nginx-ephemeral-5b7d49b8ff-xgh7b",
        "csi.storage.k8s.io/pod.namespace": "tenantone",
        "csi.storage.k8s.io/pod.uid": "4a5eaaef-6044-4e99-a7f2-dbe4df5e0fae",
        "csi.storage.k8s.io/serviceAccount.name": "default"
      }
    },
...

Sample volume list with an ephemeral volume

$ kk pxc volume list
Name                                                                  Size     HA  Shared  Status  State                                Pods
----                                                                  ----     --  ------  ------  -----                                ----
csi-e8fc5085a63465c05b68a07a2f73b1131e66dde1d9b0e7d35e044757f972ede7  2.0 GiB  1   false   UP      on ip-70-0-98-13.brbnca.spcsdns.net
@lpabon lpabon added the enhancement New feature or request label Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant