0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00
verdaccio/website/translated_docs/es-ES/kubernetes.md

3 KiB

id title
kubernetes Kubernetes

You can find instructions to deploy Verdaccio on a Kubernetes cluster on the verdaccio/docker-example repository. Sin embargo, el método recomendado de instalar Verdaccio en un cluster de Kubernetes es usando Helm. Helm is a Kubernetes es un administrador de paquetes que trae muchos beneficios y ventajas.

Helm

Configurar Helm

Si no has usado Helm anteriormente, necesitarás configurar el controlador de Helm llamado Tiller:

helm init

Instalación

⚠️ If you are using this helm chart, please be aware of the migration of the repository.

Deploy the Helm verdaccio/verdaccio chart.

Add repository

helm repo add verdaccio https://charts.verdaccio.org

In this example we use npm as release name:

helm install npm verdaccio/verdaccio

Desplegar una versión específica

helm install npm --set image.tag=3.13.1 verdaccio/verdaccio

Actualizando Verdaccio

helm upgrade npm verdaccio/verdaccio

Desinstalar

helm uninstall npm

Nota: el comando borra todos los recursos, incluyendo los paquetes que tu podrías haber publicado anteriormente al registro.

Configuración personalizada de Verdaccio

Puedes personalizar la configuracion de verdaccio usando un * configMap* de Kubernetes.

Preparando

Copy the existing configuration and adapt it for your use case:

wget https://raw.githubusercontent.com/verdaccio/verdaccio/master/conf/docker.yaml -O config.yaml

Nota: Asegúrese que usa la dirección correcta para el almacenamiento que es usado por la persistencia:

storage: /verdaccio/storage/data
auth:
  htpasswd:
    file: /verdaccio/storage/htpasswd

Desplegar el configMap

Desplegar el configMap en el cluster

kubectl create configmap verdaccio-config --from-file ./config.yaml

Desplegar Verdaccio

Ahora puedes desplegar Verdaccio Helm chart y especificar cual configuración usar:

helm install npm --set customConfigMap=verdaccio-config verdaccio/verdaccio

NGINX proxy body-size limit

The standard k8s NGINX ingress proxy allows for 1MB for body-size which can be increased by modifying the default deployment options according to the documentation:

...

annotations:
...

    kubernetes.io/proxy-body-size: 20m
....    
...

Soporte Rancher

Rancher is a complete container management platform that makes managing and using containers in production really easy.