-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsKubernetesPod.yaml
110 lines (106 loc) · 2.3 KB
/
JenkinsKubernetesPod.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
apiVersion: v1
kind: Pod
metadata:
name: terraform-modules
spec:
nodeSelector:
spot: "true"
containers:
- name: jnlp
image: 12345678910.dkr.ecr.us-east-1.amazonaws.com/kubernetes-agent:1.1
tty: true
env:
- name: CONTAINER_ENV_VAR
value: jnlp
workingDir: /home/jenkins
resources:
limits:
cpu: 800m
memory: 1Gi
requests:
cpu: 500m
memory: 500Mi
- name: node
image: node:16.12.0-alpine3.14
command:
- sleep
args:
- 99d
tty: true
env:
- name: CONTAINER_ENV_VAR
value: node
workingDir: /home/jenkins
resources:
limits:
cpu: 1500m
memory: 1.5Gi
requests:
cpu: 500m
memory: 500Mi
- name: terraform
image: hashicorp/terraform:1.0.9
command:
- sleep
args:
- 99d
tty: true
env:
- name: CONTAINER_ENV_VAR
value: terraform
workingDir: /home/jenkins
resources:
limits:
cpu: 1500m
memory: 1.5Gi
requests:
cpu: 500m
memory: 500Mi
- name: linter
image: github/super-linter:slim-v4
command:
- sleep
args:
- 99d
tty: true
env:
- name: CONTAINER_ENV_VAR
value: linter
- name: IGNORE_GITIGNORED_FILES
value: "true"
- name: RUN_LOCAL
value: "true"
- name: VALIDATE_ALL_CODEBASE
value: "false"
- name: VALIDATE_JSCPD
value: "false"
- name: VALIDATE_KUBERNETES_KUBEVAL
value: "false"
- name: VALIDATE_NATURAL_LANGUAGE
value: "false"
workingDir: /home/jenkins
resources:
limits:
cpu: 1500m
memory: 1.5Gi
requests:
cpu: 500m
memory: 500Mi
- name: terraform-docs
image: quay.io/terraform-docs/terraform-docs:0.16.0
command:
- sleep
args:
- 99d
tty: true
env:
- name: CONTAINER_ENV_VAR
value: terraform-docs
workingDir: /home/jenkins
resources:
limits:
cpu: 1500m
memory: 1.5Gi
requests:
cpu: 500m
memory: 500Mi