[stable/verdaccio] deployment strategy, health check updates (#6616)

* Upgrade Verdaccio to 3.2

* use rollingUpdate if persistence disabled, use /-/ping for probe
This commit is contained in:
Taehyun Kim
2018-07-15 11:41:05 -07:00
committed by k8s-ci-robot
parent 7df5b87e37
commit cde123d911
5 changed files with 27 additions and 10 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
apiVersion: v1
description: A lightweight private npm proxy registry (sinopia fork)
name: verdaccio
version: 0.2.3
appVersion: 2.7.3
version: 0.3.0
appVersion: 3.2
home: http://www.verdaccio.org
icon: https://raw.githubusercontent.com/verdaccio/verdaccio/master/assets/bitmap/logo/logo-twitter.png
sources:
+1 -1
View File
@@ -55,7 +55,7 @@ and their default values.
| `customConfigMap` | Use a custom ConfigMap | `false` |
| `image.pullPolicy` | Image pull policy | `Always` if `image` tag is `latest`, else `IfNotPresent` |
| `image.repository` | Verdaccio container image repository | `verdaccio/verdaccio` |
| `image.tag` | Verdaccio container image tag | `2.7.1` |
| `image.tag` | Verdaccio container image tag | `3.2` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `persistence.accessMode` | PVC Access Mode for Verdaccio volume | `ReadWriteOnce` |
| `persistence.enabled` | Enable persistence using PVC | `true` |
+10 -4
View File
@@ -10,7 +10,12 @@ metadata:
spec:
replicas: {{ .Values.replicaCount }}
strategy:
{{- if .Values.persistence.enabled }}
type: Recreate
rollingUpdate: null
{{- else }}
type: RollingUpdate
{{- end }}
template:
metadata:
annotations:
@@ -28,15 +33,16 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: 4873
name: http
livenessProbe:
httpGet:
path: /
port: 4873
path: /-/ping
port: http
initialDelaySeconds: 5
readinessProbe:
httpGet:
path: /
port: 4873
path: /-/ping
port: http
initialDelaySeconds: 5
resources:
{{ toYaml .Values.resources | indent 12 }}
+1 -1
View File
@@ -26,7 +26,7 @@ spec:
{{- end }}
ports:
- port: {{ .Values.service.port }}
targetPort: 4873
targetPort: http
protocol: TCP
name: {{ .Values.service.name }}
selector:
+13 -2
View File
@@ -1,6 +1,6 @@
image:
repository: verdaccio/verdaccio
tag: 2.7.3
tag: 3.2
pullPolicy: IfNotPresent
service:
@@ -50,7 +50,7 @@ configMap: |
#
# Do not configure host and port under `listen` in this file
# as it will be ignored when using docker.
# see https://github.com/verdaccio/verdaccio/blob/master/wiki/docker.md#docker-and-custom-port-configuration
# see https://github.com/verdaccio/verdaccio/blob/master/docs/docker.md#docker-and-custom-port-configuration
#
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/master/conf
@@ -59,6 +59,11 @@ configMap: |
# path to a directory with all packages
storage: /verdaccio/storage/data
web:
# WebUI is enabled as default, if you want disable it, just uncomment this line
#enable: false
title: Verdaccio
auth:
htpasswd:
file: /verdaccio/storage/htpasswd
@@ -93,10 +98,16 @@ configMap: |
# if package is not available locally, proxy requests to 'npmjs' registry
proxy: npmjs
# To use `npm audit` uncomment the following section
middlewares:
audit:
enabled: true
# log settings
logs:
- {type: stdout, format: pretty, level: http}
#- {type: file, path: verdaccio.log, level: info}
persistence:
enabled: true
## A manually managed Persistent Volume and Claim