Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OpenSearch: 2.8.0
OpenSearchDashboards: 2.8.0
Describe the issue:
I am attempting to deploy a scaling cluster using OpenSearch Operator & OpenSearch Cluster Helm charts.
I have managed to get the deployment of both working, but when attempting to access the OpenSearch Dashboard I get a 404 Error.
K8s Ingress & Service: Nginx ingress & following service seem to be working fine, certificates are all good & valid.
Pod Logs: When I try to access the dashboard the pod logs a get404 response for my request, so traffic is getting to the pod.
Configuration:
Ansible file managing the Helm install:
- name: Install required Helm packages
hosts: localhost
gather_facts: false
connection: local
tasks:
- name: Add Opensearch Operator Helm repo
kubernetes.core.helm_repository:
binary_path: ~/bin/helm
repo_name: opensearch-operator
repo_url: https://opensearch-project.github.io/opensearch-k8s-operator/
state: present
- name: Install Opensearch Operator
kubernetes.core.helm:
binary_path: ~/bin/helm
release_name: opensearch-cluster
release_namespace: opensearch
chart_ref: opensearch-operator/opensearch-cluster
update_repo_cache: yes
wait: yes
# For referance this is just the contents of a values.yml
# https://github.com/opensearch-project/opensearch-k8s-operator/blob/main/charts/opensearch-cluster/values.yaml
values:
opensearchCluster:
general:
serviceName: "opensearch-cluster"
httpPort: 9200
version: 2.8.0
setVMMaxMapCount: true
dashboards:
enable: true
version: 2.8.0
replicas: 1
basePath: "/opensearch-dashboards"
nodePools:
- component: masters
replicas: 2
roles: # The roles the nodes should have
- "cluster_manager"
- "data"
persistence:
pvc:
storageClass: opensearch
accessModes:
- ReadWriteMany
- component: nodes
replicas: 2
roles:
- "data"
security:
config:
securityConfigSecret:
name: opensearch-security-config
tls: # Everything related to TLS configuration. OpenSearch will not automatically renew these certifiactes.
transport: # Configuration of the transport endpoint
generate: true # Have the operator generate and sign certificates
perNode: true # Separate certificate per node
http: # Configuration of the HTTP endpoint
generate: true # Have the Operator generate and sign certificates
Relevant Logs or Screenshots: