You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow the Controller and Webhook Containers to run with the securityContext: readOnlyRootfilesystem: true (#2282)
* create a tmp dir for the controller to write Spark artifacts to and set the controller to readOnlyRootFilesystem
Signed-off-by: Nick Gretzon <[email protected]>
* mount a dir for the webhook container to generate its certificates in and set readOnlyRootFilesystem: true for the webhook pod
Signed-off-by: Nick Gretzon <[email protected]>
* update the securityContext in the controller deployment test
Signed-off-by: Nick Gretzon <[email protected]>
* update securityContext of the webhook container in the deployment_test
Signed-off-by: Nick Gretzon <[email protected]>
* update README
Signed-off-by: Nick Gretzon <[email protected]>
* remove -- so comments are not rendered in the README.md
Signed-off-by: Nick Gretzon <[email protected]>
* recreate README.md after removal of comments for volumes and volumeMounts
Signed-off-by: Nick Gretzon <[email protected]>
* make indentation for volumes and volumeMounts consistent with rest of values.yaml
Signed-off-by: Nick Gretzon <[email protected]>
* Revert "make indentation for volumes and volumeMounts consistent with rest of values.yaml"
This reverts commit dba97fc.
Signed-off-by: Nick Gretzon <[email protected]>
* fix indentation in webhook and controller deployment templates for volumes and volumeMounts
Signed-off-by: Nick Gretzon <[email protected]>
* Update charts/spark-operator-chart/values.yaml
Co-authored-by: Yi Chen <[email protected]>
Signed-off-by: Nicholas Gretzon <[email protected]>
* Update charts/spark-operator-chart/values.yaml
Co-authored-by: Yi Chen <[email protected]>
Signed-off-by: Nicholas Gretzon <[email protected]>
* Update charts/spark-operator-chart/values.yaml
Co-authored-by: Yi Chen <[email protected]>
Signed-off-by: Nicholas Gretzon <[email protected]>
* Update charts/spark-operator-chart/values.yaml
Co-authored-by: Yi Chen <[email protected]>
Signed-off-by: Nicholas Gretzon <[email protected]>
* Update charts/spark-operator-chart/templates/controller/deployment.yaml
Co-authored-by: Yi Chen <[email protected]>
Signed-off-by: Nicholas Gretzon <[email protected]>
* Update charts/spark-operator-chart/templates/controller/deployment.yaml
Co-authored-by: Yi Chen <[email protected]>
Signed-off-by: Nicholas Gretzon <[email protected]>
* Update charts/spark-operator-chart/templates/webhook/deployment.yaml
Co-authored-by: Yi Chen <[email protected]>
Signed-off-by: Nicholas Gretzon <[email protected]>
* Update charts/spark-operator-chart/templates/webhook/deployment.yaml
Co-authored-by: Yi Chen <[email protected]>
Signed-off-by: Nicholas Gretzon <[email protected]>
* add additional securityContext to the controller deployment_test.yaml
Signed-off-by: Nick Gretzon <[email protected]>
---------
Signed-off-by: Nick Gretzon <[email protected]>
Signed-off-by: Nicholas Gretzon <[email protected]>
Co-authored-by: Yi Chen <[email protected]>
| controller.affinity | object |`{}`| Affinity for controller pods. |
108
108
| controller.tolerations | list |`[]`| List of node taints to tolerate for controller pods. |
@@ -111,9 +111,9 @@ See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall) for command docum
111
111
| controller.topologySpreadConstraints | list |`[]`| Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in. Ref: [Pod Topology Spread Constraints](https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/). The labelSelector field in topology spread constraint will be set to the selector labels for controller pods if not specified. |
112
112
| controller.env | list |`[]`| Environment variables for controller containers. |
113
113
| controller.envFrom | list |`[]`| Environment variable sources for controller containers. |
114
-
| controller.volumeMounts | list |`[]`| Volume mounts for controller containers. |
114
+
| controller.volumeMounts | list |`[{"mountPath":"/tmp","name":"tmp","readOnly":false}]`| Volume mounts for controller containers. |
115
115
| controller.resources | object |`{}`| Pod resource requests and limits for controller containers. Note, that each job submission will spawn a JVM within the controller pods using "/usr/local/openjdk-11/bin/java -Xmx128m". Kubernetes may kill these Java processes at will to enforce resource limits. When that happens, you will see the following error: 'failed to run spark-submit for SparkApplication [...]: signal: killed' - when this happens, you may want to increase memory limits. |
| controller.sidecars | list |`[]`| Sidecar containers for controller pods. |
118
118
| controller.podDisruptionBudget.enable | bool |`false`| Specifies whether to create pod disruption budget for controller. Ref: [Specifying a Disruption Budget for your Application](https://kubernetes.io/docs/tasks/run-application/configure-pdb/)|
119
119
| controller.podDisruptionBudget.minAvailable | int |`1`| The number of pods that must be available. Require `controller.replicas` to be greater than 1 |
@@ -141,7 +141,7 @@ See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall) for command docum
141
141
| webhook.labels | object |`{}`| Extra labels for webhook pods. |
142
142
| webhook.annotations | object |`{}`| Extra annotations for webhook pods. |
143
143
| webhook.sidecars | list |`[]`| Sidecar containers for webhook pods. |
144
-
| webhook.volumes | list |`[]`| Volumes for webhook pods. |
144
+
| webhook.volumes | list |`[{"emptyDir":{"sizeLimit":"500Mi"},"name":"serving-certs"}]`| Volumes for webhook pods. |
| webhook.affinity | object |`{}`| Affinity for webhook pods. |
147
147
| webhook.tolerations | list |`[]`| List of node taints to tolerate for webhook pods. |
@@ -150,9 +150,9 @@ See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall) for command docum
150
150
| webhook.topologySpreadConstraints | list |`[]`| Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in. Ref: [Pod Topology Spread Constraints](https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/). The labelSelector field in topology spread constraint will be set to the selector labels for webhook pods if not specified. |
151
151
| webhook.env | list |`[]`| Environment variables for webhook containers. |
152
152
| webhook.envFrom | list |`[]`| Environment variable sources for webhook containers. |
153
-
| webhook.volumeMounts | list |`[]`| Volume mounts for webhook containers. |
153
+
| webhook.volumeMounts | list |`[{"mountPath":"/etc/k8s-webhook-server/serving-certs","name":"serving-certs","readOnly":false,"subPath":"serving-certs"}]`| Volume mounts for webhook containers. |
154
154
| webhook.resources | object |`{}`| Pod resource requests and limits for webhook pods. |
| webhook.podDisruptionBudget.enable | bool |`false`| Specifies whether to create pod disruption budget for webhook. Ref: [Specifying a Disruption Budget for your Application](https://kubernetes.io/docs/tasks/run-application/configure-pdb/)|
157
157
| webhook.podDisruptionBudget.minAvailable | int |`1`| The number of pods that must be available. Require `webhook.replicas` to be greater than 1 |
158
158
| spark.jobNamespaces | list |`["default"]`| List of namespaces where to run spark jobs. If empty string is included, all namespaces will be allowed. Make sure the namespaces have already existed. |
0 commit comments