We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2399131 commit 3721b3dCopy full SHA for 3721b3d
2023/aliyun/cronjob.yaml
@@ -0,0 +1,29 @@
1
+kind: CronJob
2
+apiVersion: batch/v1beta1
3
+metadata:
4
+ name: aliyun
5
+ namespace: default
6
+spec:
7
+ schedule: 0 0 * * *
8
+ jobTemplate:
9
+ spec:
10
+ template:
11
12
+ containers:
13
+ - name: aliyun
14
+ image: 'aliyun:security_group'
15
+ env:
16
+ - name: access_key
17
+ valueFrom:
18
+ secretKeyRef:
19
20
+ key: access_key
21
+ - name: access_secret
22
23
24
25
+ key: access_secret
26
+ - name: sg_id
27
+ value: sg-uf63rv61om7cz30diy5x
28
+ imagePullPolicy: IfNotPresent
29
+ restartPolicy: Never
0 commit comments