Commit f3a7349e authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

dumper using apply, and plain pod by default

parent 6305f3b3
...@@ -385,18 +385,20 @@ echo "# create cron job updating info on services" ...@@ -385,18 +385,20 @@ echo "# create cron job updating info on services"
if [ -n updateDeploy ]; then if [ -n updateDeploy ]; then
targetF=service-dumper.yaml targetF=service-dumper.yaml
cat > "$targetF" <<EOF cat > "$targetF" <<EOF
apiVersion: batch/v1beta1 apiVersion: v1
kind: CronJob kind: Pod
#apiVersion: batch/v1beta1
#kind: CronJob
metadata: metadata:
name: service-dumper name: service-dumper
labels: labels:
app: nomad-container-manager-dumper app: nomad-container-manager-dumper
spec: spec:
schedule: "*/15 * * * *" # schedule: "*/15 * * * *"
jobTemplate: # jobTemplate:
spec: # spec:
template: # template:
spec: # spec:
imagePullSecrets: imagePullSecrets:
- name: garching-kube - name: garching-kube
restartPolicy: OnFailure restartPolicy: OnFailure
...@@ -455,7 +457,7 @@ EOF ...@@ -455,7 +457,7 @@ EOF
EOF EOF
fi fi
fi fi
echo " kubectl create -f $targetF" echo " kubectl apply -f $targetF"
for imageType in beaker jupyter creedo remotevis ; do for imageType in beaker jupyter creedo remotevis ; do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment