apiVersion: apps/v1
kind: Deployment
metadata: 
  namespace: logistics-base-ns
  name: kibana-deploy
  labels:
    name: kibana-deploy
    app: logistics-app
    tier: base
spec:
  selector:
    matchLabels:
      name: kibana-pod
      app: logistics-app
      tier: base
  template:
    metadata:
      namespace: logistics-base-ns
      name: kibana-pod
      labels:
        name: kibana-pod
        app: logistics-app
        tier: base
    spec:
      containers:
        - name: kibana
          image: kibana:7.8.1
          env:
            - name: ELASTICSEARCH_HOSTS
              value: 'http://elasticsearch-service:9200'
          ports:
            - containerPort: 5601