-
Notifications
You must be signed in to change notification settings - Fork 2
/
aztm.yaml
40 lines (39 loc) · 1.05 KB
/
aztm.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
apiVersion: batch/v1
kind: Job
metadata:
name: aztm
spec:
template:
spec:
containers:
- name: azcmd
image: kcorer/azcmd
command: ["/tm", "rakelkar-delete-me", "eastus", "ugh-tm", "ahahahahahaha", "anep", "40.70.209.164"]
env:
- name: AZ_CLIENT_ID
valueFrom:
secretKeyRef:
name: azcreds
key: AZ_CLIENT_ID
- name: AZ_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: azcreds
key: AZ_CLIENT_SECRET
- name: AZ_TENANT_ID
valueFrom:
secretKeyRef:
name: azcreds
key: AZ_TENANT_ID
- name: AZ_SP_OBJECT_ID
valueFrom:
secretKeyRef:
name: azcreds
key: AZ_SP_OBJECT_ID
- name: AZ_SUBSCRIPTION_ID
valueFrom:
secretKeyRef:
name: azcreds
key: AZ_SUBSCRIPTION_ID
restartPolicy: Never
backoffLimit: 4