48 lines
804 B
YAML
48 lines
804 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: kibana
|
||
|
namespace: logging
|
||
|
labels:
|
||
|
app: kibana
|
||
|
spec:
|
||
|
ports:
|
||
|
- port: 5601
|
||
|
nodePort: 30011
|
||
|
type: NodePort
|
||
|
selector:
|
||
|
app: kibana
|
||
|
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: kibana
|
||
|
namespace: logging
|
||
|
labels:
|
||
|
app: kibana
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: kibana
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: kibana
|
||
|
spec:
|
||
|
nodeSelector:
|
||
|
es: log
|
||
|
containers:
|
||
|
- name: kibana
|
||
|
image: docker.elastic.co/kibana/kibana:7.6.2
|
||
|
# resources:
|
||
|
# limits:
|
||
|
# cpu: 100m
|
||
|
# requests:
|
||
|
# cpu: 100m
|
||
|
env:
|
||
|
- name: ELASTICSEARCH_HOSTS
|
||
|
value: http://elasticsearch:9200
|
||
|
ports:
|
||
|
- containerPort: 5601
|