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 kind: Deployment
metadata: metadata:
creationTimestamp: null creationTimestamp: null
name: httpd name: nexus
labels: labels:
app: httpd app: nexus
environment: production
spec: spec:
replicas: 1 replicas: 1
strategy: {} strategy: {}
template: template:
metadata: metadata:
labels: labels:
app: httpd app: nexus
creationTimestamp: null creationTimestamp: null
spec: spec:
containers: containers:
- env: - name: httpd
image: registry.webhosting.rug.nl/molgenis/httpd:lts
env:
- name: PROXY_SERVICE - name: PROXY_SERVICE
value: nexus:8081,nexus:5000:v2 value: nexus:8081,nexus:5000:v2
- name: SERVER_NAME - name: SERVER_NAME
value: httpd:80 value: registry.molgenis.org
image: registry.webhosting.rug.nl/molgenis/httpd:lts
name: httpd
ports: ports:
- containerPort: 80 - containerPort: 80
resources: {} resources: {}
restartPolicy: Always restartPolicy: Always
- name: nexus
image: sonatype/nexus:latest
ports:
- containerPort: 8081
- containerPort: 5000
status: {} 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 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: 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: spec:
rules: rules:
- host: registry.molgenis.org - host: {{ .name }}
http: http:
paths: paths:
- backend: - path: {{ default "/" .path }}
serviceName: httpd backend:
servicePort: 80 serviceName: {{ template "nexus.fullname" $ }}
servicePort: 80
{{- if .tls }}
tls:
- hosts:
- {{ .name }}
secretName: {{ .tlsSecret }}
{{- end }}
---
{{- end }}
{{- end }}

View File

@ -1,19 +1,19 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ template "httpd.fullname" . }} name: {{ template "nexus.fullname" . }}
labels: labels:
app: {{ template "httpd.name" . }} app: {{ template "nexus.name" . }}
chart: {{ template "httpd.chart" . }} chart: {{ template "nexus.chart" . }}
release: {{ .Release.Name }} release: {{ .Release.Name }}
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
spec: spec:
type: {{ .Values.httpd.type }} type: {{ .Values.service.type }}
ports: ports:
- port: {{ .Values.httpd.port }} - port: {{ .Values.service.port }}
targetPort: http targetPort: http
protocol: TCP protocol: TCP
name: http name: http
selector: selector:
app: {{ template "httpd.name" . }} app: {{ template "nexus.name" . }}
release: {{ .Release.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: image:
repository: sonatype/nexus3 repository: sonatype/nexus3
tag: stable tag: stable
pullPolicy: IfNotPresent pullPolicy: Always
httpd: service:
name: httpd
type: ClusterIP type: ClusterIP
port: 80 port: 80
proxy: httpd:80:/
nexus:
name: nexus
type: ClusterIP
ingress: ingress:
enabled: true enabled: true