Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Map (ID: 24ba82dc-b1a2-43cb-b98b-b112093a1a26) #61

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
22 changes: 22 additions & 0 deletions contributions/24ba82dc-b1a2-43cb-b98b-b112093a1a26/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: v1
appVersion: v1.0
description: Map
icon: https://raw.githubusercontent.com/eurodatacube/charts/master/contributions/24ba82dc-b1a2-43cb-b98b-b112093a1a26/FB_IMG_1599180205878.jpg?sanitize=true
keywords:
- license:Commercial
- license_notes:null
- license_price:30.000
- requirement:eurodatacube-xcube-gen
- requirement:eoxhub
- requirement:eurodatacube
- requirement:eurodatacube-geodb
- tag:Analysis-Ready Data
- tag:Download Service
- tag:EO Data
- tag:GeoDB
maintainers:
- name: b96db566-b0d1-4fb3-9221-3a4057bb833f
name: 24ba82dc-b1a2-43cb-b98b-b112093a1a26
sources:
- 'null'
version: 0.2.3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Map
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "base.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "base.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "base.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Common labels
*/}}
{{- define "base.labels" -}}
app.kubernetes.io/name: {{ include "base.name" . }}
helm.sh/chart: {{ include "base.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "base.fullname" . }}
labels:
{{ include "base.labels" . | indent 4 }}
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: {{ include "base.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
app.kubernetes.io/name: {{ include "base.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
# force k8s to restart pod to apply config changes
# https://v3.helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
rollme: {{ randAlphaNum 5 | quote }}
spec:
containers:
- name: {{ include "base.name" . }}
image: eurodatacube/24ba82dc-b1a2-43cb-b98b-b112093a1a26:{{ .Chart.Version }}
ports:
- name: http
containerPort: 5000
protocol: TCP
env:
- name: SH_CLIENT_ID
valueFrom:
secretKeyRef:
name: eurodatacube-{{ include "base.name" . }}
key: client_id
- name: SH_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: eurodatacube-{{ include "base.name" . }}
key: client_secret
- name: SH_INSTANCE_ID
valueFrom:
secretKeyRef:
name: eurodatacube-{{ include "base.name" . }}
key: instance_id
- name: GEODB_AUTH_CLIENT_ID
valueFrom:
secretKeyRef:
name: eurodatacube-geodb-default
key: auth_client_id
- name: GEODB_AUTH_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: eurodatacube-geodb-default
key: auth_client_secret
- name: GEODB_AUTH_AUD
valueFrom:
secretKeyRef:
name: eurodatacube-geodb-default
key: auth_aud
- name: GEODB_AUTH_DOMAIN
valueFrom:
secretKeyRef:
name: eurodatacube-geodb-default
key: auth_domain
- name: GEODB_API_SERVER_PORT
valueFrom:
secretKeyRef:
name: eurodatacube-geodb-default
key: api_server_port
- name: GEODB_API_SERVER_URL
valueFrom:
secretKeyRef:
name: eurodatacube-geodb-default
key: api_server_url
{{- range $name, $value := .Values.env }}
{{- if not (empty $value) }}
- name: {{ $name | quote }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
resources:
limits:
cpu: "200m"
memory: "800M"
requests:
cpu: "100m"
memory: "400M"
nodeSelector: {}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: hub.jupyter.org/node-purpose
operator: In
values:
- user
tolerations: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{- $fullName := include "base.fullname" . -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{ include "base.labels" . | indent 4 }}
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-read-timeout: '600'
nginx.ingress.kubernetes.io/enable-cors: 'true'
spec:
rules:
- host: {{ .Release.Name }}.{{ .Release.Namespace }}.hub.eox.at
http:
paths:
- backend:
serviceName: {{ $fullName }}
servicePort: http
path: /
tls:
- hosts:
- {{ .Release.Name }}.{{ .Release.Namespace }}.hub.eox.at
secretName: wildcard-tls
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "base.fullname" . }}
labels:
{{ include "base.labels" . | indent 4 }}
spec:
type: ClusterIP
ports:
- port: 80
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: {{ include "base.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}