CopyDeploying Hypertrace on Minikube using Helm:
git clone https://github.com/hypertrace/hypertrace.gitcd hypertrace/kubernetes- You have to make some changes in config file as per the configuration section below.
- Run
./hypertrace.sh install
CopyNote:
- As default in
Microk8syou can use only services likeNodePortandClusterIP. - With your setup you can use
NodePort,ClusterIP with IngressorMetalLB. - We are using
ClusterIP with Ingressso you have to remember to enable ingress and dns addons in Microk8s. - It can be done by
$microk8s.enable dns ingress. - So once the installation is complete you can access service which uses
LoadBalancer, in our case hypertrace-oc-collector and hypertrace-ui can be accessed using combinationYourIP:NodePortwhereNodePortis specific to service.
CopyConfiguration
- You can customize the configuration under
./config/hypertrace.propertiesas needed. - Default configuration will work for Docker for Dekstop deployment which is discussed in this section.
- use
devprofile while installing on microk8s on local setup.
Default configuration is as follows:
# Name of the profile
# Allowed values: {dev, mini, standard}
HT_PROFILE=dev
# Cloud provider name
# Allowed values: {docker-desktop, gcp, aws}
HT_ENV=microk8s
# Kubernetes context to deploy Hypertrace
HT_KUBE_CONTEXT=micork8s
# Kubernetes context to deploy Hypertrace
HT_KUBE_NAMESPACE=hypertrace
# Helm install wait timeout.
# Installation time generally depends time to pull multiple Hypertrace images from the repository.
# Set it higher value if the connection is slower.
# Units in minutes
HT_INSTALL_TIMEOUT=10
# Flag to debug installation issues
# Allowed values: {true, false}
HT_ENABLE_DEBUG=false
In case of any issue, install Hypertrace in debug mode to get more logs and traces to identify the rootcause.
- Set
HT_ENABLE_DEBUGtotruein./config/hypertrace.properties - Debug
bash -x ./hypertrace.sh install
CopyVerify installation
Verify helm charts. Successful installation should have the release status as deployed for both
data-servicesandplatform-servicesas below.$ helm list --namespace=hypertrace --kube-context=docker-desktop NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION hypertrace-data-services hypertrace 1 2020-06-24 22:19:46.827523 +0530 IST deployed hypertrace-data-services-0.1.0 0.1.0 hypertrace-platform-services hypertrace 1 2020-06-24 22:21:33.41217 +0530 IST deployed hypertrace-platform-services-0.1.0 0.1.0CopyUninstall
- Run
./hypertrace.sh uninstall
You can check out installation doc to read more about ports and other configs.
