kibana-deployment.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: kibana-logging
  5. namespace: logging
  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. spec:
  19. securityContext:
  20. seccompProfile:
  21. type: RuntimeDefault
  22. containers:
  23. - name: kibana-logging
  24. image: registry.cn-beijing.aliyuncs.com/dotbalo/kibana-oss:7.10.2
  25. resources:
  26. # need more cpu upon initialization, therefore burstable class
  27. limits:
  28. cpu: 1000m
  29. requests:
  30. cpu: 100m
  31. env:
  32. - name: ELASTICSEARCH_HOSTS
  33. value: http://elasticsearch-logging:9200
  34. - name: SERVER_NAME
  35. value: kibana-logging
  36. - name: SERVER_BASEPATH
  37. value: "/kibana"
  38. - name: SERVER_REWRITEBASEPATH
  39. value: "true"
  40. ports:
  41. - containerPort: 5601
  42. name: ui
  43. protocol: TCP
  44. livenessProbe:
  45. httpGet:
  46. path: /kibana/api/status
  47. port: ui
  48. initialDelaySeconds: 5
  49. timeoutSeconds: 10
  50. readinessProbe:
  51. httpGet:
  52. path: /kibana/api/status
  53. port: ui
  54. initialDelaySeconds: 5
  55. timeoutSeconds: 10