Browse Source

Merge pull request #3512 from mtnbikenc/hosted-registry-service

BZ1427040: Create hosted registry service
Scott Dodson 8 năm trước cách đây
mục cha
commit
35203336a0
1 tập tin đã thay đổi với 13 bổ sung0 xóa
  1. 13 0
      roles/openshift_hosted/tasks/registry/registry.yml

+ 13 - 0
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