2021-04-30 23:09:59 +08:00
|
|
|
---
|
|
|
|
# Source: cilium/templates/hubble-generate-certs-cronjob.yaml
|
2022-10-11 08:51:02 +08:00
|
|
|
apiVersion: batch/v1
|
2021-04-30 23:09:59 +08:00
|
|
|
kind: CronJob
|
|
|
|
metadata:
|
|
|
|
name: hubble-generate-certs
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
k8s-app: hubble-generate-certs
|
|
|
|
spec:
|
|
|
|
schedule: "0 0 1 */4 *"
|
|
|
|
concurrencyPolicy: Forbid
|
|
|
|
jobTemplate:
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: hubble-generate-certs
|
|
|
|
spec:
|
|
|
|
serviceAccount: hubble-generate-certs
|
|
|
|
serviceAccountName: hubble-generate-certs
|
|
|
|
containers:
|
|
|
|
- name: certgen
|
|
|
|
image: "{{ cilium_hubble_certgen_image_repo }}:{{ cilium_hubble_certgen_image_tag }}"
|
|
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
|
|
|
command:
|
|
|
|
- "/usr/bin/cilium-certgen"
|
|
|
|
# Because this is executed as a job, we pass the values as command
|
|
|
|
# line args instead of via config map. This allows users to inspect
|
|
|
|
# the values used in past runs by inspecting the completed pod.
|
|
|
|
args:
|
2023-04-10 13:07:15 +08:00
|
|
|
{% for key, value in cilium_certgen_args.items() -%}
|
|
|
|
- "--{{ key }}={{ value }}"
|
|
|
|
{% endfor %}
|
|
|
|
|
2021-04-30 23:09:59 +08:00
|
|
|
hostNetwork: true
|
|
|
|
restartPolicy: OnFailure
|
|
|
|
ttlSecondsAfterFinished: 1800
|