Possible to deploy signoz and singoz-k8s-infra hel...
# support
h
Possible to deploy signoz and singoz-k8s-infra helm in a specfic node in k8s?
n
Hey @Hari Krishna you can use Node Selectors or tolerations for deploying on specific nodes
h
I get this error when i try to run signoz in a specific node. Also zookeeper is not installed in this node?
Copy code
minikube start --driver=docker --cpus=5 --memory=5G --nodes=2
minikube addons enable metrics-server
kubectl label node minikube-m02 dedicated=signoz
kubectl taint nodes minikube-m02 dedicated=signoz:NoSchedule
Copy code
global:
  storageClass: standard

## === SIGNOZ CORE ===
signoz:
  nodeSelector:
    dedicated: signoz
  tolerations:
    - key: dedicated
      operator: Equal
      value: signoz
      effect: NoSchedule

## === CLICKHOUSE ===
clickhouse:
  installCustomStorageClass: true
  nodeSelector:
    dedicated: signoz
  tolerations:
    - key: dedicated
      operator: Equal
      value: signoz
      effect: NoSchedule      

  ## === CLICKHOUSE OPERATOR ===
  clickhouseOperator:
    nodeSelector:
      dedicated: signoz
    tolerations:
      - key: dedicated
        operator: Equal
        value: signoz
        effect: NoSchedule

## === SCHEMA MIGRATOR ===
schemaMigrator:
  nodeSelector:
    dedicated: signoz
  tolerations:
    - key: dedicated
      operator: Equal
      value: signoz
      effect: NoSchedule

## === OTEL COLLECTOR ===
otelCollector:
  nodeSelector:
    dedicated: signoz
  tolerations:
    - key: dedicated
      operator: Equal
      value: signoz
      effect: NoSchedule
@Nagesh Bansal / @nitya-signoz Any idea how to resolve this?
n
Hey @Hari Krishna let me take a look at this
Hey @Hari Krishna, for adding nodeSelector and toleration, could you please add them in zookeeper itself - you've added them in clickhouse and other signoz components https://github.com/SigNoz/charts/blob/66157bccf9fac809d57b082d141960058be789e3/charts/signoz/values.yaml#L44
h
So, where and all should i add the nodeSelectros and toleration for all signoz components to be deployed on a specific node?
n
Everything else is accurate; just include the node selector and tolerations for Zookeeper in the Zookeeper section (as mentioned in the URL).
h
Copy code
global:
  storageClass: standard


## === SIGNOZ CORE ===
signoz:
  nodeSelector:
    dedicated: signoz
  tolerations:
    - key: dedicated
      operator: Equal
      value: signoz
      effect: NoSchedule

## === CLICKHOUSE ===
clickhouse:
  installCustomStorageClass: true
  nodeSelector:
    dedicated: signoz
  tolerations:
    - key: dedicated
      operator: Equal
      value: signoz
      effect: NoSchedule

  ## === ZOOKEEPER ===
  zookeeper:
    nodeSelector:
      dedicated: signoz
    tolerations:
      - key: dedicated
        operator: Equal
        value: signoz
        effect: NoSchedule  

  ## === CLICKHOUSE OPERATOR ===
  clickhouseOperator:
    nodeSelector:
      dedicated: signoz
    tolerations:
      - key: dedicated
        operator: Equal
        value: signoz
        effect: NoSchedule

## === SCHEMA MIGRATOR ===
schemaMigrator:
  nodeSelector:
    dedicated: signoz
  tolerations:
    - key: dedicated
      operator: Equal
      value: signoz
      effect: NoSchedule

## === OTEL COLLECTOR ===
otelCollector:
  nodeSelector:
    dedicated: signoz
  tolerations:
    - key: dedicated
      operator: Equal
      value: signoz
      effect: NoSchedule
n
can you get me the storageclasses you're using by running:
Copy code
kubectl get storageclasses
It happens sometimes - I would recommend you to restart the pods and it should fix itself
h
Copy code
kubectl get storageclass
NAME                 PROVISIONER                RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
standard (default)   <http://k8s.io/minikube-hostpath|k8s.io/minikube-hostpath>   Delete          Immediate           true                   37h
I tried and its still the same
This works without any nodeSelectors and tolerations in minikube though
n
nodeSelectors and toleration shouldn't create a problem like this unless the minikube is having problem with assigning volumes
ClickHouse is not able to run because Zookeeper is not up
h
It worked in GKE.
n
Great!! not sure about what went wrong with minikube