mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
f90522e303
* New translations web.md (Portuguese, Brazilian) docs(website): new translations * New translations web.md (Spanish) docs(website): new translations * New translations web.md (Chinese Simplified) docs(website): new translations * New translations docker.md (Chinese Simplified) docs(website): new translations * New translations plugins.md (Spanish) docs(website): new translations * New translations plugins.md (Portuguese, Brazilian) docs(website): new translations * New translations plugins.md (Chinese Simplified) docs(website): new translations * New translations iis-server.md (Chinese Simplified) docs(website): new translations * New translations iis-server.md (Chinese Simplified) docs(website): new translations * New translations iis-server.md (Chinese Simplified) docs(website): new translations * New translations iis-server.md (Chinese Simplified) docs(website): new translations * New translations iis-server.md (Chinese Simplified) docs(website): new translations * New translations iis-server.md (Chinese Simplified) docs(website): new translations * New translations iis-server.md (Chinese Simplified) docs(website): new translations * New translations install.md (Chinese Simplified) docs(website): new translations * New translations install.md (Chinese Simplified) docs(website): new translations * New translations install.md (Chinese Simplified) docs(website): new translations * New translations kubernetes.md (Chinese Simplified) docs(website): new translations * New translations kubernetes.md (Chinese Simplified) docs(website): new translations * New translations kubernetes.md (Chinese Simplified) docs(website): new translations * New translations kubernetes.md (Chinese Simplified) docs(website): new translations * New translations logger.md (Chinese Simplified) docs(website): new translations * New translations logger.md (Chinese Simplified) docs(website): new translations * New translations node-api.md (Chinese Simplified) docs(website): new translations * New translations notifications.md (Chinese Simplified) docs(website): new translations * New translations node-api.md (Chinese Simplified) docs(website): new translations * New translations notifications.md (Chinese Simplified) docs(website): new translations * New translations notifications.md (Chinese Simplified) docs(website): new translations * New translations notifications.md (Chinese Simplified) docs(website): new translations * New translations notifications.md (Chinese Simplified) docs(website): new translations * New translations node-api.md (Chinese Simplified) docs(website): new translations * New translations iis-server.md (Chinese Simplified) docs(website): new translations * New translations iis-server.md (Chinese Simplified) docs(website): new translations * New translations install.md (Chinese Simplified) docs(website): new translations * New translations kubernetes.md (Chinese Simplified) docs(website): new translations * New translations kubernetes.md (Chinese Simplified) docs(website): new translations * New translations kubernetes.md (Chinese Simplified) docs(website): new translations * New translations logger.md (Chinese Simplified) docs(website): new translations * New translations notifications.md (Chinese Simplified) docs(website): new translations
2.1 KiB
2.1 KiB
id | title |
---|---|
kubernetes | Kubernetes |
您可以在verdaccio/docker-例子资源库找到在Kubernetes群集中配置Verdaccio的指南。 然而,建议在Kubernetes集群上安装Verdaccio的方法是使用Helm。 Helm 是 Kubernetes 包管理者,它带来很多优点。
Helm
设置Helm
如果您以前没有使用过Helm,您需要设置叫做Tiller的Helm控制器:
helm init
安装
配置Helm stable/verdaccio chart。在这个例子里,我们用 npm
作为发行名称:
helm install --name npm stable/verdaccio
配置特定版本
helm install --name npm --set image.tag=2.6.5 stable/verdaccio
升级Verdaccio
helm upgrade npm stable/verdaccio
卸载
helm del --purge npm
请注意: 此命令删除所有源代码,包含您之前可能已经发布到registry里的包。
自定义Verdaccio 配置
您可以用Kubernetes configMap自定义 Verdaccio 配置。
准备
复制 现有配置并将其调整为您所需要的:
wget https://raw.githubusercontent.com/verdaccio/verdaccio/master/conf/full.yaml -O config.yaml
请注意: 请确保您使用的是持续存储的正确路径:
torage: /verdaccio/storage/data
auth:
htpasswd:
file: /verdaccio/storage/htpasswd
配置configMap
配置configMap
到集群
kubectl create configmap verdaccio-config --from-file ./config.yaml
配置Verdaccio
现在您可以配置Verdaccio Helm chart 并指定使用哪个配置:
helm install --name npm --set customConfigMap=verdaccio-config stable/verdaccio
Rancher 支持
Rancher 是一个完整的容器管理平台,它使得在生产中管理和使用容器非常容易。