apiVersion: v1
kind: Service
metadata:
  name: opensearch-dashboards
spec:
  ports:
  - name: "5601"
    port: 5601
    targetPort: 5601
  selector:
    app.kubernetes.io/name: opensearch-dashboards
    app.kubernetes.io/part-of: opensearch
