Skip to content

Commit

Permalink
make cache delete pod disappear from kubcetl
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson684 committed Sep 28, 2023
1 parent f672119 commit fa6773a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions buildup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ kubectl apply -f yamls/pv-disk.yaml
kubectl apply -f yamls/pvc-disk.yaml

# memory storage
kubectl delete -f yamls/apps.yaml
# kubectl delete -f yamls/apps.yaml
kubectl delete -f yamls/new-apps.yaml
kubectl delete -f yamls/manager.yaml
kubectl delete -f yamls/data-serve.yaml
kubectl delete -f yamls/cache-deleter.yaml


kubectl apply -f yamls/apps.yaml
# kubectl apply -f yamls/apps.yaml
kubectl apply -f yamls/new-apps.yaml
kubectl apply -f yamls/manager.yaml
kubectl apply -f yamls/data-serve.yaml
Expand Down
3 changes: 2 additions & 1 deletion yamls/cache-deleter-disk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ kind: CronJob
metadata:
name: cache-deleter-disk
spec:
schedule: "*/1 * * * *"
schedule: "* * * * */1"
successfulJobsHistoryLimit: 0
jobTemplate:
spec:
template:
Expand Down
1 change: 1 addition & 0 deletions yamls/cache-deleter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: cache-deleter
spec:
schedule: "* * * * */1"
successfulJobsHistoryLimit: 0
jobTemplate:
spec:
template:
Expand Down

0 comments on commit fa6773a

Please sign in to comment.