mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
9cf5cee4fd
* docs: copy docker examples v4 * docs: copy docker examples v4 * chore: update ignore files
1.2 KiB
1.2 KiB
Kubernetes Example
This example will use the latest verdaccio
tag. If you want you set a different that, update the deployment.yaml
file.
⚠️ There is newer Kubernetes example here that is woth to check out https://github.com/verdaccio/docker-examples/tree/master/kubernetes-helm-example
- Install Minikube
https://github.com/kubernetes/minikube
$> brew cask install minikube
- Run it
$> minikube start
- Deploy
$> kubectl create -f deployment.yaml
deployment "verdaccio-deployment" created
- Check whether the deployment was successful
$> kubectl get deployments
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
verdaccio-deployment 1 1 1 1 19m
- Deploy the service
$> kubectl create -f service.yaml
- Check the service
kubectl get services
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes 10.0.0.1 <none> 443/TCP 11h
verdaccio 10.0.0.160 <pending> 4873:30061/TCP 20m
- Browse the service
http://192.168.99.100:30061/
You can see the dashboard in action
http://192.168.99.100:30000/#!/service?namespace=default