Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SparkOperator: Run certs as an init-container #292

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions kustomize/base/operators/spark/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
apiVersion: batch/v1
kind: Job
metadata:
name: sparkoperator-init
namespace: sparkoperator
labels:
app.kubernetes.io/name: sparkoperator
app.kubernetes.io/version: v2.4.0-v1beta1
spec:
backoffLimit: 3
template:
metadata:
labels:
app.kubernetes.io/name: sparkoperator
app.kubernetes.io/version: v2.4.0-v1beta1
spec:
serviceAccountName: sparkoperator
restartPolicy: Never
containers:
- name: main
image: gcr.io/spark-operator/spark-operator:v2.4.0-v1beta1-0.9.0
imagePullPolicy: IfNotPresent
command: ["/usr/bin/gencerts.sh","--namespace", "sparkoperator", "-p"]
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
24 changes: 0 additions & 24 deletions kustomize/base/operators/spark/webhook.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
apiVersion: batch/v1
kind: Job
metadata:
name: sparkoperator-init
namespace: sparkoperator
labels:
app.kubernetes.io/name: sparkoperator
app.kubernetes.io/version: v2.4.0-v1beta1
spec:
backoffLimit: 3
template:
metadata:
labels:
app.kubernetes.io/name: sparkoperator
app.kubernetes.io/version: v2.4.0-v1beta1
spec:
serviceAccountName: sparkoperator
restartPolicy: Never
containers:
- name: main
image: gcr.io/spark-operator/spark-operator:v2.4.0-v1beta1-0.9.0
imagePullPolicy: IfNotPresent
command: ["/usr/bin/gencerts.sh","--namespace", "sparkoperator", "-p"]
---
kind: Service
apiVersion: v1
metadata:
Expand Down