44 lines
1.1 KiB
Smarty
44 lines
1.1 KiB
Smarty
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: common-job-pod
|
|
namespace: lifeline-web
|
|
labels:
|
|
app: lifeline-web
|
|
rds: enable
|
|
spec:
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: kubernetes.io/arch
|
|
operator: In
|
|
values:
|
|
- amd64
|
|
- arm64
|
|
containers:
|
|
- name: common-job
|
|
image: ubuntu:latest
|
|
envFrom:
|
|
- secretRef:
|
|
name: lifeline-web-secrets
|
|
- configMapRef:
|
|
name: lifeline-web-cm
|
|
command: ["bash"]
|
|
args:
|
|
- -c
|
|
- sleep infinity
|
|
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
|