Skip to content
Snippets Groups Projects
Commit f41055fe authored by Matteo Di Carlo's avatar Matteo Di Carlo
Browse files

update tango-rest

parent b44e68d1
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ dependencies: ...@@ -9,7 +9,7 @@ dependencies:
version: 0.2.0 version: 0.2.0
repository: file://../tango-util repository: file://../tango-util
- name: tango-base - name: tango-base
version: 0.2.2 version: 0.2.3
repository: file://../tango-base repository: file://../tango-base
condition: tango-base.enabled,global.sub-system.tango-base.enabled condition: tango-base.enabled,global.sub-system.tango-base.enabled
- name: archiver - name: archiver
......
...@@ -2,7 +2,7 @@ apiVersion: v2 ...@@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "1.0" appVersion: "1.0"
description: A Helm chart for deploying the TANGO base system on Kubernetes description: A Helm chart for deploying the TANGO base system on Kubernetes
name: tango-base name: tango-base
version: 0.2.2 version: 0.2.3
icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png icon: https://www.skatelescope.org/wp-content/uploads/2016/07/09545_NEW_LOGO_2014.png
dependencies: dependencies:
- name: tango-util - name: tango-util
......
...@@ -70,8 +70,8 @@ spec: ...@@ -70,8 +70,8 @@ spec:
{{- end }} {{- end }}
initContainers: initContainers:
- name: check-dependencies-0 - name: check-dependencies-0
image: "{{ .Values.global.dsconfig.image.registry }}/{{ .Values.global.dsconfig.image.image }}:{{ .Values.global.dsconfig.image.tag }}" image: "{{ .Values.tangorest.image.registry }}/{{ .Values.tangorest.image.image }}:{{ .Values.tangorest.image.tag }}"
imagePullPolicy: {{ .Values.global.dsconfig.image.pullPolicy }} imagePullPolicy: {{ .Values.tangorest.image.pullPolicy }}
command: command:
- retry - retry
- --max=10 - --max=10
...@@ -82,6 +82,50 @@ spec: ...@@ -82,6 +82,50 @@ spec:
env: env:
- name: TANGO_HOST - name: TANGO_HOST
value: {{ .Values.global.tango_host }} value: {{ .Values.global.tango_host }}
- name: init-0
image: "{{ .Values.tangorest.image.registry }}/{{ .Values.tangorest.image.image }}:{{ .Values.tangorest.image.tag }}"
imagePullPolicy: {{ .Values.tangorest.image.pullPolicy }}
command:
- /bin/bash
args:
- "-c"
- /usr/local/bin/tango_register_device.sh TangoRestServer/{{ template "tango-base.name" . }}-{{ .Values.tangorest.component }} TangoRestServer {{ template "tango-base.name" . }}-{{ .Values.tangorest.component }}/rest/0
env:
- name: TANGO_HOST
value: {{ .Values.global.tango_host }}
- name: init-1
image: "{{ .Values.tangorest.image.registry }}/{{ .Values.tangorest.image.image }}:{{ .Values.tangorest.image.tag }}"
imagePullPolicy: {{ .Values.tangorest.image.pullPolicy }}
command:
- /bin/bash
args:
- "-c"
- /usr/local/bin/tango_admin --add-property {{ template "tango-base.name" . }}-{{ .Values.tangorest.component }}/rest/0 TANGO_DB tango://{{ .Values.global.tango_host }}/sys/database/2
env:
- name: TANGO_HOST
value: {{ .Values.global.tango_host }}
- name: init-2
image: "{{ .Values.tangorest.image.registry }}/{{ .Values.tangorest.image.image }}:{{ .Values.tangorest.image.tag }}"
imagePullPolicy: {{ .Values.tangorest.image.pullPolicy }}
command:
- /bin/bash
args:
- "-c"
- /usr/local/bin/tango_admin --add-property {{ template "tango-base.name" . }}-{{ .Values.tangorest.component }}/rest/0 TOMCAT_PORT 8080
env:
- name: TANGO_HOST
value: {{ .Values.global.tango_host }}
- name: init-3
image: "{{ .Values.tangorest.image.registry }}/{{ .Values.tangorest.image.image }}:{{ .Values.tangorest.image.tag }}"
imagePullPolicy: {{ .Values.tangorest.image.pullPolicy }}
command:
- /bin/bash
args:
- "-c"
- /usr/local/bin/tango_admin --add-property {{ template "tango-base.name" . }}-{{ .Values.tangorest.component }}/rest/0 TOMCAT_AUTH_METHOD plain
env:
- name: TANGO_HOST
value: {{ .Values.global.tango_host }}
containers: containers:
- name: tango-rest - name: tango-rest
image: "{{ .Values.tangorest.image.registry }}/{{ .Values.tangorest.image.image }}:{{ .Values.tangorest.image.tag }}" image: "{{ .Values.tangorest.image.registry }}/{{ .Values.tangorest.image.image }}:{{ .Values.tangorest.image.tag }}"
...@@ -90,12 +134,14 @@ spec: ...@@ -90,12 +134,14 @@ spec:
- /bin/bash - /bin/bash
args: args:
- "-c" - "-c"
- /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf - /usr/bin/java -jar $JAVA_OPTS /usr/local/lib/tango/mtangorest.jar $MYHOSTNAME
env: env:
- name: TANGO_HOST - name: TANGO_HOST
value: "{{ .Values.global.tango_host }}" value: "{{ .Values.global.tango_host }}"
- name: JAVA_OPTS - name: JAVA_OPTS
value: "-Xmx4G -Xshare:off -XX:+UseG1GC -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5009" value: "-Xmx4G -Xshare:off -XX:+UseG1GC -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5009"
- name: MYHOSTNAME
value: {{ template "tango-base.name" . }}-{{ .Values.tangorest.component }}
ports: ports:
- name: rest - name: rest
containerPort: 8080 containerPort: 8080
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment