deployment files

This commit is contained in:
eamoany
2024-06-18 21:06:26 +00:00
parent 7c317678ca
commit 7d0ccd1ff1
2 changed files with 48 additions and 1 deletions

View File

@@ -43,3 +43,27 @@ spec:
selector:
app: $DEPLOYMENT_NAME
type: ClusterIP
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: $DEPLOYMENT_NAME
spec:
schedule: "0 0 * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: $DEPLOYMENT_NAME
image: $IMAGE_NAME
command: ["/bin/bash", "-c"]
args: [
"/usr/local/gcf1/bin/gcf1dbmng.sh etc urldb_download && \
/usr/local/gcf1/bin/gcf1dbmng.sh etc urldb_update"
]
restartPolicy: OnFailure
backoffLimit: 4