diff --git a/CHANGELOG.md b/CHANGELOG.md index d975c235e..7f91cbbce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Versioning](http://semver.org/spec/v2.0.0.html). ### Added - Introduce static services to expose services to other apps with a fixed name +- Add a static service for the elasticsearch forum ### Fixed diff --git a/apps/forum/templates/services/elasticsearch/static-svc.yml.j2 b/apps/forum/templates/services/elasticsearch/static-svc.yml.j2 new file mode 100644 index 000000000..26f07483c --- /dev/null +++ b/apps/forum/templates/services/elasticsearch/static-svc.yml.j2 @@ -0,0 +1,24 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: forum + service: elasticsearch + version: "{{ forum_elasticsearch_image_tag }}" + deployment_stamp: "{{ deployment_stamp }}" + service_prefix: "{{ prefix }}" + type: static-service + removable: "no" + # name of the service should be database host name in settings + name: "{{ forum_elasticsearch_host }}-{{ prefix }}" + namespace: "{{ project_name }}" +spec: + ports: + - name: {{ forum_elasticsearch_port }}-tcp + port: {{ forum_elasticsearch_port }} + protocol: TCP + targetPort: {{ forum_elasticsearch_port }} + selector: + app: forum + deploymentconfig: "forum-elasticsearch-{{ deployment_stamp | default('undefined', true) }}" + type: ClusterIP