-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨(forum) add static service for elastic search
Add a static service for the forum elasticsearch, to be used easily by other applications.
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
apps/forum/templates/services/elasticsearch/static-svc.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |