From 9fd38dd9da9b7e9daf33cb3a4552446d84be2ade Mon Sep 17 00:00:00 2001 From: Yinan Li Date: Sun, 21 Apr 2019 19:30:44 -0700 Subject: [PATCH] Updated user guide --- docs/user-guide.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/user-guide.md b/docs/user-guide.md index be99f24d..902c33d0 100644 --- a/docs/user-guide.md +++ b/docs/user-guide.md @@ -19,8 +19,9 @@ The Kubernetes Operator for Apache Spark ships with a command-line tool called ` * [Using Secrets As Environment Variables](#using-secrets-as-environment-variables) * [Using Image Pull Secrets](#using-image-pull-secrets) * [Using Pod Affinity](#using-pod-affinity) - * [Adding Tolerations](#adding-tolerations) + * [Using Tolerations](#using-tolerations) * [Using Pod Security Context](#using-pod-security-context) + * [Using Sidecar Containers](#using-sidecar-containers) * [Python Support](#python-support) * [Monitoring](#monitoring) * [Working with SparkApplications](#working-with-sparkapplications) @@ -269,7 +270,7 @@ spec: Note that the mutating admission webhook is needed to use this feature. Please refer to the [Quick Start Guide](quick-start-guide.md) on how to enable the mutating admission webhook. -### Adding Tolerations +### Using Tolerations A `SparkApplication` can specify an `Tolerations` for the driver or executor pod, using the optional field `.spec.driver.tolerations` or `.spec.executor.tolerations`. Below is an example: @@ -327,6 +328,9 @@ spec: ... ``` +Note that the mutating admission webhook is needed to use this feature. Please refer to the +[Quick Start Guide](quick-start-guide.md) on how to enable the mutating admission webhook. + ### Python Support Python support can be enabled by setting `.spec.mainApplicationFile` with path to your python application. Optionaly, the `.spec.pythonVersion` field can be used to set the major Python version of the docker image used to run the driver and executor containers. Below is an example showing part of a `SparkApplication` specification: