In order to be able to use the functionality of the spark-operator, we will need to tune the RBAC (role based access control) policies somewhat.
Specifically, we now the following:
- The spark-operator pod(s) will need to be able to launch spark-driver pods in the spark namespace.
- The spark-driver pods will need to launch spark-executor pods in the spark namespace.
- The webhook of the spark-operator will require permissions to modify pods in the spark namespace.
We will also need to look closely at the way that upstream helm chart works, and ensure that we are not exceeding the minimum permissions required for our purposes.