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.yaml
NAME: 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の場合: