3.4.3. プロキシーの後ろでインストールするための CodeReady Workspaces カスタムリソースの準備
この手順では、CodeReady Workspaces をプロキシーの後ろでインストールする際に、CheCluster
カスタムリソースに必要な追加情報を提供する方法を説明します。
手順
CodeReady Workspaces Operator によって管理される
CheCluster
カスタムリソースで、制限された環境で CodeReady Workspaces のインスタンスのデプロイを容易にするために使用されるフィールドを追加します。# [...] spec: server: proxyURL: '<URL of the proxy, with the http protocol, and without the port>' proxyPort: '<Port of proxy, typically 3128>' # [...]
これらの基本設定のほかに、プロキシー設定では通常、プロキシーを使用せずに CodeReady Workspaces からアクセスされるホストの一覧に外部 OpenShift クラスター API URL のホストを追加する必要があります。
このクラスター API ホストを取得するには、OpenShift クラスターに対して以下のコマンドを実行します。
$ oc whoami --show-server | sed 's#https://##' | sed 's#:.*$##'
CheCluster
カスタムリソースの対応するフィールドはnonProxyHosts
です。ホストがこのフィールドにすでに存在する場合は、|
を区切り文字として使用し、クラスター API ホストを追加します。# [...] spec: server: nonProxyHosts: 'anotherExistingHost|<cluster api host>' # [...]