空の環境の作成後に、モジュールを追加できます。環境で使用可能なモジュールのリストは、olcnectl module listコマンドで表示できます。
olcnectl module createコマンドは、環境にモジュールを追加して構成する場合に使用します。
この例では、kubernetes
モジュールを使用するKubernetesクラスタを作成します。kubernetes
モジュールに対するmodule_args
の完全なリストは、5.1「Platform CLIの構文」を参照してください。
1つのマスター・ノードと2つのワーカー・ノードがある環境にkubernetes
モジュールを追加するには、次のようにします。
$ olcnectl --api-server 127.0.0.1:8091 module create --environment-name myenvironment \
--module kubernetes --name mycluster \
--container-registry container-registry.oracle.com/olcne \
--apiserver-advertise-address 192.0.2.100 \
--master-nodes master1.example.com:8090 \
--worker-nodes worker1.example.com:8090,worker2.example.com:8090