Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tango Images
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LOFAR2.0
Tango Images
Commits
f41055fe
Commit
f41055fe
authored
4 years ago
by
Matteo Di Carlo
Browse files
Options
Downloads
Patches
Plain Diff
update tango-rest
parent
b44e68d1
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
charts/ska-docker/Chart.yaml
+1
-1
1 addition, 1 deletion
charts/ska-docker/Chart.yaml
charts/tango-base/Chart.yaml
+1
-1
1 addition, 1 deletion
charts/tango-base/Chart.yaml
charts/tango-base/templates/tango-rest.yaml
+49
-3
49 additions, 3 deletions
charts/tango-base/templates/tango-rest.yaml
with
51 additions
and
5 deletions
charts/ska-docker/Chart.yaml
+
1
−
1
View file @
f41055fe
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
charts/tango-base/Chart.yaml
+
1
−
1
View file @
f41055fe
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
charts/tango-base/templates/tango-rest.yaml
+
49
−
3
View file @
f41055fe
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment