You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.4 KiB

  1. ---
  2. # https://raw.githubusercontent.com/kubernetes/kubernetes/v1.5.2/cluster/addons/fluentd-kibana/kibana-controller.yaml
  3. apiVersion: extensions/v1beta1
  4. kind: Deployment
  5. metadata:
  6. name: kibana-logging
  7. namespace: "{{ system_namespace }}"
  8. labels:
  9. k8s-app: kibana-logging
  10. kubernetes.io/cluster-service: "true"
  11. spec:
  12. replicas: 1
  13. selector:
  14. matchLabels:
  15. k8s-app: kibana-logging
  16. template:
  17. metadata:
  18. labels:
  19. k8s-app: kibana-logging
  20. spec:
  21. containers:
  22. - name: kibana-logging
  23. image: "{{ kibana_image_repo }}:{{ kibana_image_tag }}"
  24. resources:
  25. # keep request = limit to keep this container in guaranteed class
  26. limits:
  27. cpu: {{ kibana_cpu_limit }}
  28. {% if kibana_mem_limit is defined and kibana_mem_limit != "0M" %}
  29. mem: {{ kibana_mem_limit }}
  30. {% endif %}
  31. requests:
  32. cpu: {{ kibana_cpu_requests }}
  33. {% if kibana_mem_requests is defined and kibana_mem_requests != "0M" %}
  34. mem: {{ kibana_mem_requests }}
  35. {% endif %}
  36. env:
  37. - name: "ELASTICSEARCH_URL"
  38. value: "http://elasticsearch-logging:{{ elasticsearch_service_port }}"
  39. {% if kibana_base_url is defined and kibana_base_url != "" %}
  40. - name: "KIBANA_BASE_URL"
  41. value: "{{ kibana_base_url }}"
  42. {% endif %}
  43. ports:
  44. - containerPort: 5601
  45. name: ui
  46. protocol: TCP