Skip to content

Commit

Permalink
Add instructions on testing metricbeat kubernetes module (#26643) (#2…
Browse files Browse the repository at this point in the history
…6722)

(cherry picked from commit 1862f78)

Co-authored-by: Michael Katsoulis <michaelkatsoulis88@gmail.com>
  • Loading branch information
mergify[bot] and MichaelKatsoulis authored Jul 6, 2021
1 parent aa97be6 commit 18d20b1
Show file tree
Hide file tree
Showing 5 changed files with 467 additions and 213 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
labels:
app: elasticsearch
name: elasticsearch
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: elasticsearch
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: elasticsearch
spec:
containers:
- image: docker.elastic.co/elasticsearch/elasticsearch:8.0.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: elasticsearch
env:
- name: "discovery.type"
value: "single-node"

---
apiVersion: v1
kind: Service
metadata:
labels:
app: elasticsearch
name: elasticsearch
namespace: default
spec:
ports:
- port: 9200
protocol: TCP
targetPort: 9200
selector:
app: elasticsearch
sessionAffinity: None
type: ClusterIP

---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
labels:
app: kibana
name: kibana
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: kibana
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: kibana
spec:
containers:
- image: docker.elastic.co/kibana/kibana:8.0.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: kibana
Loading

0 comments on commit 18d20b1

Please sign in to comment.