1
0
Fork 0

nexus added

This commit is contained in:
sido 2018-06-25 15:11:29 +02:00
parent 116ec641f9
commit 925554d4e4
6 changed files with 51 additions and 74 deletions

View File

@ -2,28 +2,34 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: httpd
name: nexus
labels:
app: httpd
app: nexus
environment: production
spec:
replicas: 1
strategy: {}
template:
metadata:
labels:
app: httpd
app: nexus
creationTimestamp: null
spec:
containers:
- env:
- name: httpd
image: registry.webhosting.rug.nl/molgenis/httpd:lts
env:
- name: PROXY_SERVICE
value: nexus:8081,nexus:5000:v2
- name: SERVER_NAME
value: httpd:80
image: registry.webhosting.rug.nl/molgenis/httpd:lts
name: httpd
value: registry.molgenis.org
ports:
- containerPort: 80
resources: {}
restartPolicy: Always
restartPolicy: Always
- name: nexus
image: sonatype/nexus:latest
ports:
- containerPort: 8081
- containerPort: 5000
status: {}

View File

@ -1,32 +0,0 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: nexus
spec:
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: httpd
creationTimestamp: null
spec:
containers:
- image: sonatype/nexus3:latest
name: nexus
ports:
- containerPort: 8081
- containerPort: 5000
resources: {}
volumeMounts:
- mountPath: /nexus-data
name: molgenis-nexus-data
restartPolicy: Always
volumes:
- name: molgenis-nexus-data
persistentVolumeClaim:
claimName: molgenis-nexus-data
status: {}

View File

@ -1,12 +1,36 @@
{{- if .Values.ingress.enabled }}
{{- range .Values.ingress.hosts }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress-nexus
name: "{{ $.Release.Name }}-ingress"
labels:
app: {{ template "nexus.fullname" $ }}
chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}"
release: "{{ $.Release.Name }}"
heritage: "{{ $.Release.Service }}"
annotations:
{{- if .tls }}
ingress.kubernetes.io/secure-backends: "true"
{{- end }}
{{- range $key, $value := .annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
rules:
- host: registry.molgenis.org
- host: {{ .name }}
http:
paths:
- backend:
serviceName: httpd
servicePort: 80
- path: {{ default "/" .path }}
backend:
serviceName: {{ template "nexus.fullname" $ }}
servicePort: 80
{{- if .tls }}
tls:
- hosts:
- {{ .name }}
secretName: {{ .tlsSecret }}
{{- end }}
---
{{- end }}
{{- end }}

View File

@ -1,19 +1,19 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "httpd.fullname" . }}
name: {{ template "nexus.fullname" . }}
labels:
app: {{ template "httpd.name" . }}
chart: {{ template "httpd.chart" . }}
app: {{ template "nexus.name" . }}
chart: {{ template "nexus.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
type: {{ .Values.httpd.type }}
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.httpd.port }}
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
app: {{ template "httpd.name" . }}
app: {{ template "nexus.name" . }}
release: {{ .Release.Name }}

View File

@ -1,15 +0,0 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
name: nexus
labels:
app: nexus
spec:
ports:
- name: "ui"
port: 8081
- name: "docker"
port: 5000
selector:
app: nexus

View File

@ -7,17 +7,11 @@ replicaCount: 1
image:
repository: sonatype/nexus3
tag: stable
pullPolicy: IfNotPresent
pullPolicy: Always
httpd:
name: httpd
service:
type: ClusterIP
port: 80
proxy: httpd:80:/
nexus:
name: nexus
type: ClusterIP
ingress:
enabled: true