Added documentation for addons cmd and how to add an addon
parent
452a1e52c2
commit
faa6d609d5
|
@ -0,0 +1,12 @@
|
|||
#### Adding a New Addon
|
||||
To add a new addon to minikube the following steps are required:
|
||||
|
||||
* For the new addon's .yaml file(s):
|
||||
* Put the required .yaml files for the addon in the minikube/deploy/addons directory.
|
||||
* Add the `kubernetes.io/minikube-addons: <NEW_ADDON_NAME>` label to each piece of the addon (ReplicationController, Service, etc.)
|
||||
* In order to have `minkube open addons <NEW_ADDON_NAME>` work properly, the `kubernetes.io/minikube-addons-endpoint: <NEW_ADDON_NAME>` label must be added to the appropriate endpoint service (what the user would want to open/interact with). This service must be of type NodePort.
|
||||
|
||||
* To add the addon into minikube commands/VM:
|
||||
* Add the addon with appropriate fields filled into the `Addon` dictionary, see this [Commit](https://github.com/kubernetes/minikube/commit/41998bdad0a5543d6b15b86b0862233e3204fab6#diff-e2da306d559e3f019987acc38431a3e8R133):
|
||||
* Add the addon to settings list, see this [Commit](https://github.com/kubernetes/minikube/commit/41998bdad0a5543d6b15b86b0862233e3204fab6#diff-07ad0c54f98b231e68537d908a214659R89):
|
||||
* Rebuild minikube using make out/minikube. This will put the addon .yaml binary files into the minikube binary using go-bindata.
|
27
README.md
27
README.md
|
@ -268,7 +268,32 @@ We recommend you use ImagePullSecrets, but if you would like to configure access
|
|||
|
||||
## Add-ons
|
||||
|
||||
In order to have minikube properly start/restart custom addons, place the addon(s) you wish to be launched with minikube in the `.minikube/addons` directory. Addons in this folder will be moved to the minikubeVM and launched each time minikube is started/restarted.
|
||||
Minikube has a set of built in addons that can be used enabled, disabled, and opened inside of the local k8s environment. Below is an exampe of this functionality for the `heapster` addon:
|
||||
```shell
|
||||
$ minikube addons list
|
||||
- addon-manager: enabled
|
||||
- dashboard: enabled
|
||||
- kube-dns: enabled
|
||||
- heapster: disabled
|
||||
|
||||
# minikube must be running for these commands to take effect
|
||||
$ minikube addons enable heapster
|
||||
heapster was successfully enabled
|
||||
|
||||
$ minikube addons open heapster # This will open grafana (interacting w/ heapster) in the browser
|
||||
Waiting, endpoint for service is not ready yet...
|
||||
Waiting, endpoint for service is not ready yet...
|
||||
Created new window in existing browser session.
|
||||
```
|
||||
The currently supported addons include:
|
||||
|
||||
* [Kubernetes Dashboard](https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/dashboard)
|
||||
* [Kube-dns](https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/dns)
|
||||
* [Heapster](https://github.com/kubernetes/heapster): [Troubleshooting Guide](https://github.com/kubernetes/heapster/blob/master/docs/influxdb.md) Note:You will need to login to Grafana as admin/admin in order to access the console
|
||||
|
||||
If you would like to have minikube properly start/restart custom addons, place the addon(s) you wish to be launched with minikube in the `.minikube/addons` directory. Addons in this folder will be moved to the minikubeVM and launched each time minikube is started/restarted.
|
||||
|
||||
If you have a request for an addon in minikube, please open an issue with the name and preferably a link to the addon with a description of its purpose and why it should be added. You can also attempt to add the addon to minikube by following the guide at [ADD_ADDON.md](./ADD_ADDON.md)
|
||||
|
||||
## Documentation
|
||||
|
||||
|
|
Loading…
Reference in New Issue