Skip to content

Commit

Permalink
sig-k8s-infra: Add cleanup job for disk snapshots
Browse files Browse the repository at this point in the history
Related:
  - Ref: kubernetes/k8s.io#2241
  - Part of kubernetes/k8s.io#1469

Add a cleanup job that will delete disk snapshots older than 30 days created by sig-scalability periodic
job ci-golang-tip-k8s-1-18-canary.

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
  • Loading branch information
ameukam committed Sep 27, 2021
1 parent a6ec9d2 commit 10c47cb
Showing 1 changed file with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,49 @@ periodics:
- ci-kubernetes-e2e-gci-gce-scalability
# Delete snapshots older than x days
- "30"

- name: ci-kubernetes-scalability-cleanup-golang-builds-canary
cluster: k8s-infra-prow-build
interval: 24h
labels:
preset-service-account: "true"
decorate: true
decoration_config:
timeout: 60m
extra_refs:
- org: kubernetes
repo: perf-tests
base_ref: master
path_alias: k8s.io/perf-tests
annotations:
# TODO(ameukam): update with email alert
testgrid-dashboards: sig-k8s-infra-canaries
testgrid-tab-name: golang-build-5k-project-snapshots-cleanup-canary
testgrid-alert-email: ameukam@gmail.com
testgrid-num-failures-to-alert: '3'
spec:
serviceAccountName: boskos-janitor
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20210917-ee1e7c845b-master
command:
- runner.sh
- /workspace/scenarios/execute.py
args:
- $(GOPATH)/src/k8s.io/perf-tests/clusterloader2/clean-up-old-snapshots.sh
# Command (list|delete)
- delete
# Comma-separated list of projects to process
# It should match projects list for type: scalability-project in prow/cluster/boskos-resources.yaml
- k8s-infra-e2e-scale-5k-project
# Comma-separated list of snapshot prefixes to delete
# TODO (ameukam): drop canary when migration is over: https://github.com/kubernetes/k8s.io/issues/2241
- ci-golang-tip-k8s-1-18-canary
# Delete snapshots older than x days
- "30"
resources:
limits:
cpu: 2
memory: 4Gi
requests:
cpu: 2
memory: 4Gi

0 comments on commit 10c47cb

Please sign in to comment.