- Requirements
- Deployment manifests
- Installation using kubectl and kustomize
- Installation using Helm
- Get Access to UI Service
kube-opex-analytics
requires read-only access to the following Kubernetes API endpoints.
/api/v1
/apis/metrics.k8s.io/v1beta1
(provided by Kubernetes Metrics Server).
Command to install Kubernetes Metrics Server
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
For a deployment inside the Kubernetes cluster, use
https://kubernetes.default
as API base URL.
kube-opex-analytics
can be installed using one of the following methods:
Security Context:
kube-opex-analytics
's pod is deployed with a unprivileged security context by default. However, if needed, it's possible to launch the pod in privileged mode by setting the Helm configuration valuesecurityContext.enabled
tofalse
.
Clone the repository and move to the main folder.
git clone https://github.com/rchakode/kube-opex-analytics.git --depth=1
cd kube-opex-analytics
First review the default configuration settings in the deployment ConfigMap: kustomize/kube-opex-analytics-config.yaml
.
Then, perform the following command to submit the deployment.
The target namespace (kube-opex-analytics
) is assumed to exist. Otherwise, create it first.
kubectl -n kube-opex-analytics apply -k ./manifests/kustomize
First review the default configuration settings in the Helm values file: manifests/helm/values.yaml
. In particular, review the sections related to the persistent data volume, the Prometheus exporter and security context.
Then, perform the following command to submit the deployment.
The target namespace (kube-opex-analytics
) is assumed to exist. Otherwise, create it first.
helm upgrade -n kube-opex-analytics --install kube-opex-analytics manifests/helm/
The Helm deploys an HTTP service named kube-opex-analytics
on port 80
in the selected namespace, providing to the built-in dashboard of kube-opex-analytics
.