Helm: Deploying OCP Plugins - zhuje/openshift-wiki GitHub Wiki
This is how to deploy an plugin using Helm on OCP (openshift console platform).
1. Build and push an image to quay.io (RedHat's image repository)
Source: https://github.com/openshift/console-plugin-template#docker-image
# template
$ cd <my_repository>
$ podman build -t <my_image_repository/username/repo_name:tag> .
$ podman run -it --rm -d -p 9001:80 <my_image_repository/username/repo_name:tag>
$ podman push <my_image_repository/username/repo_name:tag>
# example
$ cd distributed-tracing-repository
$ podman build -t quay.io/jezhu/distributed-tracing-plugin:0.0.1 .
$ podman run -it --rm -d -p 9001:80 quay.io/jezhu/distributed-tracing-plugin:0.0.1
$ podman push quay.io/jezhu/distributed-tracing-plugin:0.0.1
2. Deploy image using Helm
This will add your the distributed tracing plugin on top of the OpenShift-console. For this to work you must have used the console-plugin-template because the paths below are taken from the template.
Source : https://github.com/openshift/console-plugin-template#deployment-on-cluster
Template
$ helm upgrade -i <my_plugin_name> <path_to_helm_charts> -n <my_openshift_namespace> --create-namespace --set plugin.image=<my_image_repository/username/repo_name:tag>
# example
$ helm upgrade -i distributed-tracing-plugin charts/distributed-tracing-plugin -n distributed-tracing-plugin --create-namespace --set plugin.image=quay.io/jezhu/distributed-tracing-plugin:0.0.1
3. Check name and status of current cluster on OCP oc-cli
$ oc status
4. list all releases in helm on the current cluster
$ helm ls --all-namespaces --all
// output
Name
distributed-tracing-plugin
Namespace
distributed-tracing-plugin
5. Uninstall
#template
$ helm uninstall <my_deployed_helm_chart> -n <my_openshift_namespace>
#example
$ helm uninstall distributed-tracing-plugin -n distributed-tracing-plugin