Add resource requests and limits support for nexus (#6358)

This commit is contained in:
Maxime Guyot
2018-06-27 12:55:20 -07:00
committed by k8s-ci-robot
parent f858ef41f2
commit 30acbdd9ee
4 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: sonatype-nexus
version: 1.4.4
version: 1.5.0
appVersion: 3.12.1-01
description: Sonatype Nexus is an open source repository manager
keywords:
+1
View File
@@ -82,6 +82,7 @@ The following table lists the configurable parameters of the Nexus chart and the
| `nexusProxy.imageName` | Proxy image | `quay.io/travelaudience/docker-nexus-proxy` |
| `nexusProxy.imageTag` | Proxy image version | `2.1.0` |
| `nexusProxy.imagePullPolicy` | Proxy image pull policy | `IfNotPresent` |
| `nexusProxy.resources` | Proxy resource requests and limits | `{}` |
| `nexusProxy.env.nexusHttpHost` | Nexus url to access Nexus | `nil` |
| `nexusProxy.env.nexusDockerHost` | Containers url to be used with docker | `nil` |
| `nexusProxy.env.enforceHttps` | Allow only https access or not | `false` |
@@ -54,6 +54,8 @@ spec:
name: nexus-backup
- name: nexus-proxy
image: {{ .Values.nexusProxy.imageName }}:{{ .Values.nexusProxy.imageTag }}
resources:
{{ toYaml .Values.nexusProxy.resources | indent 12 }}
imagePullPolicy: {{ .Values.nexusProxy.imagePullPolicy }}
env:
- name: ALLOWED_USER_AGENTS_ON_ROOT_REGEX
+7 -1
View File
@@ -54,7 +54,13 @@ nexusProxy:
# secrets:
# keystore: ""
# password: ""
resources: {}
# requests:
# cpu: 100m
# memory: 256Mi
# limits:
# cpu: 200m
# memory: 512Mi
persistence:
enabled: true
accessMode: ReadWriteOnce