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 test-app (ID: 0d08327f-11c8-4dba-8531-810c36388296) #60

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions contributions/0d08327f-11c8-4dba-8531-810c36388296/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Test Readme
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,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: []
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 }}