You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@submarine.apache.org by GitBox <gi...@apache.org> on 2020/06/30 13:10:19 UTC

[GitHub] [submarine] lowc1012 opened a new pull request #335: SUBMARINE-532. [WIP] Use Notebook CRD & controller to spawn jupyter notebook

lowc1012 opened a new pull request #335:
URL: https://github.com/apache/submarine/pull/335


   ### What is this PR for?
   This PR shows how to use Kubeflow's Notebook CRD & controller to spawn jupyter notebook
   
   ### What type of PR is it?
   [Improvement]
   
   ### Todos
   1. User doc of notebook and example yaml
   
   ### What is the Jira issue?
   [SUBMARINE-532](https://issues.apache.org/jira/projects/SUBMARINE/issues/SUBMARINE-532)
   
   ### How should this be tested?
   [CI](https://travis-ci.org/github/lowc1012/submarine/builds/703459155)
   
   ### Screenshots (if appropriate)
   
   ### Questions:
   * Does the licenses files need update? No
   * Is there breaking changes for older versions? No
   * Does this needs documentation? No
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] liuxunorg commented on a change in pull request #335: SUBMARINE-532. Use Notebook CRD & controller to spawn jupyter notebook

Posted by GitBox <gi...@apache.org>.
liuxunorg commented on a change in pull request #335:
URL: https://github.com/apache/submarine/pull/335#discussion_r449097847



##########
File path: dev-support/k8s/deploy-notebook-controller.sh
##########
@@ -0,0 +1,62 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+set -e

Review comment:
       good catch!
   many shell scripts need to be set to `set -euo pipefail`.
   Fix this problem in the next PR.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] tangzhankun commented on pull request #335: SUBMARINE-532. [WIP] Use Notebook CRD & controller to spawn jupyter notebook

Posted by GitBox <gi...@apache.org>.
tangzhankun commented on pull request #335:
URL: https://github.com/apache/submarine/pull/335#issuecomment-652161034


   @lowc1012 Thanks for the contribution! One question, will the notebook controller's YAML files be added to submarine helm charts? The current script based on "kind" is for testing, right?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] aylei commented on a change in pull request #335: SUBMARINE-532. Use Notebook CRD & controller to spawn jupyter notebook

Posted by GitBox <gi...@apache.org>.
aylei commented on a change in pull request #335:
URL: https://github.com/apache/submarine/pull/335#discussion_r449067262



##########
File path: dev-support/k8s/deploy-notebook-controller.sh
##########
@@ -0,0 +1,62 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+set -e

Review comment:
       How about `set -euo pipefail`




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] pingsutw commented on pull request #335: SUBMARINE-532. Use Notebook CRD & controller to spawn jupyter notebook

Posted by GitBox <gi...@apache.org>.
pingsutw commented on pull request #335:
URL: https://github.com/apache/submarine/pull/335#issuecomment-652812557


   /cc @liuxunorg @jiwq 


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] liuxunorg commented on pull request #335: SUBMARINE-532. Use Notebook CRD & controller to spawn jupyter notebook

Posted by GitBox <gi...@apache.org>.
liuxunorg commented on pull request #335:
URL: https://github.com/apache/submarine/pull/335#issuecomment-653081272


   Will merge if no more comments.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] lowc1012 commented on a change in pull request #335: SUBMARINE-532. Use Notebook CRD & controller to spawn jupyter notebook

Posted by GitBox <gi...@apache.org>.
lowc1012 commented on a change in pull request #335:
URL: https://github.com/apache/submarine/pull/335#discussion_r449103887



##########
File path: dev-support/k8s/deploy-notebook-controller.sh
##########
@@ -0,0 +1,62 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+set -e

Review comment:
       @aylei  Thanks for your review!
   @liuxunorg Ok, I will fix other shell scripts too.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] liuxunorg commented on a change in pull request #335: SUBMARINE-532. Use Notebook CRD & controller to spawn jupyter notebook

Posted by GitBox <gi...@apache.org>.
liuxunorg commented on a change in pull request #335:
URL: https://github.com/apache/submarine/pull/335#discussion_r449106827



##########
File path: dev-support/k8s/deploy-notebook-controller.sh
##########
@@ -0,0 +1,62 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+set -e

Review comment:
       @lowc1012 Thanks!




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] asfgit closed pull request #335: SUBMARINE-532. Use Notebook CRD & controller to spawn jupyter notebook

Posted by GitBox <gi...@apache.org>.
asfgit closed pull request #335:
URL: https://github.com/apache/submarine/pull/335


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] lowc1012 commented on pull request #335: SUBMARINE-532. [WIP] Use Notebook CRD & controller to spawn jupyter notebook

Posted by GitBox <gi...@apache.org>.
lowc1012 commented on pull request #335:
URL: https://github.com/apache/submarine/pull/335#issuecomment-652187149


   @tangzhankun
   Yes. After the PR is merged, I will create another PR for deploying NB-controller by using helm charts.
   And yes, it is added into submarine test-k8s.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org