forked from kubernetes/k8s.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboskos-janitor.yaml
More file actions
35 lines (35 loc) · 1.08 KB
/
boskos-janitor.yaml
File metadata and controls
35 lines (35 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
apiVersion: apps/v1
kind: Deployment
metadata:
name: boskos-ibmcloud-janitor
labels:
app: boskos-ibmcloud-janitor
spec:
replicas: 2 # 2 distributed janitor instances
selector:
matchLabels:
app: boskos-ibmcloud-janitor
template:
metadata:
labels:
app: boskos-ibmcloud-janitor
spec:
terminationGracePeriodSeconds: 300
containers:
- name: boskos-ibmcloud-janitor
image: gcr.io/k8s-staging-boskos/ibmcloud-janitor-boskos:v20251218-e3340a3
args:
- --boskos-url=http://boskos.test-pods.svc.cluster.local.
- --resource-type=vpc-service
- --ignore-api-key=true
- --account-id=efa47ec6fd45473a9e1fd6b7b8363f5c
env:
- name: IBMCLOUD_ENV_FILE # TODO: explore on how to read key from the file instead of env var
value: "/home/.ibmcloud/api-key"
volumeMounts:
- name: credentials
mountPath: /home/.ibmcloud
volumes:
- name: credentials
secret:
secretName: boskos-janitor-api-key