open-cluster-management-io / policy-collection

A collection of policy examples for Open Cluster Management
Apache License 2.0
208 stars 248 forks source link

OpenShiftPlus-PolicySet should also have a policy to configure search #462

Open ch-stark opened 6 months ago

ch-stark commented 6 months ago

if you check: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.9/html-single/observability/index#searching-in-the-console-intro

goals

  1. raise awareness of feature
  2. give some good defaults
  3. raise awareness of configuration-options and needs
apiVersion: search.open-cluster-management.io/v1alpha1
kind: Search
metadata:
  name: search-v2-operator
  namespace: open-cluster-management
spec:
  deployments:
    collector:
      resources:
        limits:
          cpu: 500m
          memory: 128Mi
        requests:
          cpu: 250m
          memory: 64Mi
    indexer:
      replicaCount: 3
    database:
        envVar:
          - name: POSTGRESQL_EFFECTIVE_CACHE_SIZE
            value: 1024MB
          - name: POSTGRESQL_SHARED_BUFFERS
            value: 512MB
          - name: WORK_MEM
            value: 128MB
    queryapi:
      arguments: 
      - -v=3
ch-stark commented 6 months ago

cc @berenss if you agree

berenss commented 6 months ago

I think this is a great idea. @SherinV and @jpadilla would you please review and share your comment? cc @bjoydeep