common images * common images resolve commit with --rebase * Remove bitbucket-pipelines.yml.orig Approved-by: Rachit Bhargava
51 lines
1.3 KiB
Smarty
51 lines
1.3 KiB
Smarty
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: common-jobs
|
|
namespace: lifeline-web
|
|
labels:
|
|
app: lifeline-web
|
|
rds: enable
|
|
spec:
|
|
ttlSecondsAfterFinished: 10
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: lifeline-web
|
|
rds: enable
|
|
spec:
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: kubernetes.io/arch
|
|
operator: In
|
|
values:
|
|
- amd64
|
|
- arm64
|
|
containers:
|
|
- name: common-jobs
|
|
image: ubuntu:latest
|
|
envFrom:
|
|
- secretRef:
|
|
name: lifeline-web-secrets
|
|
- configMapRef:
|
|
name: lifeline-web-cm
|
|
command: ["bash"]
|
|
args:
|
|
- -c
|
|
- cp -rf /usr/share/nginx/subdomain/www/wp-content/uploads/common-jobs.sh /root/ && chmod 755 /root/common-jobs.sh && /root/common-jobs.sh $JOBNAME
|
|
volumeMounts:
|
|
- mountPath: /usr/share/nginx/subdomain/www/wp-content/uploads
|
|
name: persistent-storage
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
nodeSelector:
|
|
kubernetes.io/os: linux
|
|
restartPolicy: Never
|
|
volumes:
|
|
- name: persistent-storage
|
|
persistentVolumeClaim:
|
|
claimName: efs-claim-lifeline
|