diff --git a/bitnami/kubewatch/Chart.yaml b/bitnami/kubewatch/Chart.yaml index ae0d3be927..60cdeaf6b4 100644 --- a/bitnami/kubewatch/Chart.yaml +++ b/bitnami/kubewatch/Chart.yaml @@ -28,4 +28,4 @@ name: kubewatch sources: - https://github.com/bitnami/bitnami-docker-kubewatch - https://github.com/bitnami-labs/kubewatch -version: 3.0.5 +version: 3.1.0 diff --git a/bitnami/kubewatch/README.md b/bitnami/kubewatch/README.md index b89aa3e52b..da00ac7f84 100644 --- a/bitnami/kubewatch/README.md +++ b/bitnami/kubewatch/README.md @@ -44,109 +44,110 @@ The following tables lists the configurable parameters of the Kubewatch chart an ### Global parameters -| Parameter | Description | Default | -|-----------------------------------------|------------------------------------------------------------|---------------------------------------------------------| -| `global.imageRegistry` | Global Docker image registry | `nil` | -| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) | +| Parameter | Description | Default | +|---------------------------|-------------------------------------------------|---------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | +| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) | ### Common parameters -| Parameter | Description | Default | -|-----------------------------------------|------------------------------------------------------------|---------------------------------------------------------| -| `nameOverride` | String to partially override common.names.fullname | `nil` | -| `fullnameOverride` | String to fully override common.names.fullname | `nil` | -| `commonLabels` | Labels to add to all deployed objects | `{}` | -| `commonAnnotations` | Annotations to add to all deployed objects | `{}` | -| `clusterDomain` | Default Kubernetes cluster domain | `cluster.local` | -| `extraDeploy` | Array of extra objects to deploy with the release | `[]` (evaluated as a template) | +| Parameter | Description | Default | +|---------------------|----------------------------------------------------|--------------------------------| +| `nameOverride` | String to partially override common.names.fullname | `nil` | +| `fullnameOverride` | String to fully override common.names.fullname | `nil` | +| `commonLabels` | Labels to add to all deployed objects | `{}` | +| `commonAnnotations` | Annotations to add to all deployed objects | `{}` | +| `clusterDomain` | Default Kubernetes cluster domain | `cluster.local` | +| `extraDeploy` | Array of extra objects to deploy with the release | `[]` (evaluated as a template) | ### Kubewatch parameters -| Parameter | Description | Default | -|-----------------------------------------|------------------------------------------------------------------------------------------|---------------------------------------------------------| -| `image.registry` | Kubewatch image registry | `docker.io` | -| `image.repository` | Kubewatch image name | `bitnami/kubewatch` | -| `image.tag` | Kubewatch image tag | `{TAG_NAME}` | -| `image.pullPolicy` | Kubewatch image pull policy | `IfNotPresent` | -| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) | -| `slack.enabled` | Enable Slack notifications | `true` | -| `slack.channel` | Slack channel to notify | `""` | -| `slack.token` | Slack API token | `""` | -| `hipchat.enabled` | Enable HipChat notifications | `false` | -| `hipchat.url` | HipChat URL | `""` | -| `hipchat.room` | HipChat room to notify | `""` | -| `hipchat.token` | HipChat token | `""` | -| `mattermost.enabled` | Enable Mattermost notifications | `false` | -| `mattermost.channel` | Mattermost channel to notify | `""` | -| `mattermost.username` | Mattermost user to notify | `""` | -| `mattermost.url` | Mattermost URL | `""` | -| `flock.enabled` | Enable Flock notifications | `false` | -| `flock.url` | Flock URL | `""` | -| `msteams.enabled` | Enable Microsoft Teams notifications | `false` | -| `msteams.webhookurl` | Microsoft Teams webhook URL | `""` | -| `webhook.enabled` | Enable Webhook notifications | `false` | -| `webhook.url` | Webhook URL | `""` | -| `smtp.enabled` | Enable SMTP (email) notifications | `false` | -| `smtp.to` | Destination email address (required) | `""` | -| `smtp.from` | Source email address (required) | `""` | -| `smtp.smarthost` | SMTP server address (name:port) (required) | `""` | -| `smtp.hello` | SMTP hello field (optional) | `""` | -| `smtp.auth.username` | Username for LOGIN and PLAIN auth mech | `""` | -| `smtp.auth.password` | Password for LOGIN and PLAIN auth mech | `""` | -| `smtp.auth.identity` | Identity for PLAIN auth mech | `""` | -| `smtp.auth.secret` | Secret for CRAM-MD5 auth mech | `""` | -| `smtp.requireTLS` | Force STARTTLS | `false` | -| `namespaceToWatch` | namespace to watch, leave it empty for watching all | `""` | -| `resourcesToWatch` | list of resources which kubewatch should watch and notify slack | `{pod: true, deployment: true}` | -| `resourcesToWatch.pod` | watch changes to Pods | `true` | -| `resourcesToWatch.deployment` | watch changes to Deployments | `true` | -| `resourcesToWatch.replicationcontroller`| watch changes to ReplicationControllers | `false` | -| `resourcesToWatch.replicaset` | watch changes to ReplicaSets | `false` | -| `resourcesToWatch.daemonset` | watch changes to DaemonSets | `false` | -| `resourcesToWatch.services` | watch changes to Services | `false` | -| `resourcesToWatch.job` | watch changes to Jobs | `false` | -| `resourcesToWatch.persistentvolume` | watch changes to PersistentVolumes | `false` | -| `command` | Override default container command (useful when using custom images) | `nil` | -| `args` | Override default container args (useful when using custom images) | `nil` | -| `extraEnvVars` | Extra environment variables to be set on Kubewatch container | `{}` | -| `extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars | `nil` | -| `extraEnvVarsSecret` | Name of existing Secret containing extra env vars | `nil` | +| Parameter | Description | Default | +|------------------------------------------|----------------------------------------------------------------------|---------------------------------------------------------| +| `image.registry` | Kubewatch image registry | `docker.io` | +| `image.repository` | Kubewatch image name | `bitnami/kubewatch` | +| `image.tag` | Kubewatch image tag | `{TAG_NAME}` | +| `image.pullPolicy` | Kubewatch image pull policy | `IfNotPresent` | +| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) | +| `hostAliases` | Add deployment host aliases | `[]` | +| `slack.enabled` | Enable Slack notifications | `true` | +| `slack.channel` | Slack channel to notify | `""` | +| `slack.token` | Slack API token | `""` | +| `hipchat.enabled` | Enable HipChat notifications | `false` | +| `hipchat.url` | HipChat URL | `""` | +| `hipchat.room` | HipChat room to notify | `""` | +| `hipchat.token` | HipChat token | `""` | +| `mattermost.enabled` | Enable Mattermost notifications | `false` | +| `mattermost.channel` | Mattermost channel to notify | `""` | +| `mattermost.username` | Mattermost user to notify | `""` | +| `mattermost.url` | Mattermost URL | `""` | +| `flock.enabled` | Enable Flock notifications | `false` | +| `flock.url` | Flock URL | `""` | +| `msteams.enabled` | Enable Microsoft Teams notifications | `false` | +| `msteams.webhookurl` | Microsoft Teams webhook URL | `""` | +| `webhook.enabled` | Enable Webhook notifications | `false` | +| `webhook.url` | Webhook URL | `""` | +| `smtp.enabled` | Enable SMTP (email) notifications | `false` | +| `smtp.to` | Destination email address (required) | `""` | +| `smtp.from` | Source email address (required) | `""` | +| `smtp.smarthost` | SMTP server address (name:port) (required) | `""` | +| `smtp.hello` | SMTP hello field (optional) | `""` | +| `smtp.auth.username` | Username for LOGIN and PLAIN auth mech | `""` | +| `smtp.auth.password` | Password for LOGIN and PLAIN auth mech | `""` | +| `smtp.auth.identity` | Identity for PLAIN auth mech | `""` | +| `smtp.auth.secret` | Secret for CRAM-MD5 auth mech | `""` | +| `smtp.requireTLS` | Force STARTTLS | `false` | +| `namespaceToWatch` | namespace to watch, leave it empty for watching all | `""` | +| `resourcesToWatch` | list of resources which kubewatch should watch and notify slack | `{pod: true, deployment: true}` | +| `resourcesToWatch.pod` | watch changes to Pods | `true` | +| `resourcesToWatch.deployment` | watch changes to Deployments | `true` | +| `resourcesToWatch.replicationcontroller` | watch changes to ReplicationControllers | `false` | +| `resourcesToWatch.replicaset` | watch changes to ReplicaSets | `false` | +| `resourcesToWatch.daemonset` | watch changes to DaemonSets | `false` | +| `resourcesToWatch.services` | watch changes to Services | `false` | +| `resourcesToWatch.job` | watch changes to Jobs | `false` | +| `resourcesToWatch.persistentvolume` | watch changes to PersistentVolumes | `false` | +| `command` | Override default container command (useful when using custom images) | `nil` | +| `args` | Override default container args (useful when using custom images) | `nil` | +| `extraEnvVars` | Extra environment variables to be set on Kubewatch container | `{}` | +| `extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars | `nil` | +| `extraEnvVarsSecret` | Name of existing Secret containing extra env vars | `nil` | ### Kubewatch deployment parameters -| Parameter | Description | Default | -|---------------------------------------|--------------------------------------------------------------------------------------------|---------------------------------------------------------| -| `replicaCount` | Number of Kubewatch replicas to deploy | `1` | -| `podSecurityContext` | Kubewatch pods' Security Context | Check `values.yaml` file | -| `containerSecurityContext` | Kubewatch containers' Security Context | Check `values.yaml` file | -| `resources.limits` | The resources limits for the Kubewatch container | `{}` | -| `resources.requests` | The requested resources for the Kubewatch container | `{}` | -| `livenessProbe` | Liveness probe configuration for Kubewatch | Check `values.yaml` file | -| `readinessProbe` | Readiness probe configuration for Kubewatch | Check `values.yaml` file | -| `customLivenessProbe` | Override default liveness probe | `nil` | -| `customReadinessProbe` | Override default readiness probe | `nil` | -| `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 | `{}` (evaluated as a template) | -| `nodeSelector` | Node labels for pod assignment | `{}` (evaluated as a template) | -| `tolerations` | Tolerations for pod assignment | `[]` (evaluated as a template) | -| `podLabels` | Extra labels for Kubewatch pods | `{}` | -| `podAnnotations` | Annotations for Kubewatch pods | `{}` | -| `extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for Kubewatch container(s) | `[]` | -| `extraVolumes` | Optionally specify extra list of additional volumes for Kubewatch pods | `[]` | -| `initContainers` | Add additional init containers to the Kubewatch pods | `{}` (evaluated as a template) | -| `sidecars` | Add additional sidecar containers to the Kubewatch pods | `{}` (evaluated as a template) | +| Parameter | Description | Default | +|-----------------------------|-------------------------------------------------------------------------------------------|--------------------------------| +| `replicaCount` | Number of Kubewatch replicas to deploy | `1` | +| `podSecurityContext` | Kubewatch pods' Security Context | Check `values.yaml` file | +| `containerSecurityContext` | Kubewatch containers' Security Context | Check `values.yaml` file | +| `resources.limits` | The resources limits for the Kubewatch container | `{}` | +| `resources.requests` | The requested resources for the Kubewatch container | `{}` | +| `livenessProbe` | Liveness probe configuration for Kubewatch | Check `values.yaml` file | +| `readinessProbe` | Readiness probe configuration for Kubewatch | Check `values.yaml` file | +| `customLivenessProbe` | Override default liveness probe | `nil` | +| `customReadinessProbe` | Override default readiness probe | `nil` | +| `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 | `{}` (evaluated as a template) | +| `nodeSelector` | Node labels for pod assignment | `{}` (evaluated as a template) | +| `tolerations` | Tolerations for pod assignment | `[]` (evaluated as a template) | +| `podLabels` | Extra labels for Kubewatch pods | `{}` | +| `podAnnotations` | Annotations for Kubewatch pods | `{}` | +| `extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for Kubewatch container(s) | `[]` | +| `extraVolumes` | Optionally specify extra list of additional volumes for Kubewatch pods | `[]` | +| `initContainers` | Add additional init containers to the Kubewatch pods | `{}` (evaluated as a template) | +| `sidecars` | Add additional sidecar containers to the Kubewatch pods | `{}` (evaluated as a template) | ### RBAC parameters -| Parameter | Description | Default | -|-----------------------------------------|---------------------------------------------------------------------|---------------------------------------------------------| -| `serviceAccount.create` | Enable the creation of a ServiceAccount for Kubewatch pods | `true` | -| `serviceAccount.name` | Name of the created ServiceAccount | Generated using the `common.names.fullname` template | -| `rbac.create` | Weather to create & use RBAC resources or not | `false` | +| Parameter | Description | Default | +|-------------------------|------------------------------------------------------------|------------------------------------------------------| +| `serviceAccount.create` | Enable the creation of a ServiceAccount for Kubewatch pods | `true` | +| `serviceAccount.name` | Name of the created ServiceAccount | Generated using the `common.names.fullname` template | +| `rbac.create` | Weather to create & use RBAC resources or not | `false` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/bitnami/kubewatch/templates/deployment.yaml b/bitnami/kubewatch/templates/deployment.yaml index 0bd04fc959..0955934e05 100644 --- a/bitnami/kubewatch/templates/deployment.yaml +++ b/bitnami/kubewatch/templates/deployment.yaml @@ -26,6 +26,9 @@ spec: {{- end }} spec: {{- include "kubewatch.imagePullSecrets" . | nindent 6 }} + {{- if .Values.hostAliases }} + hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }} + {{- end }} {{- if .Values.affinity }} affinity: {{- include "common.tplvalues.render" (dict "value" .Values.affinity "context" $) | nindent 8 }} {{- else }} diff --git a/bitnami/kubewatch/values.yaml b/bitnami/kubewatch/values.yaml index 42bb96590d..2c162a9324 100644 --- a/bitnami/kubewatch/values.yaml +++ b/bitnami/kubewatch/values.yaml @@ -27,6 +27,11 @@ commonAnnotations: {} ## extraDeploy: [] +## Deployment pod host aliases +## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ +## +hostAliases: [] + ## Bitnami Kubewatch image version ## ref: https://hub.docker.com/r/bitnami/kubewatch/tags/ ## @@ -134,6 +139,7 @@ replicaCount: 1 podSecurityContext: enabled: false ## fsGroup: 1001 + ## ## Kubewatch pods' Security Context ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container @@ -142,6 +148,7 @@ containerSecurityContext: enabled: false ## runAsUser: 1001 ## runAsNonRoot: true + ## ## Kubewatch resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ @@ -203,6 +210,7 @@ podAntiAffinityPreset: soft nodeAffinityPreset: ## Node affinity type ## Allowed values: soft, hard + ## type: "" ## Node label key to match ## E.g.