3.2.6.3. ルート
以下は、サービス hello-world にマップする hello-world という名前のルートを作成する例です。
プロビジョニング
- name: create hello-world route
openshift_v1_route:
name: hello-world
namespace: '{{ namespace }}'
spec_port_target_port: web
labels:
app: hello-world
service: hello-world
to_name: hello-world
プロビジョニング解除
- openshift_v1_route:
name: hello-world
namespace: '{{ namespace }}'
state: absent