Skip to content
Snippets Groups Projects
Verified Commit 4dcc3987 authored by Martin Weise's avatar Martin Weise
Browse files

Updated the charts

parent 5bcafbd8
No related branches found
No related tags found
1 merge request!405Forgot to push the dashboard-ui
No preview for this file type
......@@ -16,30 +16,6 @@ server {
listen 8080 default_server;
server_name _;
location /dashboard/ {
rewrite ^/dashboard/(.*) /$1 break;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://dashboard-ui:3000;
proxy_read_timeout 90;
}
# Proxy Grafana Live WebSocket connections.
location /dashboard/api/live/ {
rewrite ^/dashboard/(.*) /$1 break;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_http_version 1.1;
proxy_pass http://dashboard-ui:3000;
proxy_read_timeout 90;
}
# Proxy Keycloak OIDC connections, c.f. https://www.keycloak.org/server/reverseproxy#_exposed_path_recommendations
location /realms {
proxy_set_header X-Real-IP $remote_addr;
......
......@@ -4,10 +4,10 @@ LABEL org.opencontainers.image.authors="martin.weise@tuwien.ac.at"
RUN apk add --no-cache bash \
&& pip install s3cmd
USER 1001
WORKDIR /app
COPY --chown=1001 --chmod=0777 ./init.sh /app/init.sh
RUN adduser -D dbrepo --uid 1001
COPY --chown=1001 --chmod=0744 ./init.sh /app/init.sh
ENTRYPOINT [ "bash", "-c", "/app/init.sh" ]
#!/bin/bash
cat << EOF > /app/config/.s3cfg
cat << EOF > /app/.s3cfg
access_key = ${S3_ACCESS_KEY_ID}
secret_key = ${S3_SECRET_ACCESS_KEY}
# Setup endpoint
host_base = ${STORAGE_ENDPOINT}
host_bucket = ${STORAGE_ENDPOINT}
host_bucket = ${S3_BUCKET}
use_https = False
# Enable S3 v4 signature APIs
signature_v2 = False
EOF
s3cmd --config=/app/config/.s3cfg ls | grep "s3://${S3_BUCKET}"
if s3cmd --config=/app/config/.s3cfg ls | grep -q "s3://${S3_BUCKET}"; then
s3cmd --config=/app/.s3cfg ls | grep "s3://${S3_BUCKET}"
if s3cmd --config=/app/.s3cfg ls | grep -q "s3://${S3_BUCKET}"; then
echo "Bucket s3://${S3_BUCKET} already exists, skip."
exit 0
fi
s3cmd --config=/app/config/.s3cfg mb s3://${S3_BUCKET}
\ No newline at end of file
s3cmd --config=/app/.s3cfg mb s3://${S3_BUCKET}
\ No newline at end of file
......@@ -376,6 +376,8 @@ services:
condition: service_healthy
dbrepo-dashboard-service:
condition: service_healthy
dbrepo-dashboard-ui:
condition: service_healthy
dbrepo-ui:
condition: service_healthy
logging:
......@@ -574,7 +576,6 @@ services:
environment:
BASE_URL: "${BASE_URL:-http://localhost}"
GF_INSTALL_PLUGINS: "yesoreyeram-infinity-datasource"
GF_SERVER_DOMAIN: "dashboard-service"
GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION: "true"
LDAP_ADMIN_USERNAME: "${IDENTITY_SERVICE_ADMIN_USERNAME:-admin}"
LDAP_ADMIN_PASSWORD: "${IDENTITY_SERVICE_ADMIN_PASSWORD:-admin}"
......@@ -585,8 +586,8 @@ services:
timeout: 5s
retries: 12
depends_on:
dbrepo-metric-db:
condition: service_started
dbrepo-data-db:
condition: service_healthy
extra_hosts:
- "localhost:host-gateway"
logging:
......
No preview for this file type
......@@ -6,12 +6,10 @@ metadata:
name: dashboard-service-secret
namespace: {{ include "common.names.namespace" . | quote }}
stringData:
AUTH_SERVICE_ADMIN: "{{ .Values.authservice.auth.adminUser }}"
AUTH_SERVICE_ADMIN_PASSWORD: "{{ .Values.authservice.auth.adminPassword }}"
AUTH_SERVICE_ENDPOINT: "{{ .Values.authservice.endpoint }}"
BASE_URL: "{{ .Values.gateway }}"
DASHBOARD_UI_ENDPOINT: "{{ .Values.dashboardui.endpoint }}"
METADATA_SERVICE_ENDPOINT: "{{ .Values.metadataservice.endpoint }}"
SYSTEM_USERNAME: "{{ .Values.identityservice.users }}"
SYSTEM_PASSWORD: "{{ .Values.identityservice.userPasswords }}"
SYSTEM_USERNAME: "{{ .Values.authservice.auth.adminUser }}"
SYSTEM_PASSWORD: "{{ .Values.authservice.auth.adminPassword }}"
{{- end }}
{{- if .Values.dashboardservice.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: dashboard-service
namespace: {{ include "common.names.namespace" . | quote }}
labels:
service: dashboard-service
spec:
type: ClusterIP
ports:
- name: "dashboard-service"
port: 80
targetPort: 8080
protocol: TCP
selector:
service: dashboard-service
{{- end }}
{{- if .Values.dashboardui.enabled }}
---
apiVersion: v1
kind: Secret
metadata:
name: dashboard-ui-prov-datasources-secret
namespace: {{ include "common.names.namespace" . | quote }}
stringData:
infinity.yaml: |-
apiVersion: 1
datasources:
- name: dbrepo-json
uid: dbrepojson0
type: yesoreyeram-infinity-datasource
basicAuth: true
basicAuthUser: {{ .Values.datadb.db.user }}
url: {{ .Values.gateway }}
jsonData:
auth_method: 'basicAuth'
httpHeaderName1: Accept
allowedHosts:
- '{{ .Values.gateway }}'
secureJsonData:
basicAuthPassword: {{ .Values.datadb.db.password }}
httpHeaderValue1: application/json
prometheus.yaml: |-
apiVersion: 1
datasources:
- name: dbrepo-metrics
type: prometheus
uid: dbrepometrics0
url: {{ .Values.metricdb.endpoint }}
{{- end }}
......@@ -97,7 +97,6 @@ data:
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_pass http://dashboard-service;
proxy_read_timeout 90;
}
......
......@@ -908,7 +908,7 @@ dashboardservice:
enabled: true
image:
## @skip dashboardservice.image.name
name: registry.datalab.tuwien.ac.at/dbrepo/auth-service-init:1.8.0
name: registry.datalab.tuwien.ac.at/dbrepo/dashboard-service:1.8.0
## @param dashboardservice.endpoint The endpoint for the microservices.
endpoint: http://dashboard-service
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
......@@ -1001,12 +1001,6 @@ dashboardui:
ports:
## @skip dashboardui.service.ports.grafana
grafana: 80
datasources:
## @skip dashboardui.datasources.secretName
secretName: "dashboard-ui-prov-datasources-secret"
dashboardsProvider:
## @param dashboardui.dashboardsProvider.enabled Enable the default dashboard provisioning provider to routinely import dashboards from /opt/bitnami/grafana/dashboards
enabled: true
## @section Metric Service
......
......@@ -39,7 +39,7 @@ class SearchServiceClient:
@returns: The opensearch instance singleton, if successful.
"""
if self.instance is None:
self.instance = OpenSearch(hosts=[{"host": self.host, "port": self.port}],
self.instance = SearchServiceClient(hosts=[{"host": self.host, "port": self.port}],
http_compress=True,
http_auth=(self.system_username, self.system_password))
return self.instance
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment