This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new aa9be2d  [SPARK-49888] Use `registry.k8s.io/pause:3.9` to avoid 
failure deterministically
aa9be2d is described below

commit aa9be2de43268c04619fa56b810707c1a9de843a
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Fri Oct 4 16:32:21 2024 -0700

    [SPARK-49888] Use `registry.k8s.io/pause:3.9` to avoid failure 
deterministically
    
    ### What changes were proposed in this pull request?
    
    This PR aims to use `registry.k8s.io/pause:3.9` to avoid failure 
deterministically.
    
    ### Why are the changes needed?
    
    `pause` image seems to support multi-arch since 3.1. In some K8s clusters, 
the example fails due to the architecture issues. To avoid architecture failure 
like the following, we had better specify the version.
    ```
    $ kubectl logs -f cluster-with-template-master-0 -c sidecar
    exec /pause: exec format error
    ```
    
    ### Does this PR introduce _any_ user-facing change?
    
    No,
    
    ### How was this patch tested?
    
    Manual review.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #145 from dongjoon-hyun/SPARK-49888.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 examples/cluster-with-template.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/cluster-with-template.yaml 
b/examples/cluster-with-template.yaml
index 8e32d2c..1209500 100644
--- a/examples/cluster-with-template.yaml
+++ b/examples/cluster-with-template.yaml
@@ -47,7 +47,7 @@ spec:
                 cpu: "2"
                 memory: "2Gi"
           - name: sidecar
-            image: registry.k8s.io/pause
+            image: registry.k8s.io/pause:3.9
             resources:
               requests:
                 cpu: "0.1"
@@ -81,7 +81,7 @@ spec:
                 cpu: "2"
                 memory: "2Gi"
           - name: sidecar
-            image: registry.k8s.io/pause
+            image: registry.k8s.io/pause:3.9
             resources:
               requests:
                 cpu: "0.1"


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

Reply via email to