5.4. サンプルアプリケーションのデプロイ
次のコマンドを実行して、サンプルアプリケーション用の新しいプロジェクトを作成します。
$ oc new-project hello-worldHello World アプリケーションをデプロイします。
$ oc -n hello-world new-app --image=docker.io/openshift/hello-openshiftカスタムドメイン名を指定してアプリケーションのルートを作成します。
例
$ oc -n hello-world create route edge --service=hello-openshift hello-openshift-tls \ --hostname hello-openshift.${DOMAIN}ルートにラベルを付けて、カスタム Ingress Controller へのアクセスを許可します。
$ oc -n hello-world label route.route.openshift.io/hello-openshift-tls route=waf