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

3.5 KiB
Raw Blame History

id title
kubernetes Kubernetes

You can find instructions to deploy Verdaccio on a Kubernetes cluster on the verdaccio/docker-example repository. Ипак, препоручујемо да инсталирате Verdaccio на Kubernetes кластер тако што ћете користити Helm. Helm је Kubernetes package manager који доноси многе погодности.

Helm

Setup Helm

Ако раније нисте користили Helm, потребно је да подесите Helm контролер звани Tiller:

helm init

Инсталирање

⚠️ 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

У овом примеру користимо npm као име издања:

helm install npm verdaccio/verdaccio

Постављање специфичне верзије (deploy)

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

Надограђивање Verdaccio-а

helm upgrade npm verdaccio/verdaccio

Деинсталирање

helm uninstall npm

Напомена: ова команда брише све ресурсе, укључујући и пакете који су можда раније објављени у регистрију.

Корисничка конфигурација Verdaccio-а

Можете подесити Verdaccio конфигурацију по својим жељама тако што ћете користити Kubernetes configMap.

Припрема

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

Напомена: Проверите да ли користите исправан path за storage који се користи за persistency:

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

Постављање configMap (deploy)

Поставите configMap на кластер

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

Поставите Verdaccio

Сада можете поставити Verdaccio Helm chart и детаљно дефинисати конфигурацију која ће да се користи:

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
....    
...

Rancher Support

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