opensearch-project / opensearch-k8s-operator

OpenSearch Kubernetes Operator
Apache License 2.0
365 stars 192 forks source link

WIP: Fix bootstrapping with default credentials #816

Open nijave opened 1 month ago

nijave commented 1 month ago

Description

Issues Resolved

759

Check List

If CRDs are changed:

Please refer to the PR guidelines before submitting this pull request.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

nijave commented 1 month ago

With these changes, I'm able to bootstrap a cluster using the following CRD

---
apiVersion: opensearch.opster.io/v1
kind: OpenSearchCluster
metadata:
  name: default-cluster
  namespace: opensearch
spec:
  general:
    # Should also have this plugin @ version https://github.com/Aiven-Open/prometheus-exporter-plugin-for-opensearch/
    version: "2.13.0"
    httpPort: 9200
    vendor: opensearch
    serviceName: opensearch
    monitoring:
     enable: true
    pluginsList: ["repository-s3"]
    setVMMaxMapCount: true
  dashboards:
    version: "2.13.0"
    enable: true
    replicas: 1
    resources:
      requests:
         memory: 256Mi
         cpu: 50m
      limits:
         memory: 1Gi
         cpu: 500m
  confMgmt:
    smartScaler: true
  nodePools:
    - component: masters
      replicas: 3
      diskSize: 4Gi
      nodeSelector:
      resources:
         requests:
            memory: 512Mi
            cpu: 50m
         limits:
            memory: 768Mi
            cpu: 1000m
      roles:
        - master
        - ingest
    - component: nodes
      replicas: 3
      diskSize: 40Gi
      nodeSelector:
      resources:
         requests:
            memory: 1Gi
            cpu: 50m
         limits:
            memory: 2Gi
            cpu: 1000m
      roles:
        - data
yiippee commented 3 weeks ago

Merging is blocked? Any update on this? Thanks.

nijave commented 3 weeks ago

Merging is blocked? Any update on this? Thanks.

I couldn't repro in the CI environment. Not sure why it failed on my cluster (and apparently some other people's)

GitHub Actions CI looks like a standard cluster

yiippee commented 3 weeks ago

I want to generate a random password when opensearch is started, the operator can do that ? Thanks.