Repositorio de código del artículo de enmilocalfunciona.io
The folder k8s-specs contains the yaml specifications of the Voting App's services.
First create the voting-app namespace
$ kubectl create namespace voting-appRun the following command to create the deployments and services objects:
$ kubectl create -f k8s-specs/ -n voting-app
deployment "db" created
service "db" created
deployment "redis" created
service "redis" created
deployment "result" created
service "result" created
deployment "vote" created
service "vote" created
deployment "worker" createdThe vote interface is then available on port 31000 on each host of the cluster, the result one is available on port 31001.
helm upgrade --install <your-chart-name> voting-app-enmilocalfunciona --namespace voting-apphelm lint .
...
==> Linting .
Lint OK
1 chart(s) linted, no failureshelm package .
...
Successfully packaged chart and saved it to: .../enmilocalfunciona-voting-app/enmilocalfunciona-voting-app-0.1.0.tgzhelm upgrade --install chart-museum stable/chartmuseum --set service.type=NodePort,service.nodePort=32000,env.open.DISABLE_API=false --namespace chart-museumcurl -L --data-binary "@enmilocalfunciona-voting-app-0.1.0.tgz" $(minikube ip):32000/apis/charts
{"saved":true}%