bumped version
This commit is contained in:
32
molgenis-nexus/v0.2.x/templates/_helpers.tpl
Normal file
32
molgenis-nexus/v0.2.x/templates/_helpers.tpl
Normal file
@ -0,0 +1,32 @@
|
||||
{{/* vim: set filetype=mustache: */}}
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "nexus.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).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "nexus.fullname" -}}
|
||||
{{- if .Values.fullnameOverride -}}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
||||
{{- if contains $name .Release.Name -}}
|
||||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create chart name and version as used by the chart label.
|
||||
*/}}
|
||||
{{- define "nexus.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
@ -0,0 +1,34 @@
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: {{ .Values.httpd.name }}
|
||||
labels:
|
||||
app: {{ .Values.httpd.name }}
|
||||
environment: {{ .Values.environment }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
strategy:
|
||||
type: {{ .Values.httpd.strategy.type }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Values.httpd.selector }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Values.httpd.name }}
|
||||
creationTimestamp: null
|
||||
spec:
|
||||
restartPolicy: {{ .Values.httpd.restartPolicy }}
|
||||
containers:
|
||||
- name: {{ .Values.httpd.name }}
|
||||
image: "{{ .Values.httpd.image.repository }}:{{ .Values.httpd.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.httpd.image.pullPolicy }}
|
||||
env:
|
||||
- name: PROXY_SERVICE
|
||||
value: "{{ .Values.nexus.name }}:{{ .Values.nexus.port.ui }},{{ .Values.nexus.name }}:{{ .Values.nexus.port.docker }}:{{ .Values.nexus.path.dockerV2 }}"
|
||||
- name: SERVER_NAME
|
||||
value: {{ .Values.httpd.hostname }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.httpd.port }}
|
||||
resources: {}
|
@ -0,0 +1,44 @@
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: {{ .Values.nexus.name }}
|
||||
labels:
|
||||
app: {{ .Values.nexus.name }}
|
||||
environment: {{ .Values.environment }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
strategy:
|
||||
type: {{ .Values.nexus.strategy.type }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Values.nexus.selector }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Values.nexus.name }}
|
||||
creationTimestamp: null
|
||||
spec:
|
||||
volumes:
|
||||
- name: {{ .Values.persistance.name }}
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.persistance.name }}
|
||||
restartPolicy: {{ .Values.nexus.restartPolicy }}
|
||||
initContainers:
|
||||
- name: volume-mount-nexus
|
||||
image: busybox
|
||||
command: ["sh", "-c", "chown -R 200:200 {{ .Values.persistance.mountPath }}"]
|
||||
volumeMounts:
|
||||
- name: {{ .Values.persistance.name }}
|
||||
mountPath: "{{ .Values.persistance.mountPath }}"
|
||||
containers:
|
||||
- name: {{ .Values.nexus.name }}
|
||||
image: "{{ .Values.nexus.image.repository }}:{{ .Values.nexus.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.nexus.image.pullPolicy }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.nexus.port.ui }}
|
||||
- containerPort: {{ .Values.nexus.port.docker }}
|
||||
volumeMounts:
|
||||
- name: {{ .Values.persistance.name }}
|
||||
mountPath: "/nexus-data"
|
||||
|
38
molgenis-nexus/v0.2.x/templates/ingress.yaml
Normal file
38
molgenis-nexus/v0.2.x/templates/ingress.yaml
Normal file
@ -0,0 +1,38 @@
|
||||
{{- if .Values.ingress.enabled }}
|
||||
{{- range .Values.ingress.hosts }}
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: "{{ $.Release.Name }}-ingress"
|
||||
labels:
|
||||
app: httpd
|
||||
chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}"
|
||||
release: "{{ $.Release.Name }}"
|
||||
heritage: "{{ $.Release.Service }}"
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||
{{- if .tls }}
|
||||
ingress.kubernetes.io/secure-backends: "true"
|
||||
{{- end }}
|
||||
{{- range $key, $value := .annotations }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
spec:
|
||||
rules:
|
||||
- host: {{ .name }}
|
||||
http:
|
||||
paths:
|
||||
- path: {{ default "/" .path }}
|
||||
backend:
|
||||
serviceName: httpd
|
||||
servicePort: 80
|
||||
{{- if .tls }}
|
||||
tls:
|
||||
- hosts:
|
||||
- {{ .name }}
|
||||
secretName: {{ .tlsSecret }}
|
||||
{{- end }}
|
||||
---
|
||||
{{- end }}
|
||||
{{- end }}
|
13
molgenis-nexus/v0.2.x/templates/services/httpd-service.yaml
Normal file
13
molgenis-nexus/v0.2.x/templates/services/httpd-service.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.httpd.name }}
|
||||
labels:
|
||||
app: {{ .Values.httpd.name }}
|
||||
spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
- name: {{ .Values.httpd.name }}
|
||||
port: {{ .Values.httpd.port }}
|
||||
selector:
|
||||
app: {{ .Values.httpd.selector }}
|
15
molgenis-nexus/v0.2.x/templates/services/nexus-service.yaml
Normal file
15
molgenis-nexus/v0.2.x/templates/services/nexus-service.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.nexus.name }}
|
||||
labels:
|
||||
app: {{ .Values.nexus.name }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: ui
|
||||
port: {{ .Values.nexus.port.ui }}
|
||||
- name: docker
|
||||
port: {{ .Values.nexus.port.docker }}
|
||||
selector:
|
||||
app: {{ .Values.nexus.selector }}
|
16
molgenis-nexus/v0.2.x/templates/volumes/nexus-pv.yaml
Normal file
16
molgenis-nexus/v0.2.x/templates/volumes/nexus-pv.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: {{ .Values.persistance.volumeName }}
|
||||
labels:
|
||||
name: nfs2
|
||||
spec:
|
||||
storageClassName: nfs-class
|
||||
capacity:
|
||||
storage: {{ .Values.persistance.size }}
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
persistentVolumeReclaimPolicy: {{ .Values.persistance.reclaimPolicy }}
|
||||
nfs:
|
||||
server: {{ .Values.persistance.server }}
|
||||
path: {{ .Values.persistance.mountPath }}
|
11
molgenis-nexus/v0.2.x/templates/volumes/nexus-pvc.yaml
Normal file
11
molgenis-nexus/v0.2.x/templates/volumes/nexus-pvc.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: {{ .Values.persistance.name }}
|
||||
spec:
|
||||
storageClassName: nfs-class
|
||||
accessModes:
|
||||
- {{ .Values.persistance.accessMode }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistance.size }}
|
Reference in New Issue
Block a user