summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging/templates/job.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_logging/templates/job.j2')
-rw-r--r--roles/openshift_logging/templates/job.j226
1 files changed, 26 insertions, 0 deletions
diff --git a/roles/openshift_logging/templates/job.j2 b/roles/openshift_logging/templates/job.j2
new file mode 100644
index 000000000..d7794a407
--- /dev/null
+++ b/roles/openshift_logging/templates/job.j2
@@ -0,0 +1,26 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ labels:
+ logging-infra: support
+ generateName: jks-cert-gen-
+spec:
+ containers:
+ - name: jks-cert-gen
+ image: {{openshift_logging_image_prefix}}logging-deployer:{{openshift_logging_image_version}}
+ imagePullPolicy: Always
+ command: ["sh", "generate-jks.sh"]
+ securityContext:
+ privileged: true
+ volumeMounts:
+ - mountPath: /opt/deploy
+ name: certmount
+ env:
+ - name: PROJECT
+ value: {{openshift_logging_namespace}}
+ restartPolicy: Never
+ serviceAccount: aggregated-logging-fluentd
+ volumes:
+ - hostPath:
+ path: "{{generated_certs_dir}}"
+ name: certmount