Skip to content

Commit 1862f78

Browse files
Add instructions on testing metricbeat kubernetes module (#26643)
1 parent c0341a8 commit 1862f78

5 files changed

Lines changed: 467 additions & 213 deletions

File tree

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
annotations:
5+
deployment.kubernetes.io/revision: "1"
6+
labels:
7+
app: elasticsearch
8+
name: elasticsearch
9+
namespace: default
10+
spec:
11+
replicas: 1
12+
selector:
13+
matchLabels:
14+
app: elasticsearch
15+
strategy:
16+
rollingUpdate:
17+
maxSurge: 25%
18+
maxUnavailable: 25%
19+
type: RollingUpdate
20+
template:
21+
metadata:
22+
labels:
23+
app: elasticsearch
24+
spec:
25+
containers:
26+
- image: docker.elastic.co/elasticsearch/elasticsearch:8.0.0-SNAPSHOT
27+
imagePullPolicy: IfNotPresent
28+
name: elasticsearch
29+
env:
30+
- name: "discovery.type"
31+
value: "single-node"
32+
33+
---
34+
apiVersion: v1
35+
kind: Service
36+
metadata:
37+
labels:
38+
app: elasticsearch
39+
name: elasticsearch
40+
namespace: default
41+
spec:
42+
ports:
43+
- port: 9200
44+
protocol: TCP
45+
targetPort: 9200
46+
selector:
47+
app: elasticsearch
48+
sessionAffinity: None
49+
type: ClusterIP
50+
51+
---
52+
apiVersion: apps/v1
53+
kind: Deployment
54+
metadata:
55+
annotations:
56+
deployment.kubernetes.io/revision: "1"
57+
labels:
58+
app: kibana
59+
name: kibana
60+
namespace: default
61+
spec:
62+
replicas: 1
63+
selector:
64+
matchLabels:
65+
app: kibana
66+
strategy:
67+
rollingUpdate:
68+
maxSurge: 25%
69+
maxUnavailable: 25%
70+
type: RollingUpdate
71+
template:
72+
metadata:
73+
labels:
74+
app: kibana
75+
spec:
76+
containers:
77+
- image: docker.elastic.co/kibana/kibana:8.0.0-SNAPSHOT
78+
imagePullPolicy: IfNotPresent
79+
name: kibana

0 commit comments

Comments
 (0)