opensearch-dashboards-deployment.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: opensearch-dashboards
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: opensearch-dashboards
  9. app.kubernetes.io/part-of: opensearch
  10. template:
  11. metadata:
  12. labels:
  13. app.kubernetes.io/name: opensearch-dashboards
  14. app.kubernetes.io/part-of: opensearch
  15. spec:
  16. hostAliases:
  17. - ip: "192.168.25.3"
  18. hostnames:
  19. - "node-0.example.com"
  20. containers:
  21. - env:
  22. - name: OPENSEARCH_HOSTS
  23. value: '["https://node-0.example.com:9200"]'
  24. image: opensearchproject/opensearch-dashboards:1.2.0
  25. name: opensearch-dashboards
  26. ports:
  27. - containerPort: 5601
  28. resources:
  29. limits:
  30. cpu: 1
  31. memory: 256Mi
  32. requests:
  33. cpu: 5m
  34. memory: 150Mi
  35. volumeMounts:
  36. - mountPath: /usr/share/opensearch-dashboards/config/opensearch_dashboards.yml
  37. subPath: opensearch_dashboards.yml
  38. name: configuration
  39. readOnly: true
  40. volumes:
  41. - name: configuration
  42. configMap:
  43. name: opensearch-dashboards