Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Docs improvements #176

Merged
merged 8 commits into from
Mar 8, 2017
Merged

Conversation

foxish
Copy link
Member

@foxish foxish commented Mar 8, 2017

@foxish foxish mentioned this pull request Mar 8, 2017
5 tasks
@foxish foxish changed the title Add pre-built docker image to docs Docs improvements Mar 8, 2017
@foxish foxish force-pushed the add-docker-image branch from 92f814f to 0abf312 Compare March 8, 2017 12:01
@foxish
Copy link
Member Author

foxish commented Mar 8, 2017

cc @lins05


### Setting Up SSL For Submitting the Driver

When submitting to Kubernetes, a pod is started for the driver, and the pod starts an HTTP server. This HTTP server
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: an HTTP server => a http server

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the former is more common.

@@ -44,8 +57,8 @@ are set up as described above:
--kubernetes-namespace default \
--conf spark.executor.instances=5 \
--conf spark.app.name=spark-pi \
--conf spark.kubernetes.driver.docker.image=registry-host:5000/spark-driver:latest \
--conf spark.kubernetes.executor.docker.image=registry-host:5000/spark-executor:latest \
--conf spark.kubernetes.driver.docker.image=kubespark/spark-driver:0.1.0-alpha.1 \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a schema for the docker image tags? I think we may want include to the spark version, k8s version in the tag as well.

Also we may want to use a more stable tag (e.g. 0.1-alpha, 0.2-stable) to avoid updating this file too often.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! We wanted to call the spark alpha release: 2.1.0-k8s-support-0.1.0-alpha.1. Do you think it makes sense to tag the docker image the same way? If we have agreement on that, I'll be glad to change this.

We had agreement in an earlier SIG meeting that we wanted to avoid having the k8s version and instead have that in the release notes.

* Find the identity of the master associated with this project.

> kubectl cluster-info
Kubernetes master is running at https://x.y.z.w:443

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: https://<master-ip>:443


* Run spark-submit with the master option set to `k8s://https://x.y.z.w:443`. The instructions for running spark-submit are provided in the [running on kubernetes](running-on-kubernetes.md) tutorial.
* Check that your driver pod, and subsequently your executor pods are launched using `kubectl get pods`.
* Read the stdout and stderr of the driver pod using `kubectl get logs`.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: perhaps... kubectl logs <name-of-driver-pod> or a streaming version of it kubectl logs -f <name-of-driver-pod>

@foxish
Copy link
Member Author

foxish commented Mar 8, 2017

Thanks for the review @lins05 and @iyanuobidele.
Any other comments?

/cc @ash211


* Run spark-submit with the master option set to `k8s://https://x.y.z.w:443`. The instructions for running spark-submit are provided in the [running on kubernetes](running-on-kubernetes.md) tutorial.
* Check that your driver pod, and subsequently your executor pods are launched using `kubectl get pods`.
* Read the stdout and stderr of the driver pod using `kubectl get logs`.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the logs resource a GKE-specific thing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't exist. I made a mistake, it's the same "kubectl logs" as it is elsewhere. Fixed.

`local:`, the file is assumed to already be on the container's disk at the appropriate path.

### Kubernetes Clusters and the authenticated proxy endpoint
For details about running on public cloud environments, such as Google Container Engine (GKE), please refer to [our documentation](running-on-kubernetes-cloud.md).
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make the anchor text for this link something like "running on kubernetes cloud" ("our documentation" is pretty vague)

</tr>
<tr>
<td>Spark Executor Image</td>
<td><code>kubespark/spark-executor:v2.1.0-k8s-support-0.1.0-alpha.1</code></td>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these don't match the tags I see at https://hub.docker.com/r/kubespark/spark-executor/tags/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed the tag an hour ago and it seems to be in there. Will rebuild and update after the rebase also.

@foxish
Copy link
Member Author

foxish commented Mar 8, 2017

Addressed comments.

@iyanuobidele
Copy link

LGTM!

@ash211 ash211 merged commit e5da90d into k8s-support-alternate-incremental Mar 8, 2017
ash211 pushed a commit that referenced this pull request Mar 16, 2017
* Adding official alpha docker image to docs

* Reorder sections and create a specific one for "advanced"

* Provide limitations and instructions about running on GKE

* Fix title of advanced section: submission

* Improved section on running in the cloud

* Update versioning

* Address comments

* Address comments

(cherry picked from commit e5da90d)
foxish added a commit that referenced this pull request Jul 24, 2017
* Adding official alpha docker image to docs

* Reorder sections and create a specific one for "advanced"

* Provide limitations and instructions about running on GKE

* Fix title of advanced section: submission

* Improved section on running in the cloud

* Update versioning

* Address comments

* Address comments

(cherry picked from commit e5da90d)
@foxish foxish deleted the add-docker-image branch July 25, 2017 00:47
ifilonenko pushed a commit to ifilonenko/spark that referenced this pull request Feb 25, 2019
* Adding official alpha docker image to docs

* Reorder sections and create a specific one for "advanced"

* Provide limitations and instructions about running on GKE

* Fix title of advanced section: submission

* Improved section on running in the cloud

* Update versioning

* Address comments

* Address comments

(cherry picked from commit e5da90d)
(cherry picked from commit 8c08189)
ifilonenko pushed a commit to ifilonenko/spark that referenced this pull request Feb 25, 2019
puneetloya pushed a commit to puneetloya/spark that referenced this pull request Mar 11, 2019
* Adding official alpha docker image to docs

* Reorder sections and create a specific one for "advanced"

* Provide limitations and instructions about running on GKE

* Fix title of advanced section: submission

* Improved section on running in the cloud

* Update versioning

* Address comments

* Address comments

(cherry picked from commit e5da90d)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants