* Fix global.imageRegistry nil value * Fix kubeVersion nil value * Fix nameOverride nil value * Fix fullnameOverride nil value * Fix storageClass nil value * Fix extraEnvVarsCM nil value * Fix extraEnvVarsSecret nil value * Fix targetCPU nil value * Fix existingConfigmap nil value * Fix clusterIP nil value * Fix nodePort nil value * Fix loadBalancerIP nil value * Fix nil values * Fix existingClaim nil value * Fix maxUnavailable nil value * Fix targetMemory nil value * Fix nil values * Fix namespace nil value * Fix command nil value * Fix args nil value * Fix nil values * Fix nil values * Fix nil values * Fix nil values, update README and bump chart version * Revert airfllow changes * Apply suggestions * redis,suitecrm - new version bump * Minor changes and update readmes * Update tensorflow-resnet version Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
wavefront-hpa-adapter
Wavefront HPA Adapter for Kubernetes Wavefront HPA Adapter for Kubernetes is a Kubernetes Horizontal Pod Autoscaler adapter. It enables Kubernetes workloads to be scaled based on Wavefront metrics.
TL;DR
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/wavefront-hpa-adapter
Introduction
Bitnami charts for Helm are carefully engineered, actively maintained and are the quickest and easiest way to deploy containers on a Kubernetes cluster that are ready to handle production workloads.
Wavefront HPA Adapter for Kubernetes Deployment in a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.
Prerequisites
- Kubernetes 1.12+
- Helm 3.1.0
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/wavefront-hpa-adapter
These commands deploy wavefront-hpa-adapter on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip
: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release helm release:
$ helm uninstall my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry |
Global Docker image registry | "" |
global.imagePullSecrets |
Global Docker registry secret names as an array | [] |
global.storageClass |
Global StorageClass for Persistent Volume(s) | "" |
kubeVersion |
Override Kubernetes version | "" |
nameOverride |
String to partially override common.names.fullname | "" |
fullnameOverride |
String to fully override common.names.fullname | "" |
commonLabels |
Labels to add to all deployed objects | {} |
commonAnnotations |
Annotations to add to all deployed objects | {} |
clusterDomain |
Kubernetes cluster domain name | cluster.local |
extraDeploy |
Array of extra objects to deploy with the release | [] |
Wavefront HPA Adapter for Kubernetes deployment parameters
| Name | Description | Value |
|---|---|---|
image.registry |
Adapter image registry | docker.io |
image.repository |
Adapter image repository | bitnami/wavefront-hpa-adapter |
image.tag |
Adapter image tag (immutabe tags are recommended) | 0.9.8-scratch-r2 |
image.pullPolicy |
Adapter image pull policy | IfNotPresent |
image.pullSecrets |
Adapter image pull secrets | [] |
image.debug |
Enable image debug mode | false |
livenessProbe.enabled |
Enable livenessProbe | true |
livenessProbe.initialDelaySeconds |
Initial delay seconds for livenessProbe | 10 |
livenessProbe.periodSeconds |
Period seconds for livenessProbe | 10 |
livenessProbe.timeoutSeconds |
Timeout seconds for livenessProbe | 1 |
livenessProbe.failureThreshold |
Failure threshold for livenessProbe | 3 |
livenessProbe.successThreshold |
Success threshold for livenessProbe | 1 |
readinessProbe.enabled |
Enable readinessProbe | true |
readinessProbe.initialDelaySeconds |
Initial delay seconds for readinessProbe | 10 |
readinessProbe.periodSeconds |
Period seconds for readinessProbe | 10 |
readinessProbe.timeoutSeconds |
Timeout seconds for readinessProbe | 1 |
readinessProbe.failureThreshold |
Failure threshold for readinessProbe | 3 |
readinessProbe.successThreshold |
Success threshold for readinessProbe | 1 |
command |
Override default container command (useful when using custom images) | [] |
args |
Override default container args (useful when using custom images) | [] |
hostAliases |
Add deployment host aliases | [] |
resources.limits |
The resources limits for the Adapter container | {} |
resources.requests |
The requested resourcesc for the Adapter container | {} |
containerSecurityContext.enabled |
Enabled Adapter containers' Security Context | true |
containerSecurityContext.runAsUser |
Set Adapter container's Security Context runAsUser | 1001 |
containerSecurityContext.runAsNonRoot |
Set Adapter container's Security Context runAsNonRoot | true |
podSecurityContext.enabled |
Enabled Adapter pods' Security Context | true |
podSecurityContext.fsGroup |
Set Adapter pod's Security Context fsGroup | 1001 |
podAffinityPreset |
Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard |
"" |
podAntiAffinityPreset |
Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard |
soft |
nodeAffinityPreset.type |
Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard |
"" |
nodeAffinityPreset.key |
Node label key to match. Ignored if affinity is set |
"" |
nodeAffinityPreset.values |
Node label values to match. Ignored if affinity is set |
[] |
affinity |
Affinity for pod assignment | {} |
nodeSelector |
Node labels for pod assignment | {} |
tolerations |
Tolerations for pod assignment | [] |
podLabels |
Extra labels for Adapter pods | {} |
podAnnotations |
Annotations for Adapter pods | {} |
priorityClassName |
Adapter pod priority | "" |
lifecycleHooks |
Add lifecycle hooks to the Adapter deployment | {} |
customLivenessProbe |
Override default liveness probe | {} |
customReadinessProbe |
Override default readiness probe | {} |
updateStrategy.type |
Adapter deployment update strategy | RollingUpdate |
containerPort |
Adapter container port | 6443 |
extraEnvVars |
Add extra environment variables to the Adapter container | [] |
extraEnvVarsCM |
Name of existing ConfigMap containing extra env vars | "" |
extraEnvVarsSecret |
Name of existing Secret containing extra env vars | "" |
extraVolumes |
Optionally specify extra list of additional volumes for Adapter pods | [] |
extraVolumeMounts |
Optionally specify extra list of additional volumeMounts for Adapter container(s) | [] |
initContainers |
Add additional init containers to the Adapter pods | [] |
sidecars |
Add additional sidecar containers to the Adapter pod | [] |
adapterMetricPrefix |
Adapter metric prefix parameter |
kubernetes |
adapterAPIClientTimeout |
Adapter API timeout | 10s |
adapterMetricRelistInterval |
Adapter metric relist interval | 10m |
adapterLogLevel |
Adapter log level | info |
adapterRules |
Adapter array of rules | [] |
adapterSSLCertDir |
Adapter SSL Certs directory | /etc/ssl/certs |
adapterSSLCertsSecret |
Adapter SSL Certs secret (will use autogenerated if empty) | "" |
wavefront.url |
External Wavefront URL | https://YOUR_CLUSTER.wavefront.com |
wavefront.token |
External Wavefront Token | YOUR_API_TOKEN |
Traffic Exposure Parameters
| Name | Description | Value |
|---|---|---|
service.type |
Adapter service type | ClusterIP |
service.port |
Adapter service port | 443 |
service.loadBalancerIP |
Adapter service LoadBalancer IP | "" |
service.loadBalancerSourceRanges |
loadBalancerIP source ranges for the Service | [] |
service.nodePorts.http |
NodePort for the HTTP endpoint | "" |
service.externalTrafficPolicy |
External traffic policy for the service | Cluster |
RBAC parameters
| Name | Description | Value |
|---|---|---|
rbac.create |
Weather to create & use RBAC resources or not | true |
serviceAccount.create |
Enable the creation of a ServiceAccount for Reconciler pods | true |
serviceAccount.name |
Name of the created ServiceAccount | "" |
apiService.create |
Create the APIService objects in Kubernetes API | true |
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
$ helm install my-release \
--set livenessProbe.successThreshold=5 \
bitnami/wavefront-hpa-adapter
The above command sets the livenessProbe.successThreshold to 5.
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
$ helm install my-release -f values.yaml bitnami/wavefront-hpa-adapter
Configuration and installation details
Rolling VS Immutable tags
It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image.
Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.
Connecting to a Wavefront instance
Wavefront HPA for Kubernetes only works when setting a Wavefront SaaS instance with a proper API token. This is done by setting the wavefront.url and wavefront.token values. Sign up for an account in the official Wavefront page.
Troubleshooting
Find more information about how to deal with common errors related to Bitnami’s Helm charts in this troubleshooting guide.
Upgrading
$ helm upgrade my-release bitnami/wavefront-hpa-adapter