You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
979 B
YAML
36 lines
979 B
YAML
apiVersion: batch/v1beta1
|
|
kind: CronJob
|
|
metadata:
|
|
name: NAME-build-cron
|
|
labels:
|
|
app.kubernetes.part-of: NAME-website
|
|
spec:
|
|
schedule: "0/7 * * * *"
|
|
successfulJobsHistoryLimit: 1
|
|
failedJobsHistoryLimit: 1
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- image: domaindrivenarchitecture/c4k-website-build
|
|
name: NAME-build-app
|
|
imagePullPolicy: IfNotPresent
|
|
command: ["/entrypoint.sh"]
|
|
envFrom:
|
|
- secretRef:
|
|
name: NAME-secret
|
|
env:
|
|
- name: SHA256SUM
|
|
value: CHECK_SUM
|
|
- name: SCRIPTFILE
|
|
value: SCRIPT_FILE
|
|
volumeMounts:
|
|
- name: content-volume
|
|
mountPath: /var/www/html/website
|
|
volumes:
|
|
- name: content-volume
|
|
persistentVolumeClaim:
|
|
claimName: NAME-content-volume
|
|
restartPolicy: OnFailure
|
|
|