Files
telecom-platform/deployments/elk-stack/kibana.yaml
T
nutcas3 9034337524 feat: Add ELK stack deployment with Elasticsearch cluster, Kibana UI, and Logstash pipeline for telecom platform logging
- Add elasticsearch namespace with logging component labels and telecom-platform integration
- Add Elasticsearch StatefulSet with 3 master node replicas, cluster name telecom-platform-logs
- Add initContainers for vm.max_map_count and file descriptor limit configuration with privileged security context
- Add Elasticsearch 8.10.0 container with 9200 REST and 9300 inter-node ports, 1Gi-2
2026-04-17 17:21:44 +03:00

107 lines
2.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: kibana
namespace: elasticsearch
labels:
app.kubernetes.io/name: kibana
app.kubernetes.io/component: logging
app.kubernetes.io/part-of: telecom-platform
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: kibana
app.kubernetes.io/component: logging
app.kubernetes.io/part-of: telecom-platform
template:
metadata:
labels:
app.kubernetes.io/name: kibana
app.kubernetes.io/component: logging
app.kubernetes.io/part-of: telecom-platform
spec:
containers:
- name: kibana
image: docker.elastic.co/kibana/kibana:8.10.0
ports:
- containerPort: 5601
name: ui
env:
- name: ELASTICSEARCH_HOSTS
value: "http://elasticsearch-master:9200"
- name: SERVER_NAME
value: kibana
- name: SERVER_HOST
value: "0.0.0.0"
- name: SERVER_PORT
value: "5601"
- name: SERVER_PUBLICBASEURL
value: "http://kibana.telecom.local:5601"
- name: LOGGING_ROOT_LEVEL
value: "info"
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
livenessProbe:
httpGet:
path: /api/status
port: ui
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /api/status
port: ui
initialDelaySeconds: 5
periodSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
name: kibana
namespace: elasticsearch
labels:
app.kubernetes.io/name: kibana
app.kubernetes.io/component: logging
app.kubernetes.io/part-of: telecom-platform
spec:
ports:
- port: 5601
name: ui
targetPort: 5601
selector:
app.kubernetes.io/name: kibana
app.kubernetes.io/component: logging
app.kubernetes.io/part-of: telecom-platform
type: ClusterIP
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: kibana
namespace: elasticsearch
labels:
app.kubernetes.io/name: kibana
app.kubernetes.io/component: logging
app.kubernetes.io/part-of: telecom-platform
spec:
hosts:
- kibana.telecom.local
gateways:
- telecom-platform-gateway
http:
- match:
- uri:
prefix: /
route:
- destination:
host: kibana
port:
number: 5601
timeout: 30s