Welcome to the Linux Foundation Forum!

PV with a namespace in Exercise 9.4

Exercise 9.4 creates a PV under a namespace:
kubectl -n small create -f PVol.yaml
This does not have any namespace effect, as I understand PVs are wide objects that cannot be linked to a NS. And indeed, the PV is listed without the need of the -n option

Why is this PV created this way?

Comments

  • chrispokorni
    chrispokorni Posts: 2,372

    Hi @ilmx,

    You are correct, the PV object is not bound to a namespace. I would expect this to be a possible typo as a result of copy/paste.

    Regards,
    -Chris

  • ilmx
    ilmx Posts: 18

    Thanks!

Categories

Upcoming Training