0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/docker-examples/kubernetes-example
Juan Picado 04b19262d0 docs: relocate docker-examples to 5.x (#1990)
* docs: relocate docker-examples to 5.x

* chore: update readme

* chore: remove license

we have already one at root
2021-04-09 17:54:24 +02:00
..
deployment.yaml docs: relocate docker-examples to 5.x (#1990) 2021-04-09 17:54:24 +02:00
readme.md docs: relocate docker-examples to 5.x (#1990) 2021-04-09 17:54:24 +02:00
service.yaml docs: relocate docker-examples to 5.x (#1990) 2021-04-09 17:54:24 +02:00

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