mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
43 lines
769 B
YAML
43 lines
769 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: kibana
|
|
labels:
|
|
app: kibana
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: kibana
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: kibana
|
|
spec:
|
|
containers:
|
|
- name: kibana
|
|
image: kibana:7.9.1
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 5601
|
|
env:
|
|
- name: ELASTICSEARCH_URL
|
|
value: "http://elasticsearch:9200"
|
|
- name: ELASTICSEARCH_HOSTS
|
|
value: "http://elasticsearch:9200"
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: kibana
|
|
labels:
|
|
app: kibana
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: kibana
|
|
ports:
|
|
- protocol: TCP
|
|
name: http
|
|
port: 5601
|
|
targetPort: 5601 |