How to tap into Kubernetes persistent volumes for your Orka environment. For security reasons, Orka does not let you configure persistent volumes yourself. The MacStadium team needs to do that for you. However, when a persistent volume is configured for your environment, you can create persistent volume claims and deploy pods that consume the respective persistent volume. Quick command summaryDocumentation Index
Fetch the complete documentation index at: https://docs.macstadium.com/llms.txt
Use this file to discover all available pages before exploring further.
Limitations
Persistent volumes are not applicable to standard Orka VMs. They can be consumed only by pods deployed withkubectl, and are called by functions such as attach-disk.
If you want to persist the storage of a standard Orka VM, use the VM commit, save, or push operations.
Step 1: Request a Persistent Volume
Contact the MacStadium team and request a persistent volume (PV) for your Orka environment. Work closely with the team to help them create a PV that matches your requirements. Note that at this step, you need to decide on the name of the namespace where the PV will be created.Step 2: Get Kubernetes-Ready
You need to installkubectl and configure a namespace with permissions to run custom pods.
- If not already installed, install
kubectllocally. For example:
- Authenticate with the Orka cluster.
- Set up the namespace for the PV. The name must match the name confirmed with the MacStadium team when requesting the PV. The namespace must have custom pods enabled. Next, you need to move computational resources to the namespace and you need to grant namespace access to the users or service accounts which will be working with the namespace.
Step 3: Create the Persistent Volume Claim
A persistent volume claim (PVC) lets you tap into your persistent volume and consume it. You need to create a basic yaml manifest for the PVC and apply it to the environment.- Create the PVC manifest. For more information, see Kubernetes Documentation: PersistentVolumeClaims. For example:
metadata.name and metadata.namespace must match the values for claimRef.name and claimRef.namespace declared in the manifest of the persistent volume. Double-check with the MacStadium team for these values.
- Apply the PVC. Replace
pvc.yamlwith the complete file path to your own PVC manifest. Replace<NAMESPACE>with the namespace you created earlier.
- Verify that the persistent volume claim is bound to the persistent volume.

Status Pending? If the status is
Pending instead of Bound, double-check your PVC manifest, fix any naming issues, remove the old PVC with kubectl delete pvc <NAME>, and re-apply the fixed manifest. If the problem persists, contact the MacStadium team.Step 4: Deploy a Pod That Uses the Persistent Volume
Now that you have created a PVC and bound it to the PV, you can deploy a pod that uses the PV. Create a pod manifest and apply it.- Create the pod manifest. The pod needs to reference both the PV and the PVC. For example:
- Apply the pod. Replace
mypod.yamlwith the complete file path to your pod manifest.
- Verify that the pod is deployed and running.

- Verify that the pod uses the claim and the persistent volume. Look for the data listed for Volumes.
(Optional) Step 5: Deploy a Service to Handle the Networking Between Your Pods and Your Orka VMs
If you want to have connectivity between your Orka VMs and any pods deployed withkubectl, you need to deploy a networking service. For more information, see Kubernetes Documentation: Service.
Make sure to use the networking information provided in your Orka IP Plan when assigning IPs.
What’s Next: Delete the PVC and Release the PV
When you no longer need to use a PVC and the respective PV, you can delete the PVC to release the PV.- Delete the PVC.
-
Contact the MacStadium team.
- If you want to reclaim the storage, an administrator might need to clean it up and verify that it’s available for use again. This would depend on the provisioning type and the reclaim policy for the PV.
- If you no longer need the storage, an administrator can remove the PV.

