File tree Expand file tree Collapse file tree 1 file changed +85
-0
lines changed Expand file tree Collapse file tree 1 file changed +85
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ kind : ConfigMap
3
+ metadata :
4
+ name : metrics
5
+ namespace : test-kafka
6
+ apiVersion : v1
7
+ data :
8
+
9
+ curl-format.txt : |-
10
+ \n
11
+ # ### curl stats ###\n
12
+ time_namelookup: %{time_namelookup}\n
13
+ time_connect: %{time_connect}\n
14
+ time_appconnect: %{time_appconnect}\n
15
+ time_pretransfer: %{time_pretransfer}\n
16
+ time_redirect: %{time_redirect}\n
17
+ time_starttransfer: %{time_starttransfer}\n
18
+ \n
19
+ time_total: %{time_total}\n
20
+ \n
21
+ http_code: %{http_code}\n
22
+ content_type: %{content_type}\n
23
+ size_download: %{size_download}\n
24
+
25
+ setup.sh : |-
26
+ touch /tmp/testlog
27
+ tail -f /tmp/testlog
28
+
29
+ continue.sh : |-
30
+ exit 0
31
+
32
+ run.sh : |-
33
+ exec >> /tmp/testlog
34
+ exec 2>&1
35
+
36
+ curl -w "@/test/curl-format.txt" -s --fail-early --max-time $MAX_RESPONSE_TIME http://kafka-0.broker.kafka.svc.cluster.local:5556/metrics
37
+
38
+ exit 0
39
+
40
+ ---
41
+ apiVersion : apps/v1beta1
42
+ kind : Deployment
43
+ metadata :
44
+ name : metrics
45
+ namespace : test-kafka
46
+ spec :
47
+ replicas : 1
48
+ template :
49
+ metadata :
50
+ labels :
51
+ test-target : kafka
52
+ test-type : readiness
53
+ spec :
54
+ containers :
55
+ - name : testcase
56
+ image : solsson/curl@sha256:8c0c5d669b3dd67932da934024252af59fb9d0fa0e5118b5a737b35c5e1487bf
57
+ env :
58
+ - name : MAX_RESPONSE_TIME
59
+ value : " 5"
60
+ # Test set up
61
+ command :
62
+ - /bin/bash
63
+ - -e
64
+ - /test/setup.sh
65
+ # Test run, again and again
66
+ readinessProbe :
67
+ exec :
68
+ command :
69
+ - /bin/bash
70
+ - -e
71
+ - /test/run.sh
72
+ # Test quit on nonzero exit
73
+ livenessProbe :
74
+ exec :
75
+ command :
76
+ - /bin/bash
77
+ - -e
78
+ - /test/continue.sh
79
+ volumeMounts :
80
+ - name : config
81
+ mountPath : /test
82
+ volumes :
83
+ - name : config
84
+ configMap :
85
+ name : metrics
You can’t perform that action at this time.
0 commit comments