Skip to content

Commit 6390fbc

Browse files
Create sonobuoy.yaml
1 parent 62ac275 commit 6390fbc

File tree

1 file changed

+233
-0
lines changed

1 file changed

+233
-0
lines changed

sonobuoy.yaml

+233
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
---
2+
apiVersion: v1
3+
kind: Namespace
4+
metadata:
5+
name: heptio-sonobuoy
6+
---
7+
apiVersion: v1
8+
kind: ServiceAccount
9+
metadata:
10+
labels:
11+
component: sonobuoy
12+
name: sonobuoy-serviceaccount
13+
namespace: heptio-sonobuoy
14+
---
15+
apiVersion: rbac.authorization.k8s.io/v1beta1
16+
kind: ClusterRoleBinding
17+
metadata:
18+
labels:
19+
component: sonobuoy
20+
name: sonobuoy-serviceaccount
21+
roleRef:
22+
apiGroup: rbac.authorization.k8s.io
23+
kind: ClusterRole
24+
name: sonobuoy-serviceaccount
25+
subjects:
26+
- kind: ServiceAccount
27+
name: sonobuoy-serviceaccount
28+
namespace: heptio-sonobuoy
29+
---
30+
apiVersion: rbac.authorization.k8s.io/v1beta1
31+
kind: ClusterRole
32+
metadata:
33+
labels:
34+
component: sonobuoy
35+
name: sonobuoy-serviceaccount
36+
namespace: heptio-sonobuoy
37+
rules:
38+
- apiGroups:
39+
- '*'
40+
resources:
41+
- '*'
42+
verbs:
43+
- '*'
44+
---
45+
apiVersion: v1
46+
data:
47+
config.json: |
48+
{
49+
"Description": "sonobuoy run for scanner.heptio.com",
50+
"Filters": {
51+
"LabelSelector": "",
52+
"Namespaces": ".*"
53+
},
54+
"PluginNamespace": "heptio-sonobuoy",
55+
"Plugins": [
56+
{
57+
"name": "e2e"
58+
}
59+
],
60+
"Resources": [
61+
"Nodes",
62+
"ServerVersion"
63+
],
64+
"ResultsDir": "/tmp/sonobuoy",
65+
"Server": {
66+
"advertiseaddress": "sonobuoy-master:8080",
67+
"bindaddress": "0.0.0.0",
68+
"bindport": 8080,
69+
"timeoutseconds": 5400
70+
},
71+
"Version": "v0.10.0"
72+
}
73+
kind: ConfigMap
74+
metadata:
75+
labels:
76+
component: sonobuoy
77+
name: sonobuoy-config-cm
78+
namespace: heptio-sonobuoy
79+
---
80+
apiVersion: v1
81+
data:
82+
e2e.tmpl: |
83+
apiVersion: v1
84+
kind: Pod
85+
metadata:
86+
annotations:
87+
sonobuoy-driver: Job
88+
sonobuoy-plugin: e2e
89+
sonobuoy-result-type: e2e
90+
labels:
91+
component: sonobuoy
92+
sonobuoy-run: '{{.SessionID}}'
93+
tier: analysis
94+
name: sonobuoy-e2e-job-{{.SessionID}}
95+
namespace: '{{.Namespace}}'
96+
spec:
97+
containers:
98+
- env:
99+
- name: E2E_FOCUS
100+
value: Conformance
101+
image: gcr.io/heptio-images/kube-conformance:v1.8
102+
imagePullPolicy: Always
103+
name: e2e
104+
volumeMounts:
105+
- mountPath: /tmp/results
106+
name: results
107+
readOnly: false
108+
- command:
109+
- sh
110+
- -c
111+
- /sonobuoy worker global -v 5 --logtostderr
112+
env:
113+
- name: NODE_NAME
114+
valueFrom:
115+
fieldRef:
116+
fieldPath: spec.nodeName
117+
- name: RESULTS_DIR
118+
value: /tmp/results
119+
- name: MASTER_URL
120+
value: '{{.MasterAddress}}'
121+
- name: RESULT_TYPE
122+
value: e2e
123+
image: gcr.io/heptio-images/sonobuoy:v0.10.0
124+
imagePullPolicy: Always
125+
name: sonobuoy-worker
126+
volumeMounts:
127+
- mountPath: /tmp/results
128+
name: results
129+
readOnly: false
130+
restartPolicy: Never
131+
serviceAccountName: sonobuoy-serviceaccount
132+
tolerations:
133+
- effect: NoSchedule
134+
key: node-role.kubernetes.io/master
135+
operator: Exists
136+
- key: CriticalAddonsOnly
137+
operator: Exists
138+
volumes:
139+
- emptyDir: {}
140+
name: results
141+
kind: ConfigMap
142+
metadata:
143+
labels:
144+
component: sonobuoy
145+
name: sonobuoy-plugins-cm
146+
namespace: heptio-sonobuoy
147+
---
148+
apiVersion: v1
149+
kind: Pod
150+
metadata:
151+
labels:
152+
component: sonobuoy
153+
run: sonobuoy-master
154+
tier: analysis
155+
name: sonobuoy
156+
namespace: heptio-sonobuoy
157+
spec:
158+
containers:
159+
- env:
160+
- name: SONOBUOY_ADVERTISE_IP
161+
valueFrom:
162+
fieldRef:
163+
fieldPath: status.podIP
164+
image: gcr.io/heptio-images/sonobuoy:v0.10.0
165+
imagePullPolicy: Always
166+
name: kube-sonobuoy
167+
volumeMounts:
168+
- mountPath: /etc/sonobuoy
169+
name: sonobuoy-config-volume
170+
- mountPath: /plugins.d
171+
name: sonobuoy-plugins-volume
172+
- mountPath: /tmp/sonobuoy
173+
name: sonobuoy-output
174+
- env:
175+
- name: READ_RESULTS_DIR
176+
value: /tmp/sonobuoy
177+
- name: WRITE_RESULTS_DIR
178+
value: /tmp/forwarder
179+
- name: HEPTIO_TOKEN
180+
value: "f5a37c8017782c1581f040e911dc5461"
181+
- name: CLOUD_URL
182+
value: https://scanner.heptio.com
183+
image: gcr.io/heptio-images/scanner-forwarder:v0.0.4
184+
imagePullPolicy: Always
185+
name: forwarder
186+
volumeMounts:
187+
- mountPath: /tmp/sonobuoy
188+
name: sonobuoy-output
189+
- mountPath: /tmp/forwarder
190+
name: forwarder-output
191+
- env:
192+
- name: NAMESPACE
193+
valueFrom:
194+
fieldRef:
195+
fieldPath: metadata.namespace
196+
- name: READ_RESULTS_DIR
197+
value: /tmp/forwarder
198+
image: gcr.io/heptio-images/namespace-deleter:v0.0.1
199+
imagePullPolicy: Always
200+
name: cleanup
201+
volumeMounts:
202+
- mountPath: /tmp/forwarder
203+
name: forwarder-output
204+
restartPolicy: Never
205+
serviceAccountName: sonobuoy-serviceaccount
206+
volumes:
207+
- configMap:
208+
name: sonobuoy-config-cm
209+
name: sonobuoy-config-volume
210+
- configMap:
211+
name: sonobuoy-plugins-cm
212+
name: sonobuoy-plugins-volume
213+
- emptyDir: {}
214+
name: sonobuoy-output
215+
- emptyDir: {}
216+
name: forwarder-output
217+
---
218+
apiVersion: v1
219+
kind: Service
220+
metadata:
221+
labels:
222+
component: sonobuoy
223+
run: sonobuoy-master
224+
name: sonobuoy-master
225+
namespace: heptio-sonobuoy
226+
spec:
227+
ports:
228+
- port: 8080
229+
protocol: TCP
230+
targetPort: 8080
231+
selector:
232+
run: sonobuoy-master
233+
type: ClusterIP

0 commit comments

Comments
 (0)