You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
Difference between revisions of "Local-charts/Tutorial"
Latest revision as of 02:03, 9 November 2019
To better understand how to contribute to the local-charts environment, let's walk through it together.
In the walkthrough below we will show how to add a service that already has a helm chart to be deployed using local-charts.
Let's try adding the Blubberoid service from . Blubberoid creates a Dockerfile based on a yaml configuration file. Adding it to local-charts will let us run Blubberoid in Minikube.
Deploy the Blubberoid service in Minikube by adding it to local-charts.
Clone the local-charts repository
We'll be editing files in the local-charts repo:  Run the installation script by running `make install` from within the repo's root directory.
Add blubberoid to the global enabled property:
Next, create a Blubberoid property in order to configure the Blubberoid chart. Possible values to configure can be seen in the Blubberoid chart in deployment-charts repo . For example, perhaps we want to enable Blubberoid's policy feature:
Now we're ready to deploy!
Run a deployment
First, run `make start` from within the local-charts root to start our Minikube cluster. Second, run `make deploy values=values.example.yaml`
Blubberoid should now be deployed to Minikube!
Check it's running by running `kubectl get pods`:
We can now try using Blubberoid! first, get your minikube's IP by `minikube ip`, and the 5-digit blubberoid port by `kubectl get svc`. Now try Blubberoid:
You can delete your deployments by running `make undeploy` from the local-charts root. Similarly, running `make stop` will stop the Minikube cluster