You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by pd...@apache.org on 2021/07/08 06:48:54 UTC

[zeppelin] branch master updated: [ZEPPELIN-5447] Spark driver pod cannot create resource configmaps under k8s mode

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

pdallig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zeppelin.git


The following commit(s) were added to refs/heads/master by this push:
     new 68aee78  [ZEPPELIN-5447] Spark driver pod cannot create resource configmaps under k8s mode
68aee78 is described below

commit 68aee7806a8df2f108440f37481aafd155f814d2
Author: rick <ri...@rickdeMacBook-Pro.local>
AuthorDate: Wed Jul 7 13:43:49 2021 +0800

    [ZEPPELIN-5447] Spark driver pod cannot create resource configmaps under k8s mode
    
    ### What is this PR for?
    When zeppelin is running under k8s mode, make the pod of spark driver obtain the permission to create the resource "configmaps".
    
    According to the [Apache Spark Documentation: Running Spark on Kubernetes](https://spark.apache.org/docs/3.1.2/running-on-kubernetes.html), the service account credentials used by the driver pods must be allowed to create pods, services and configmaps.
    
    ### What type of PR is it?
    [Bug fix]
    
    ### Todos
    * [ ] - Task
    
    ### What is the Jira issue?
    * <https://issues.apache.org/jira/browse/ZEPPELIN-5447>
    
    ### How should this be tested?
    * CI pass and manually tested
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No
    
    Author: rick <ri...@rickdeMacBook-Pro.local>
    
    Closes #4165 from rickchengx/ZEPPELIN-5447 and squashes the following commits:
    
    2ee8b2b6d [rick] [ZEPPELIN-5447] Spark driver pod cannot create resource configmaps under k8s mode
---
 k8s/interpreter/100-interpreter-spec.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/k8s/interpreter/100-interpreter-spec.yaml b/k8s/interpreter/100-interpreter-spec.yaml
index 116b0df..dc72fab 100644
--- a/k8s/interpreter/100-interpreter-spec.yaml
+++ b/k8s/interpreter/100-interpreter-spec.yaml
@@ -136,7 +136,7 @@ metadata:
   {% endif %}
 rules:
 - apiGroups: [""]
-  resources: ["pods", "services"]
+  resources: ["pods", "services", "configmaps"]
   verbs: ["create", "get", "update", "list", "delete", "watch" ]
 ---
 kind: RoleBinding