kibana.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: kibana-logging
  5. namespace: public-service
  6. labels:
  7. k8s-app: kibana-logging
  8. addonmanager.kubernetes.io/mode: Reconcile
  9. spec:
  10. replicas: 1
  11. selector:
  12. matchLabels:
  13. k8s-app: kibana-logging
  14. template:
  15. metadata:
  16. labels:
  17. k8s-app: kibana-logging
  18. annotations:
  19. seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
  20. spec:
  21. containers:
  22. - name: kibana-logging
  23. image: docker.elastic.co/kibana/kibana-oss:7.2.0
  24. resources:
  25. # need more cpu upon initialization, therefore burstable class
  26. limits:
  27. cpu: 1000m
  28. requests:
  29. cpu: 100m
  30. env:
  31. - name: ELASTICSEARCH_HOSTS
  32. value: http://elasticsearch-logging:9200
  33. - name: SERVER_NAME
  34. value: kibana-logging
  35. - name: SERVER_BASEPATH
  36. value: /api/v1/namespaces/kube-system/services/kibana-logging/proxy
  37. - name: SERVER_REWRITEBASEPATH
  38. value: "false"
  39. ports:
  40. - containerPort: 5601
  41. name: ui
  42. protocol: TCP
  43. livenessProbe:
  44. httpGet:
  45. path: /api/status
  46. port: ui
  47. initialDelaySeconds: 5
  48. timeoutSeconds: 10
  49. readinessProbe:
  50. httpGet:
  51. path: /api/status
  52. port: ui
  53. initialDelaySeconds: 5
  54. timeoutSeconds: 10