10.5.1 Design Consoleイングレスの構成
Design Consoleイングレス用に
values.yamlを準備するには:
- 次のディレクトリに移動し、
values.yamlのコピーを作成します:cd $WORKDIR/kubernetes/design-console-ingress values.yamlのコピーを作成します:cp values.yaml $WORKDIR/dcvalues.yaml$WORKDIR/kubernetes/design-console-ingress/values.yamlを編集し、必要に応じて次のパラメータを変更します:-
domainUID:- デフォルトのgovernancedomain以外の設定でOIGドメインを作成した場合は、それに応じて変更します。 -
sslType:- サポートされる値は、SSLおよびNONSSLです。SSLを使用するようにイングレス・コントローラを作成した場合は、SSLに設定し、それ以外の場合はNONSSLに設定します。 secretName:SSLを使用する場合は、イングレス・コントローラのシークレットに名前を変更し、NONSSLを使用する場合はデフォルト値のままにします。
# Load balancer type. Supported values are: NGINX type: NGINX # Type of Configuration Supported Values are : NONSSL,SSL # tls: NONSSL tls: SSL # TLS secret name if the mode is SSL secretName: governancedomain-tls-cert # WLS domain as backend to the load balancer wlsDomain: domainUID: governancedomain oimClusterName: oim_cluster oimServerT3Port: 14002-
$WORKDIRディレクトリに移動します:cd $WORKDIR- 次のコマンドを実行して、イングレスを作成します:
例:helm install governancedomain-nginx-designconsole kubernetes/design-console-ingress --namespace <domain_namespace> --values kubernetes/design-console-ingress/values.yaml
出力は次のようになります:helm install governancedomain-nginx-designconsole kubernetes/design-console-ingress --namespace oigns --values kubernetes/design-console-ingress/values.yamlNAME: governancedomain-nginx-designconsole <DATE> NAMESPACE: oigns STATUS: deployed REVISION: 1 TEST SUITE: None - 次のコマンドを実行して、イングレスが正常に作成されたことを示します:
例:kubectl describe ing governancedomain-nginx-designconsole -n <domain_namespace>kubectl describe ing governancedomain-nginx-designconsole -n oigns - 出力は次のようになります:
- 非SSLの場合:
Name: governancedomain-nginx-designconsole Labels: app.kubernetes.io/managed-by=Helm weblogic.resourceVersion=domain-v2 Namespace: oigns Address: Ingress Class: nginx Default backend: <default> Rules: Host Path Backends ---- ---- -------- * governancedomain-cluster-oim-cluster:14002 (10.244.2.250:14002) Annotations: meta.helm.sh/release-name: governancedomain-nginx-designconsole meta.helm.sh/release-namespace: oigns nginx.ingress.kubernetes.io/affinity: cookie nginx.ingress.kubernetes.io/enable-access-log: false Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Sync 5s nginx-ingress-controller Scheduled for sync - SSLの場合:
Name: governancedomain-nginx-designconsole Labels: app.kubernetes.io/managed-by=Helm weblogic.resourceVersion=domain-v2 Namespace: oigns Address: Ingress Class: nginx Default backend: <default> Rules: Host Path Backends ---- ---- -------- * governancedomain-cluster-oim-cluster:14002 (10.244.2.250:14002) Annotations: meta.helm.sh/release-name: governancedomain-nginx-designconsole meta.helm.sh/release-namespace: oigns nginx.ingress.kubernetes.io/affinity: cookie nginx.ingress.kubernetes.io/enable-access-log: false nginx.ingress.kubernetes.io/configuration-snippet: more_set_input_headers "X-Forwarded-Proto: https"; more_set_input_headers "WL-Proxy-SSL: true"; nginx.ingress.kubernetes.io/enable-access-log: false nginx.ingress.kubernetes.io/ingress.allow-http: false nginx.ingress.kubernetes.io/proxy-buffer-size: 2000k Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Sync 5s nginx-ingress-controller Scheduled for sync
- 非SSLの場合: