使用 Kubernetes 容忍度

如要使用 Kubernetes 的 Taints and Tolerations 功能,您必須為每個 Apigee Hybrid 元件定義 tolerations 覆寫屬性。下列元件支援定義容許度:

  • ao
  • apigeeIngressGateway
  • cassandra
  • cassandraSchemaSetup
  • cassandraSchemaValidation
  • cassandraUserSetup
  • connectAgent
  • istiod
  • logger
  • mart
  • metrics
  • mintTaskScheduler
  • redis
  • runtime
  • synchronizer
  • udca
  • Watcher

如要進一步瞭解這些元件,請參閱 設定屬性參考資料

如要將容許度套用至個別元件,請在覆寫檔案中新增 tolerations: 設定屬性,然後升級元件的 Helm chart。

如需管理各混合式元件的 Helm 資訊套件清單,請參閱 Apigee Helm 資訊套件參考資料

舉例來說,如要將容許度套用至 Apigee 運算子部署作業,請執行下列步驟:

  1. 在覆寫檔案中,將 tolerations: 屬性新增至 ao:
    ao:
      tolerations:
      - key: "key1"
        operator: "Equal"
        value: "value1"
        effect: "NoExecute"
        tolerationSeconds: 3600
  2. 將變更套用至 apigee-operator 圖表:
    helm upgrade operator apigee-operator/ \
      --install \
      --create-namespace \
      --namespace apigee-system \
      --atomic \
      -f overrides.yaml
    

如要將容許度套用至 Cassandra StatefulSet,請按照下列步驟操作:

  1. 在覆寫檔案中,將 tolerations: 屬性新增至 cassandra:
    cassandra:
      tolerations:
      - key: "key1"
        operator: "Equal"
        value: "value1"
        effect: "NoExecute"
        tolerationSeconds: 3600
  2. 將變更套用至 apigee-datastore 圖表:
    helm upgrade datastore apigee-datastore/ \
      --install \
      --create-namespace \
      --namespace  \
      --atomic \
      -f overrides.yaml