summaryrefslogtreecommitdiffstats
path: root/roles/openshift_hosted/tasks
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-02-27 14:28:19 -0500
committerRussell Teague <rteague@redhat.com>2017-02-27 14:28:19 -0500
commit61f7961fb35ff0bbe0980916a1774cf7db0a467a (patch)
tree51baf4b3b139641badc72876e05d361c49f199b7 /roles/openshift_hosted/tasks
parent833eb4ccfed255004ba21b51bab3c022201bbc83 (diff)
downloadopenshift-61f7961fb35ff0bbe0980916a1774cf7db0a467a.tar.gz
openshift-61f7961fb35ff0bbe0980916a1774cf7db0a467a.tar.bz2
openshift-61f7961fb35ff0bbe0980916a1774cf7db0a467a.tar.xz
openshift-61f7961fb35ff0bbe0980916a1774cf7db0a467a.zip
Create hosted registry service
Diffstat (limited to 'roles/openshift_hosted/tasks')
-rw-r--r--roles/openshift_hosted/tasks/registry/registry.yml13
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