Page MenuHomePhabricator

Deploy spark-operator webhook
Closed, ResolvedPublic1 Estimated Story Points

Description

In order to be able to deploy SparkApplication relying on volumes, hadoopConfigMap, sparkConfigMap, init containers and so on we need to enable the spark-operator webhook which will mutate spark pods at creation
See for more details on what component are mutated on pods by the webhook: https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/blob/master/pkg/webhook/webhook.go#L539

  • Add webhook
  • Rely on cert-manager instead of gencert.sh mechanism
  • Authorize access from API server to webhook

Done is

  • webhook is enabled on spark operator and registered on K8S cluster
  • spark pods are well mutated when adding hadoopConfigMap

Event Timeline

nfraison changed the task status from Open to In Progress.Mar 13 2023, 10:25 AM
nfraison claimed this task.

Change 897895 had a related patch set uploaded (by Nicolas Fraison; author: Nicolas Fraison):

[operations/deployment-charts@master] spark-operator: enable spark operator mutation webhook

https://gerrit.wikimedia.org/r/897895

Change 897895 merged by Nicolas Fraison:

[operations/deployment-charts@master] spark-operator: enable spark operator mutation webhook

https://gerrit.wikimedia.org/r/897895

Change 901581 had a related patch set uploaded (by Nicolas Fraison; author: Nicolas Fraison):

[operations/deployment-charts@master] spark: add webhook rights to ClusterRoleBinding

https://gerrit.wikimedia.org/r/901581

Change 901581 merged by Nicolas Fraison:

[operations/deployment-charts@master] spark: add webhook rights to ClusterRoleBinding

https://gerrit.wikimedia.org/r/901581

Change 901618 had a related patch set uploaded (by Nicolas Fraison; author: Nicolas Fraison):

[operations/deployment-charts@master] spark: udapte networkpolicy to authorize kubernetes-api to contact webhook service

https://gerrit.wikimedia.org/r/901618

Change 901618 merged by Nicolas Fraison:

[operations/deployment-charts@master] spark: udapte networkpolicy to authorize kubernetes-api to contact webhook service

https://gerrit.wikimedia.org/r/901618