5.4. Windows Machine Config Operator に debug レベルのロギングを設定する
デフォルトでは、Windows Machine Config Operator (WMCO) は、info ログレベルを使用するように設定されています。WMCO の Subscription オブジェクトを編集することで、ログレベルを debug に変更できます。
手順
次のコマンドを使用して、
windows-machine-config-operatornamespace のwindows-machine-config-operatorのサブスクリプションを編集します。$ oc edit subscription windows-machine-config-operator -n openshift-windows-machine-config-operator.spec.config.envスタンザに次のパラメーターを追加します。apiVersion: operators.coreos.com/v1alpha1 kind: Subscription # ... name: windows-machine-config-operator namespace: openshift-windows-machine-config-operator # ... spec: # ... config: env: - name: ARGS1 value: --debugLogging2
追加した name および value パラメーターを削除することで、デフォルトの info ログレベルに戻すことができます。