update chart
This commit is contained in:
parent
08b5d10a26
commit
55249d119a
@ -1,24 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: stac-server
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
# 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"
|
||||
|
@ -4,6 +4,7 @@ kind: Ingress
|
||||
metadata:
|
||||
name: stac-server-ingress
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: {{ .Values.stacServer.ingress.hostname }}
|
||||
http:
|
||||
@ -15,4 +16,12 @@ spec:
|
||||
name: stac-server
|
||||
port:
|
||||
number: {{ .Values.stacServer.servicePort }}
|
||||
{{- end }}
|
||||
tls:
|
||||
- hosts:
|
||||
- {{ .Values.stacServer.ingress.hostname }}
|
||||
secretName: lumi-wildcard-tls
|
||||
{{- end }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,33 +1,33 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: redis-load-data
|
||||
annotations:
|
||||
"helm.sh/hook": post-install,post-upgrade
|
||||
"helm.sh/hook-weight": "1"
|
||||
"helm.sh/hook-delete-policy": before-hook-creation
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: load-data
|
||||
image: redis:alpine
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
# Wait for Redis to be ready
|
||||
until redis-cli -h redis ping | grep PONG; do
|
||||
echo "Waiting for Redis...";
|
||||
sleep 2;
|
||||
done;
|
||||
# Load data into Redis
|
||||
redis-cli -h redis set compressed_catalog "$(cat /data/compressed_tree.json)"
|
||||
volumeMounts:
|
||||
- name: redis-init-data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: redis-init-data
|
||||
configMap:
|
||||
name: redis-init-data
|
||||
restartPolicy: OnFailure
|
||||
# apiVersion: batch/v1
|
||||
# kind: Job
|
||||
# metadata:
|
||||
# name: redis-load-data
|
||||
# annotations:
|
||||
# "helm.sh/hook": post-install,post-upgrade
|
||||
# "helm.sh/hook-weight": "1"
|
||||
# "helm.sh/hook-delete-policy": before-hook-creation
|
||||
# spec:
|
||||
# template:
|
||||
# spec:
|
||||
# containers:
|
||||
# - name: load-data
|
||||
# image: redis:alpine
|
||||
# command:
|
||||
# - sh
|
||||
# - -c
|
||||
# - |
|
||||
# # Wait for Redis to be ready
|
||||
# until redis-cli -h redis ping | grep PONG; do
|
||||
# echo "Waiting for Redis...";
|
||||
# sleep 2;
|
||||
# done;
|
||||
# # Load data into Redis
|
||||
# redis-cli -h redis set compressed_catalog "$(cat /data/compressed_tree.json)"
|
||||
# volumeMounts:
|
||||
# - name: redis-init-data
|
||||
# mountPath: /data
|
||||
# volumes:
|
||||
# - name: redis-init-data
|
||||
# configMap:
|
||||
# name: redis-init-data
|
||||
# restartPolicy: OnFailure
|
@ -22,4 +22,4 @@ stacServer:
|
||||
REDIS_HOST: "redis"
|
||||
ingress:
|
||||
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