Confluent for Kubernetes のアップグレード¶
アップグレードのプロセスに着手する前に、使用する Kubernetes クラスターが Confluent for Kubernetes (CFK)のターゲットバージョンの サポートされる環境 に該当していることを確認します。
スケールアップ、構成の変更、認証情報のローテーションなどのクラスターに対する他の変更とは別にこのアップグレードを実施することを推奨します。
CFK をアップグレードするには
リソースのリコンサイルを無効にします。
Confluent Platform コンポーネントのローリング再起動を回避するために、以下のように Confluent Platform コンポーネントをデプロイした名前空間ごとに、リソースのリコンサイルを一時的に無効にします。
kubectl annotate connect connect \ platform.confluent.io/block-reconcile=true \ --namespace <namespace>
kubectl annotate controlcenter controlcenter \ platform.confluent.io/block-reconcile=true \ --namespace <namespace>
kubectl annotate kafkarestproxy kafkarestproxy \ platform.confluent.io/block-reconcile=true \ --namespace <namespace>
kubectl annotate kafka kafka \ platform.confluent.io/block-reconcile=true \ --namespace <namespace>
kubectl annotate ksqldb ksqldb \ platform.confluent.io/block-reconcile=true \ --namespace <namespace>
kubectl annotate schemaregistry schemaregistry \ platform.confluent.io/block-reconcile=true \ --namespace <namespace>
kubectl annotate zookeeper zookeeper \ platform.confluent.io/block-reconcile=true \ --namespace <namespace>
最新の CFK チャートを取得します。
Helm リポジトリから:
helm repo add confluentinc https://packages.confluent.io/helm
helm repo update
helm pull confluentinc/confluent-for-kubernetes --untar
「ダウンロードバンドルを使用した Confluent for Kubernetes のデプロイ」で説明されているダウンロードバンドルから
重要: Confluent Platform のカスタムリソース定義(CRD)をアップグレードします。
kubectl apply -f <CFK home>/confluent-for-kubernetes/crds/
This step is required because Helm does not support upgrading or deleting CRDs using Helm. For more information, see the Helm documentation.
ホットフィックスまたはパッチバージョンにアップグレードする場合は、
values.yaml
で CFK のimage.tag
を0.435.23
にアップデートします。例を次に示します。image: tag: "0.435.23"
CFK を 2.3.1 にアップグレードします。
values ファイルを使用してカスタマイズした CFK をデプロイ している場合は、次のコマンドを実行して CFK をアップグレードします。
helm upgrade --install confluent-operator \ confluentinc/confluent-for-kubernetes \ --values <path-to-values-file> \ --namespace <namespace>
values ファイルをカスタマイズせずに CFK をデプロイしている場合は、次のコマンドを実行して CFK をアップデートします。
helm upgrade --install confluent-operator \ confluentinc/confluent-for-kubernetes \ --namespace <namespace>
前述した最初の手順でリコンサイルを無効にした各 Confluent Platform コンポーネントのリソースのリコンサイルを有効にします。
kubectl annotate <component CR kind> <cluster name> \ platform.confluent.io/block-reconcile- \ --namespace <namespace>