Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. For configuration, two separate node pools are required with different taints added to each node pool. For more information, refer to Adding taints to Node pool.

Add taints to a node pool

Adding Taints to a New Node Pool (GCP)

...

  1. Follow steps to create a new node pool.

  2. Specify the taints in the Node taints section.

Adding Taints to an Existing Node Pool for GCP

Option 1: Using gcloud Command

  1. List your clusters and node pools to identify the target:
    gcloud container clusters list
    gcloud container node-pools list --cluster CLUSTER_NAME

  2. Update the node pool to add taints:
    gcloud container node-pools update NODE_POOL_NAME \
    --cluster=CLUSTER_NAME \
    --node-taints=KEY=VALUE:NoSchedule 

  3. Replace KEY and VALUE with the required taint details.

  4. Verify the added taints using the kubectl describe nodes
     

Option 2: Using the Google Cloud Console

  1. Go to the GKE Clusters page.

  2. Click your cluster's name.

  3. Navigate to the Node Pools tab.

  4. Click the pencil/edit icon next to the node pool you want to modify.

  5. Add the taints under the Node taints section.

  6. Save the changes.

Additional Notes

If you want to add multiple taints, separate them with commas: --node-taints=KEY1=VALUE1:NoSchedule,KEY2=VALUE2:NoSchedule

Configure Tolerations

After adding taints to Node pool, configure tolerations in the kyvos worker's YAML specification. Tolerations allow pods created by the job to be scheduled on nodes with matching taints.

  1. Login to Kyvos Manager.

  2. Navigate to the Utilities > Manage Configuration Files.

  3. To configure taints as per your requirement, modify the kyvos-compute-worker-job.yaml.template file.

    image-20241230-071032.png
  4. Download the kyvos-compute-worker-job.yaml.template file. In the kyvos-compute-worker-job.yaml.template file, add the below section at the bottom of the file.
    tolerations:
    key: "key1"
    operator: "Equal"
    value: "value1"
    effect: "NoSchedule"Replace KEY and VALUE with the required taint details.

    image-20241231-140531.png
  5. Replace it in the kyvos-compute-worker-job.yaml.template file underthe KYVOSMANAGER_PATH/cloud/gcp/terraform/kyvos-k8s/ section.

...

  1. After configuring the tolerations, navigate to Kyvos and Ecosystem > Compute Cluster and then click Save to reapply the configuration to make it effective.

Add taints to a node pool

Adding Taints to an Existing Node Pool for GCP

Option 1: Using gcloud Command

  1. List your clusters and node pools to identify the target:
    gcloud container clusters list
    gcloud container node-pools list --cluster CLUSTER_NAME

  2. Update the node pool to add taints:
    gcloud container node-pools update NODE_POOL_NAME \
    --cluster=CLUSTER_NAME \
    --node-taints=KEY=VALUE:NoSchedule 

  3. Replace KEY and VALUE with the required taint details.

  4. Verify the added taints using the kubectl describe nodes
     

Option 2: Using the Google Cloud Console

...

Go to the GKE Clusters page.

...

Click your cluster's name.

...

Navigate to the Node Pools tab.

...

Click the pencil/edit icon next to the node pool you want to modify.

...

Add the taints under the Node taints section.

...

  1. .

...

Additional Notes

If you want to add multiple taints, separate them with commas: --node-taints=KEY1=VALUE1:NoSchedule,KEY2=VALUE2:NoSchedule

...