diff --git a/Makefile b/Makefile index 137fe1d4..9780fa56 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,9 @@ reaper: janitor: go build -o janitor/janitor k8s.io/test-infra/boskos/janitor/ +janitor-aws: + $(MAKE) -C ../maintenance/aws-janitor/cmd/aws-janitor-boskos + metrics: go build -o metrics/metrics k8s.io/test-infra/boskos/metrics/ @@ -53,6 +56,12 @@ janitor-image: docker push "$(HUB)/janitor:$(TAG)" rm janitor/janitor +janitor-aws-image: export DOCKER_OPTS=--no-cache +janitor-aws-image: export IMAGE=$(HUB)/janitor-aws +janitor-aws-image: + $(MAKE) -C ../maintenance/aws-janitor/cmd/aws-janitor-boskos image push + $(MAKE) -C ../maintenance/aws-janitor/cmd/aws-janitor-boskos clean + metrics-image: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o metrics/metrics k8s.io/test-infra/boskos/metrics/ docker build -t "$(HUB)/metrics:$(TAG)" metrics @@ -81,4 +90,4 @@ update-config: get-cluster-credentials get-cluster-credentials: gcloud container clusters get-credentials "$(CLUSTER)" --project="$(PROJECT)" --zone="$(ZONE)" -.PHONY: boskos client reaper janitor metrics server-image reaper-image janitor-image metrics-image server-deployment reaper-deployment janitor-deployment metrics-deployment service update-config get-cluster-credentials +.PHONY: boskos client reaper janitor janitor-aws metrics server-image reaper-image janitor-image janitor-aws-image metrics-image server-deployment reaper-deployment janitor-deployment metrics-deployment service update-config get-cluster-credentials diff --git a/janitor/deployment.yaml b/janitor/deployment.yaml index 963001a1..264bcf3e 100644 --- a/janitor/deployment.yaml +++ b/janitor/deployment.yaml @@ -61,4 +61,24 @@ spec: - name: service secret: secretName: service-account - +--- +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: boskos-janitor-aws + labels: + app: boskos-janitor-aws + namespace: test-pods +spec: + replicas: 4 # 4 distributed janitor instances + template: + metadata: + labels: + app: boskos-janitor-aws + spec: + terminationGracePeriodSeconds: 300 + containers: + - name: boskos-janitor-aws + image: gcr.io/k8s-testimages/janitor-aws:latest + args: + - --boskos-url=http://boskos.test-pods.svc.cluster.local.