diff --git a/contributions/0d08327f-11c8-4dba-8531-810c36388296/-Wang_Yuanyuan.jpeg b/contributions/0d08327f-11c8-4dba-8531-810c36388296/-Wang_Yuanyuan.jpeg new file mode 100644 index 0000000..1952558 Binary files /dev/null and b/contributions/0d08327f-11c8-4dba-8531-810c36388296/-Wang_Yuanyuan.jpeg differ diff --git a/contributions/0d08327f-11c8-4dba-8531-810c36388296/Chart.yaml b/contributions/0d08327f-11c8-4dba-8531-810c36388296/Chart.yaml new file mode 100644 index 0000000..3837f8f --- /dev/null +++ b/contributions/0d08327f-11c8-4dba-8531-810c36388296/Chart.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +appVersion: v1.0 +description: test-app +icon: https://raw.githubusercontent.com/eurodatacube/charts/master/contributions/0d08327f-11c8-4dba-8531-810c36388296/-Wang_Yuanyuan.jpeg?sanitize=true +keywords: +- license:null +- 'license_notes:' +- 'license_price:' +- requirement:eoxhub +- tag:On-the-fly +maintainers: +- name: 799dbac3-15f4-4a76-a01e-2cab48bb09de +name: 0d08327f-11c8-4dba-8531-810c36388296 +sources: +- 'null' +version: 0.0.1 diff --git a/contributions/0d08327f-11c8-4dba-8531-810c36388296/README.md b/contributions/0d08327f-11c8-4dba-8531-810c36388296/README.md new file mode 100644 index 0000000..b5a2b27 --- /dev/null +++ b/contributions/0d08327f-11c8-4dba-8531-810c36388296/README.md @@ -0,0 +1 @@ +# Test Readme \ No newline at end of file diff --git a/contributions/0d08327f-11c8-4dba-8531-810c36388296/templates/_helpers.tpl b/contributions/0d08327f-11c8-4dba-8531-810c36388296/templates/_helpers.tpl new file mode 100644 index 0000000..870e2c2 --- /dev/null +++ b/contributions/0d08327f-11c8-4dba-8531-810c36388296/templates/_helpers.tpl @@ -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 -}} diff --git a/contributions/0d08327f-11c8-4dba-8531-810c36388296/templates/deployment.yaml b/contributions/0d08327f-11c8-4dba-8531-810c36388296/templates/deployment.yaml new file mode 100644 index 0000000..d147992 --- /dev/null +++ b/contributions/0d08327f-11c8-4dba-8531-810c36388296/templates/deployment.yaml @@ -0,0 +1,55 @@ + +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/0d08327f-11c8-4dba-8531-810c36388296:{{ .Chart.Version }} + ports: + - name: http + containerPort: 5000 + protocol: TCP + env: + {{- 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: [] \ No newline at end of file diff --git a/contributions/0d08327f-11c8-4dba-8531-810c36388296/templates/ingress.yaml b/contributions/0d08327f-11c8-4dba-8531-810c36388296/templates/ingress.yaml new file mode 100644 index 0000000..572c3a8 --- /dev/null +++ b/contributions/0d08327f-11c8-4dba-8531-810c36388296/templates/ingress.yaml @@ -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 diff --git a/contributions/0d08327f-11c8-4dba-8531-810c36388296/templates/service.yaml b/contributions/0d08327f-11c8-4dba-8531-810c36388296/templates/service.yaml new file mode 100644 index 0000000..61908ff --- /dev/null +++ b/contributions/0d08327f-11c8-4dba-8531-810c36388296/templates/service.yaml @@ -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 }}