apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    role: kibana
  name: kibana
spec:
  replicas: 1
  selector:
    matchLabels:
        role: kibana
  template:
    metadata:
      labels:
        role: kibana
    spec:
      containers:
      - name: kibana
        image: docker.elastic.co/kibana/kibana:5.6.3
        command: [ "/bin/bash", "-c", "/usr/share/kibana/bin/kibana-plugin remove x-pack; /usr/local/bin/kibana-docker" ]
        env:
        - name: CLUSTER_NAME
          value: "docker-cluster"
        - name: ELASTIC_SEARCH_URL
          value: "http://elasticsearch:9200"
        - name: ELASTICSEARCH_USERNAME
          value: "elastic"
        - name: ELASTICSEARCH_PASSWORD
          value: "changeme"
        - name: XPACK_MONITORING_ENABLED
          value: "false"
        - name: XPACK_SECURITY_ENABLED
          value: "false"
        - name: XPACK_ML_ENABLED
          value: "false"
        - name: XPACK_GRAPH_ENABLED
          value: "false"
        - name: XPACK_REPORTING_ENABLED
          value: "false"
        - name: XPACK_GROKDEBUGGER_ENABLED
          value: "false"
        ports:
        - containerPort: 5601
