updated nexus to connect to nfs provisioning
This commit is contained in:
@ -1,34 +0,0 @@
|
||||
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: {}
|
@ -19,26 +19,40 @@ spec:
|
||||
app: {{ .Values.nexus.name }}
|
||||
creationTimestamp: null
|
||||
spec:
|
||||
volumes:
|
||||
- name: {{ .Values.persistence.name }}
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.persistence.name }}
|
||||
restartPolicy: {{ .Values.nexus.restartPolicy }}
|
||||
initContainers:
|
||||
- name: volume-mount-nexus
|
||||
image: busybox
|
||||
command: ["sh", "-c", "chown -R 200:200 {{ .Values.persistence.mountPath }}"]
|
||||
volumeMounts:
|
||||
- name: {{ .Values.persistence.name }}
|
||||
mountPath: "{{ .Values.persistence.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.persistence.name }}
|
||||
mountPath: "/nexus-data"
|
||||
- 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: molgenis-nexus-nfs
|
||||
mountPath: "/nexus-data"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: {{ .Values.nexus.port.ui }}
|
||||
initialDelaySeconds: 90
|
||||
periodSeconds: 20
|
||||
failureThreshold: 5
|
||||
successThreshold: 1
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: {{ .Values.nexus.port.ui }}
|
||||
initialDelaySeconds: 90
|
||||
periodSeconds: 5
|
||||
failureThreshold: 5
|
||||
successThreshold: 1
|
||||
|
||||
volumes:
|
||||
- name: molgenis-nexus-nfs
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.persistence.claim }}
|
||||
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | indent 8 }}
|
||||
{{- end }}
|
@ -0,0 +1,55 @@
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: {{ .Values.nexusProxy.name }}
|
||||
labels:
|
||||
app: {{ .Values.nexusProxy.name }}
|
||||
environment: {{ .Values.environment }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
strategy:
|
||||
type: {{ .Values.nexusProxy.strategy.type }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Values.nexusProxy.selector }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Values.nexusProxy.name }}
|
||||
creationTimestamp: null
|
||||
spec:
|
||||
restartPolicy: {{ .Values.nexusProxy.restartPolicy }}
|
||||
containers:
|
||||
- name: {{ .Values.nexusProxy.name }}
|
||||
image: "{{ .Values.nexusProxy.image.repository }}:{{ .Values.nexusProxy.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.nexusProxy.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.nexusProxy.hostname }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.nexusProxy.port }}
|
||||
resources: {}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: {{ .Values.nexusProxy.port }}
|
||||
initialDelaySeconds: 90
|
||||
periodSeconds: 5
|
||||
failureThreshold: 5
|
||||
successThreshold: 1
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: {{ .Values.nexusProxy.port }}
|
||||
initialDelaySeconds: 90
|
||||
periodSeconds: 5
|
||||
failureThreshold: 5
|
||||
successThreshold: 1
|
||||
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | indent 8 }}
|
||||
{{- end }}
|
@ -25,8 +25,8 @@ spec:
|
||||
paths:
|
||||
- path: {{ default "/" .path }}
|
||||
backend:
|
||||
serviceName: httpd
|
||||
servicePort: 80
|
||||
serviceName: {{ $.Values.nexusProxy.name }}
|
||||
servicePort: {{ $.Values.nexusProxy.port }}
|
||||
{{- if .tls }}
|
||||
tls:
|
||||
- hosts:
|
||||
|
15
molgenis-nexus/templates/persistence/nexusPVC.yaml
Normal file
15
molgenis-nexus/templates/persistence/nexusPVC.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
{{- if .Values.persistence.enabled -}}
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: {{ .Values.persistence.claim }}
|
||||
annotations:
|
||||
volume.beta.kubernetes.io/storage-class: "nfs-provisioner-retain"
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistence.size }}
|
||||
{{- end }}
|
@ -1,13 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.httpd.name }}
|
||||
labels:
|
||||
app: {{ .Values.httpd.name }}
|
||||
spec:
|
||||
type: {{ .Values.httpd.service.type }}
|
||||
ports:
|
||||
- name: {{ .Values.httpd.name }}
|
||||
port: {{ .Values.httpd.port }}
|
||||
selector:
|
||||
app: {{ .Values.httpd.selector }}
|
13
molgenis-nexus/templates/services/nexusProxy-service.yaml
Normal file
13
molgenis-nexus/templates/services/nexusProxy-service.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.nexusProxy.name }}
|
||||
labels:
|
||||
app: {{ .Values.nexusProxy.name }}
|
||||
spec:
|
||||
type: {{ .Values.nexusProxy.service.type }}
|
||||
ports:
|
||||
- name: {{ .Values.nexusProxy.name }}
|
||||
port: {{ .Values.nexusProxy.port }}
|
||||
selector:
|
||||
app: {{ .Values.nexusProxy.selector }}
|
@ -1,16 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: {{ .Values.persistence.name }}
|
||||
labels:
|
||||
name: nfs2
|
||||
spec:
|
||||
storageClassName: {{ .Values.persistence.storageClass }}
|
||||
capacity:
|
||||
storage: {{ .Values.persistence.size }}
|
||||
accessModes:
|
||||
- {{ .Values.persistence.accessMode }}
|
||||
persistentVolumeReclaimPolicy: {{ .Values.persistence.reclaimPolicy }}
|
||||
nfs:
|
||||
server: {{ .Values.persistence.server }}
|
||||
path: {{ .Values.persistence.mountPath }}
|
@ -1,11 +0,0 @@
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: {{ .Values.persistence.name }}
|
||||
spec:
|
||||
storageClassName: {{ .Values.persistence.storageClass }}
|
||||
accessModes:
|
||||
- {{ .Values.persistence.accessMode }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistence.size }}
|
Reference in New Issue
Block a user