Describe the issue:
Setting up Opensearch on k8s environment with Opensearch-Operator approach.
Setup of Operator via helm
Setup of Opensearch-cluster by applying yaml file
I would need to disable TLS on opensearch as I am using Istio approach. I am able to disable Opensearch Dashboards, however not getting right configuration to be able to disable Opensearch anywhere. I tried with below configuration, however it failed with an unknown field error.
Error:
error: error validating "opensearch-cluster-extension-oidc.yaml": error validating data: [ValidationError(OpenSearchCluster.spec.security.config): unknown field "securityDisabled" in io.opster.opensearch.v1.OpenSearchCluster.spec.security.config, ValidationError(OpenSearchCluster.spec.security.tls.http): unknown field "enable" in io.opster.opensearch.v1.OpenSearchCluster.spec.security.tls.http]; if you choose to ignore these errors, turn validation off with --validate=false
Configuration:
#Minimal configuration of a cluster with version 2.X of the operator.
#Note the replacement of 'master' role with 'cluster_manager' on line 49
apiVersion: opensearch.opster.io/v1
kind: OpenSearchCluster
metadata:
name: opensearch
namespace: cloudmonitor
spec:
security:
config:
securityDisabled: true
tls:
http:
generate: false
enable: false
transport:
generate: false
perNode: false
enable: false
general:
setVMMaxMapCount: false
httpPort: 9200
serviceName: opensearch
version: 2.14.0
pluginsList: ["repository-s3"]
drainDataNodes: true
dashboards:
annotations:
traffic.sidecar.istio.io/includeInboundPorts: "*"
traffic.sidecar.istio.io/excludeOutboundPorts: "9200,9300"
traffic.sidecar.istio.io/excludeInboundPorts: "9200,9300"
tls:
enable: false
generate: true
version: 2.14.0
enable: true
replicas: 1
resources:
requests:
memory: "512Mi"
cpu: "200m"
limits:
memory: "512Mi"
cpu: "200m"
nodePools:
- component: masters
Relevant Logs or Screenshots:
error: error validating "opensearch-cluster-extension-oidc.yaml": error validating data: [ValidationError(OpenSearchCluster.spec.security.config): unknown field "securityDisabled" in io.opster.opensearch.v1.OpenSearchCluster.spec.security.config, ValidationError(OpenSearchCluster.spec.security.tls.http): unknown field "enable" in io.opster.opensearch.v1.OpenSearchCluster.spec.security.tls.http]; if you choose to ignore these errors, turn validation off with --validate=false
@Eugene7
We are integrating Istio Service mesh, with tls enabled to false on Opensearch Dashboards, creating ingress on istio-system namespace, we were successful. However, when we browse Opensearch, it fails with an TLS error. Which is why I thought of disabling tls for opensearch and try it out.
I could not find anywhere with those options enable: false option for transport and http layers. I was trying with this approach similar to opensearch dashboards and it complains data: [ValidationError]
I tried removing both option one after the other,
With securityDisabled removal,
error: error validating "opensearch-cluster-extension-oidc.yaml": error validating data: [ValidationError(OpenSearchCluster.spec.security.tls.http): unknown field "enable" in io.opster.opensearch.v1.OpenSearchCluster.spec.security.tls.http, ValidationError(OpenSearchCluster.spec.security.tls.transport): unknown field "enable" in io.opster.opensearch.v1.OpenSearchCluster.spec.security.tls.transport]; if you choose to ignore these errors, turn validation off with --validate=false
With transport and http
error: error validating "opensearch-cluster-extension-oidc.yaml": error validating data: [ValidationError(OpenSearchCluster.spec.security.tls.http): unknown field "enable" in io.opster.opensearch.v1.OpenSearchCluster.spec.security.tls.http, ValidationError(OpenSearchCluster.spec.security.tls.transport): unknown field "enable" in io.opster.opensearch.v1.OpenSearchCluster.spec.security.tls.transport]; if you choose to ignore these errors, turn validation off with --validate=false