dongjoon-hyun opened a new pull request, #520:
URL: https://github.com/apache/spark-kubernetes-operator/pull/520

   ### What changes were proposed in this pull request?
   
   This PR aims to add `On-Demand PVC` example.
   
   ### Why are the changes needed?
   
   To illustrate how Apache Spark uses the PVC in the on-demand manner.
   
   ```
   $ kubectl apply -f examples/pi-with-on-demand-pvc.yaml
   sparkapplication.spark.apache.org/pi-with-on-demand-pvc created
   
   $ kubectl get sparkapp
   NAME                    CURRENT STATE    AGE
   pi-with-on-demand-pvc   RunningHealthy   6s
   
   $ kubectl get pod -l spark-role
   NAME                                         READY   STATUS              
RESTARTS   AGE
   pi-with-on-demand-pvc-0-driver               1/1     Running             0   
       11s
   spark-kubernetes-operator-67964b9b47-vql44   1/1     Running             0   
       6m17s
   spark-pi-5d91cc9c90d4b8cf-exec-1             1/1     Running             0   
       7s
   spark-pi-5d91cc9c90d4b8cf-exec-2             0/1     ContainerCreating   0   
       6s
   spark-pi-5d91cc9c90d4b8cf-exec-3             1/1     Running             0   
       6s
   
   $ kubectl get pvc
   NAME                                     STATUS   VOLUME                     
                CAPACITY   ACCESS MODES   STORAGECLASS   VOLUMEATTRIBUTESCLASS  
 AGE
   spark-pi-5d91cc9c90d4b8cf-exec-1-pvc-0   Bound    
pvc-a848829b-4b7e-4e55-a9b5-1d9230e67fc1   1Gi        RWOP           local-path 
    <unset>                 12s
   spark-pi-5d91cc9c90d4b8cf-exec-2-pvc-0   Bound    
pvc-e5ef5a62-9238-4a67-84ce-d7f2ba4069aa   1Gi        RWOP           local-path 
    <unset>                 11s
   spark-pi-5d91cc9c90d4b8cf-exec-3-pvc-0   Bound    
pvc-94db625d-5b16-4b4f-81c5-92fbad150d7e   1Gi        RWOP           local-path 
    <unset>                 11s
   
   $ kubectl get pv
   NAME                                       CAPACITY   ACCESS MODES   RECLAIM 
POLICY   STATUS   CLAIM                                            STORAGECLASS 
  VOLUMEATTRIBUTESCLASS   REASON   AGE
   pvc-94db625d-5b16-4b4f-81c5-92fbad150d7e   1Gi        RWOP           Delete  
         Bound    default/spark-pi-5d91cc9c90d4b8cf-exec-3-pvc-0   local-path   
  <unset>                          11s
   pvc-a848829b-4b7e-4e55-a9b5-1d9230e67fc1   1Gi        RWOP           Delete  
         Bound    default/spark-pi-5d91cc9c90d4b8cf-exec-1-pvc-0   local-path   
  <unset>                          12s
   pvc-e5ef5a62-9238-4a67-84ce-d7f2ba4069aa   1Gi        RWOP           Delete  
         Bound    default/spark-pi-5d91cc9c90d4b8cf-exec-2-pvc-0   local-path   
  <unset>                          11s
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   No behavior change.
   
   ### How was this patch tested?
   
   Manually tested with `Rancher Desktop`.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: `Gemini 3.1 Pro (High)` on `Antigravity`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to