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.
|
|
|
apiVersion: batch/v1beta1
|
|
|
|
kind: CronJob
|
|
|
|
metadata:
|
|
|
|
name: NAME-build-cron
|
|
|
|
labels:
|
|
|
|
app.kubernetes.part-of: website # correct name?
|
|
|
|
spec:
|
|
|
|
schedule: "10 23 * * *"
|
|
|
|
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
|
|
|
|
volumeMounts:
|
|
|
|
- name: content-volume
|
|
|
|
mountPath: /var/www/html/website
|
|
|
|
volumes:
|
|
|
|
- name: content-volume
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: NAME-content-pvc
|
|
|
|
restartPolicy: OnFailure
|