diff options
author | Russell Teague <rteague@redhat.com> | 2017-02-27 14:28:19 -0500 |
---|---|---|
committer | Russell Teague <rteague@redhat.com> | 2017-02-27 14:28:19 -0500 |
commit | 61f7961fb35ff0bbe0980916a1774cf7db0a467a (patch) | |
tree | 51baf4b3b139641badc72876e05d361c49f199b7 /roles | |
parent | 833eb4ccfed255004ba21b51bab3c022201bbc83 (diff) | |
download | openshift-61f7961fb35ff0bbe0980916a1774cf7db0a467a.tar.gz openshift-61f7961fb35ff0bbe0980916a1774cf7db0a467a.tar.bz2 openshift-61f7961fb35ff0bbe0980916a1774cf7db0a467a.tar.xz openshift-61f7961fb35ff0bbe0980916a1774cf7db0a467a.zip |
Create hosted registry service
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_hosted/tasks/registry/registry.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/openshift_hosted/tasks/registry/registry.yml b/roles/openshift_hosted/tasks/registry/registry.yml index cad5c666c..2369c4e2e 100644 --- a/roles/openshift_hosted/tasks/registry/registry.yml +++ b/roles/openshift_hosted/tasks/registry/registry.yml @@ -53,6 +53,19 @@ openshift_hosted_registry_force: - False +- name: create the default registry service + oc_service: + namespace: "{{ openshift_hosted_registry_namespace }}" + name: "{{ openshift_hosted_registry_name }}" + ports: + - name: 5000-tcp + port: 5000 + protocol: TCP + targetPort: 5000 + selector: "{{ openshift_hosted_registry_selector }}" + session_affinity: ClientIP + service_type: ClusterIP + - include: secure.yml static: no run_once: true |