summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-02-27 20:29:13 -0500
committerGitHub <noreply@github.com>2017-02-27 20:29:13 -0500
commit35203336a0294e5aee61ba845b0c7f0a326fe89a (patch)
tree3a33d47f3f0d6896a645e7164297df9a10a4a4cb
parent7459157413c00148ec387447a1256980626b4e91 (diff)
parent61f7961fb35ff0bbe0980916a1774cf7db0a467a (diff)
downloadopenshift-35203336a0294e5aee61ba845b0c7f0a326fe89a.tar.gz
openshift-35203336a0294e5aee61ba845b0c7f0a326fe89a.tar.bz2
openshift-35203336a0294e5aee61ba845b0c7f0a326fe89a.tar.xz
openshift-35203336a0294e5aee61ba845b0c7f0a326fe89a.zip
Merge pull request #3512 from mtnbikenc/hosted-registry-service
BZ1427040: Create hosted registry service
-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