Browse Source

add 3.8 templates for gluster ep and svc

Mangirdas 7 years ago
parent
commit
6b8e080ad1

+ 12 - 0
roles/openshift_hosted/templates/v3.8/glusterfs-registry-endpoints.yml.j2

@@ -0,0 +1,12 @@
+---
+apiVersion: v1
+kind: Endpoints
+metadata:
+  name: {{ openshift_hosted_registry_storage_glusterfs_endpoints }}
+subsets:
+- addresses:
+{% for ip in openshift_hosted_registry_storage_glusterfs_ips %}
+  - ip: {{ ip }}
+{% endfor %}
+  ports:
+  - port: 1

+ 10 - 0
roles/openshift_hosted/templates/v3.8/glusterfs-registry-service.yml.j2

@@ -0,0 +1,10 @@
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: {{ openshift_hosted_registry_storage_glusterfs_endpoints }}
+spec:
+  ports:
+  - port: 1
+status:
+  loadBalancer: {}