-
Notifications
You must be signed in to change notification settings - Fork 15
/
cloud-governance.yaml
46 lines (46 loc) · 1.41 KB
/
cloud-governance.yaml
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
36
37
38
39
40
41
42
43
44
45
46
apiVersion: batch/v1
kind: Job
metadata:
name: cloud-governance
spec:
parallelism: 1
completions: 1
template:
metadata:
name: cloud-governance
spec:
containers:
- env:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: cloud-governance-secret
key: aws_access_key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: cloud-governance-secret
key: aws_secret_access_key
- name: AWS_DEFAULT_REGION
valueFrom:
configMapKeyRef:
name: cloud-governance-config
key: cloud-governance.region
- name: policy
valueFrom:
configMapKeyRef:
name: cloud-governance-config
key: cloud-governance.policy
- name: dry_run
valueFrom:
configMapKeyRef:
name: cloud-governance-config
key: cloud-governance.dry_run
- name: log_level
valueFrom:
configMapKeyRef:
name: cloud-governance-config
key: cloud-governance.log_level
image: quay.io/cloud-governance/cloud-governance
name: cloud-governance
restartPolicy: OnFailure