1
0
Fork 0

Introduced values.yaml in this helm config

This commit is contained in:
sido 2018-06-25 19:33:02 +02:00
parent c24b103d1b
commit c525426181
10 changed files with 113 additions and 92 deletions

View File

@ -2,5 +2,5 @@ apiVersion: v1
appVersion: "1.0"
description: Nexus stack for MOLGENIS
name: nexus
version: 0.1.0
version: 0.1.1
icon: https://github.com/sidohaakma/molgenis-docker-helm/blob/master/nexus/catalogIcon-molgenis-nexus.svg

View File

@ -0,0 +1,33 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: {{ .Values.httpd.name }}
labels:
app: {{ .Values.httpd.name }}
environment: {{ .Values.environment }}
spec:
replicas: 1
strategy: {}
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 }}:v2"
- name: SERVER_NAME
value: registry.molgenis.org
ports:
- containerPort: {{ .Values.httpd.port }}
resources: {}

View File

@ -0,0 +1,28 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: {{ .Values.nexus.name }}
labels:
app: {{ .Values.nexus.name }}
environment: {{ .Values.environment }}
spec:
replicas: 1
strategy: {}
selector:
matchLabels:
app: {{ .Values.nexus.selector }}
template:
metadata:
labels:
app: {{ .Values.nexus.name }}
creationTimestamp: null
spec:
restartPolicy: {{ .Values.nexus.restartPolicy }}
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 }}

View File

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

View File

@ -1,13 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: httpd
labels:
app: httpd
spec:
type: NodePort
ports:
- name: httpd
port: 80
selector:
app: httpd

View File

@ -1,27 +0,0 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: nexus
labels:
app: nexus
environment: production
spec:
replicas: 1
strategy: {}
selector:
matchLabels:
app: nexus
template:
metadata:
labels:
app: nexus
creationTimestamp: null
spec:
restartPolicy: Always
containers:
- name: nexus
image: sonatype/nexus3:latest
ports:
- containerPort: 8081
- containerPort: 5000

View File

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

View 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 }}

View 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 }}

View File

@ -4,15 +4,34 @@
replicaCount: 1
image:
repository: sonatype/nexus3
tag: latest
pullPolicy: Always
environment: production
service:
type: ClusterIP
port: 80
nexus:
name: nexus
selector: nexus
restartPolicy: Always
image:
repository: sonatype/nexus3
tag: latest
pullPolicy: Always
port:
docker: 5000
ui: 8081
httpd:
name: httpd
selector: httpd
restartPolicy: Always
image:
repository: registry.webhosting.rug.nl/molgenis/httpd
tag: lts
pullPolicy: Always
port: 80
ingress:
enabled: true
annotations: {}