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.
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
2 years ago
|
apiVersion: batch/v1
|
||
2 years ago
|
kind: CronJob
|
||
|
metadata:
|
||
4 months ago
|
name: build-cron
|
||
|
namespace: NAME
|
||
2 years ago
|
labels:
|
||
2 years ago
|
app.kubernetes.part-of: NAME-website
|
||
2 years ago
|
spec:
|
||
2 years ago
|
schedule: "0/7 * * * *"
|
||
2 years ago
|
successfulJobsHistoryLimit: 1
|
||
|
failedJobsHistoryLimit: 1
|
||
|
jobTemplate:
|
||
|
spec:
|
||
|
template:
|
||
4 months ago
|
metadata:
|
||
|
namespace: NAME
|
||
|
labels:
|
||
|
app: build-cron
|
||
|
app.kubernetes.part-of: NAME-website
|
||
2 years ago
|
spec:
|
||
|
containers:
|
||
2 years ago
|
- image: domaindrivenarchitecture/c4k-website-build
|
||
4 months ago
|
name: build-cron-container
|
||
2 years ago
|
imagePullPolicy: IfNotPresent
|
||
2 years ago
|
resources:
|
||
|
requests:
|
||
|
cpu: BUILD_CPU_REQUEST
|
||
|
memory: BUILD_MEMORY_REQUEST
|
||
|
limits:
|
||
|
cpu: BUILD_CPU_LIMIT
|
||
|
memory: BUILD_MEMORY_LIMIT
|
||
2 years ago
|
command: ["/entrypoint.sh"]
|
||
2 years ago
|
envFrom:
|
||
|
- secretRef:
|
||
4 months ago
|
name: build-secret
|
||
2 years ago
|
volumeMounts:
|
||
2 years ago
|
- name: content-volume
|
||
|
mountPath: /var/www/html/website
|
||
4 months ago
|
- name: hash-state-volume
|
||
2 years ago
|
mountPath: /var/hashfile.d
|
||
2 years ago
|
volumes:
|
||
2 years ago
|
- name: content-volume
|
||
2 years ago
|
persistentVolumeClaim:
|
||
4 months ago
|
claimName: content-volume
|
||
|
- name: hash-state-volume
|
||
2 years ago
|
persistentVolumeClaim:
|
||
4 months ago
|
claimName: hash-state-volume
|
||
2 years ago
|
restartPolicy: OnFailure
|
||
|
|