apiVersion: batch/v1
kind: CronJob
metadata:
name: cluster-endpoints
spec:
schedule: “0 $(date -d “360 minutes” +%H) $(date -d “360 minutes” +%d) $(date -d “360 minutes” +%m) *”
jobTemplate:
spec:
template:
spec:
containers:
- name: cluster-endpoint-container
image: busybox
imagePullPolicy: IfNotPresent
command:
- /bin/sh
- -c
- date; curl -XPOST -H ‘Content-Type: application/json’ http://el-cluster-endpoint-eventlistener.tekton-plumbing.svc.local.apple.com:8080 -d
‘{“INFRA_CICD_CROSS_ACCOUNT_ROLE_ARN”: “”, “region”: “”, “cluster_name”: “”}’:
restartPolicy: OnFailure
apiVersion: batch/v1
kind: CronJob
metadata:
name: hello
spec:
schedule: “* * * * *”
jobTemplate:
spec:
template:
spec:
containers:
- name: hello
image: busybox:1.28
imagePullPolicy: IfNotPresent
command:
- /bin/sh
- -c
- date; echo Hello from the Kubernetes cluster
restartPolicy: OnFailure