update chart
This commit is contained in:
parent
08b5d10a26
commit
55249d119a
@ -1,24 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: stac-server
|
name: stac-server
|
||||||
description: A Helm chart for the STAC Server with frontend, STAC API and caching service.
|
description: A Helm chart for the STAC Server with frontend, STAC API and caching service.
|
||||||
|
|
||||||
# A chart can be either an 'application' or a 'library' chart.
|
|
||||||
#
|
|
||||||
# Application charts are a collection of templates that can be packaged into versioned archives
|
|
||||||
# to be deployed.
|
|
||||||
#
|
|
||||||
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
|
||||||
# a dependency of application charts to inject those utilities and functions into the rendering
|
|
||||||
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
|
||||||
type: application
|
type: application
|
||||||
|
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
|
||||||
# to the chart and its templates, including the app version.
|
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
|
||||||
# It is recommended to use it with quotes.
|
|
||||||
appVersion: "0.1.0"
|
appVersion: "0.1.0"
|
||||||
|
@ -4,6 +4,7 @@ kind: Ingress
|
|||||||
metadata:
|
metadata:
|
||||||
name: stac-server-ingress
|
name: stac-server-ingress
|
||||||
spec:
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
rules:
|
rules:
|
||||||
- host: {{ .Values.stacServer.ingress.hostname }}
|
- host: {{ .Values.stacServer.ingress.hostname }}
|
||||||
http:
|
http:
|
||||||
@ -15,4 +16,12 @@ spec:
|
|||||||
name: stac-server
|
name: stac-server
|
||||||
port:
|
port:
|
||||||
number: {{ .Values.stacServer.servicePort }}
|
number: {{ .Values.stacServer.servicePort }}
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- {{ .Values.stacServer.ingress.hostname }}
|
||||||
|
secretName: lumi-wildcard-tls
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,33 +1,33 @@
|
|||||||
apiVersion: batch/v1
|
# apiVersion: batch/v1
|
||||||
kind: Job
|
# kind: Job
|
||||||
metadata:
|
# metadata:
|
||||||
name: redis-load-data
|
# name: redis-load-data
|
||||||
annotations:
|
# annotations:
|
||||||
"helm.sh/hook": post-install,post-upgrade
|
# "helm.sh/hook": post-install,post-upgrade
|
||||||
"helm.sh/hook-weight": "1"
|
# "helm.sh/hook-weight": "1"
|
||||||
"helm.sh/hook-delete-policy": before-hook-creation
|
# "helm.sh/hook-delete-policy": before-hook-creation
|
||||||
spec:
|
# spec:
|
||||||
template:
|
# template:
|
||||||
spec:
|
# spec:
|
||||||
containers:
|
# containers:
|
||||||
- name: load-data
|
# - name: load-data
|
||||||
image: redis:alpine
|
# image: redis:alpine
|
||||||
command:
|
# command:
|
||||||
- sh
|
# - sh
|
||||||
- -c
|
# - -c
|
||||||
- |
|
# - |
|
||||||
# Wait for Redis to be ready
|
# # Wait for Redis to be ready
|
||||||
until redis-cli -h redis ping | grep PONG; do
|
# until redis-cli -h redis ping | grep PONG; do
|
||||||
echo "Waiting for Redis...";
|
# echo "Waiting for Redis...";
|
||||||
sleep 2;
|
# sleep 2;
|
||||||
done;
|
# done;
|
||||||
# Load data into Redis
|
# # Load data into Redis
|
||||||
redis-cli -h redis set compressed_catalog "$(cat /data/compressed_tree.json)"
|
# redis-cli -h redis set compressed_catalog "$(cat /data/compressed_tree.json)"
|
||||||
volumeMounts:
|
# volumeMounts:
|
||||||
- name: redis-init-data
|
# - name: redis-init-data
|
||||||
mountPath: /data
|
# mountPath: /data
|
||||||
volumes:
|
# volumes:
|
||||||
- name: redis-init-data
|
# - name: redis-init-data
|
||||||
configMap:
|
# configMap:
|
||||||
name: redis-init-data
|
# name: redis-init-data
|
||||||
restartPolicy: OnFailure
|
# restartPolicy: OnFailure
|
@ -22,4 +22,4 @@ stacServer:
|
|||||||
REDIS_HOST: "redis"
|
REDIS_HOST: "redis"
|
||||||
ingress:
|
ingress:
|
||||||
enabled: True
|
enabled: True
|
||||||
hostname: "stac-server.lumi-vip.apps.dte.destination-earth.eu "
|
hostname: "climate.catalogue.lumi.apps.dte.destination-earth.eu"
|
Loading…
x
Reference in New Issue
Block a user