deployment files
This commit is contained in:
@@ -43,3 +43,27 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: $DEPLOYMENT_NAME
|
app: $DEPLOYMENT_NAME
|
||||||
type: ClusterIP
|
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
|
||||||
|
|
||||||
|
|||||||
@@ -41,3 +41,26 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: $DEPLOYMENT_NAME
|
app: $DEPLOYMENT_NAME
|
||||||
type: ClusterIP
|
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
|
||||||
Reference in New Issue
Block a user