[bitnami/jaeger] Add Jaeger chart (#13480)

* Add Jaeger chart

Signed-off-by: Alberto Otero Lorenzo <lorenzoa@vmware.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
Co-authored-by: Jose Antonio Carmona <jcarmona@vmware.com>
This commit is contained in:
Alberto Otero
2022-12-20 12:50:50 +01:00
committed by GitHub
co-authored by Bitnami Containers Javier Salmeron Garcia Jose Antonio Carmona
parent 1601a1b831
commit 73307cd8e0
24 changed files with 3114 additions and 0 deletions
+1
View File
@@ -35,6 +35,7 @@ on: # rebuild any PRs and main branch changes
- 'bitnami/haproxy-intel/**'
- 'bitnami/harbor/**'
- 'bitnami/influxdb/**'
- 'bitnami/jaeger/**'
- 'bitnami/jasperreports/**'
- 'bitnami/jenkins/**'
- 'bitnami/joomla/**'
+3
View File
@@ -0,0 +1,3 @@
{
"baseUrl": "http://localhost"
}
@@ -0,0 +1,23 @@
/// <reference types="cypress" />
it('lists and retrieves jaeger traces', () => {
// The container we use to create traces, uses 'redis' as a service name
const testService = 'redis';
const currentDate = new Date();
const timestampMillis = currentDate.getTime() * 1000;
cy.visit(`/search?end=${timestampMillis}&limit=20&lookback=1h&maxDuration&minDuration&service=${testService}&start=0`);
cy.contains('a', '/dispatch').invoke('attr', 'href').then((href) => {
const traceID = href.substring(href.lastIndexOf('/') + 1, href.length);
cy.request({
method: 'GET',
url: `/api/traces/${traceID}`
}).then((response) => {
expect(response.status).to.eq(200);
expect(response.body.data[0].traceID).to.eq(traceID);
});
})
});
+33
View File
@@ -0,0 +1,33 @@
addr:
tcp://localhost:{{ .Vars.agent.containerPorts.config }}:
reachable: true
http:
http://jaeger--agent:{{ .Vars.agent.service.ports.admin }}/:
status: 200
body:
- Server available
http://jaeger-collector:{{ .Vars.collector.service.ports.admin }}/:
status: 200
body:
- Server available
http://jaeger-query:{{ .Vars.query.service.ports.admin }}/:
status: 200
body:
- Server available
http://localhost:{{ .Vars.agent.containerPorts.admin }}/:
status: 200
file:
/var/run/secrets/kubernetes.io/serviceaccount:
exists: {{ .Vars.agent.serviceAccount.automountServiceAccountToken }}
filetype: directory
mode: "3777"
command:
check-cassandra-auth:
exec: \[ $CASSANDRA_USERNAME = {{ .Vars.cassandra.dbUser.user }} ] && [ $CASSANDRA_PASSWORD = {{ .Vars.cassandra.dbUser.password }} ] && [ $CASSANDRA_KEYSPACE = {{ .Vars.cassandra.keyspace }} ];
exit-status: 0
check-user-info:
exec: id
exit-status: 0
stdout:
- uid={{ .Vars.agent.containerSecurityContext.runAsUser }}
- /groups=.*{{ .Vars.agent.podSecurityContext.fsGroup }}/
+26
View File
@@ -0,0 +1,26 @@
query:
service:
ports:
admin: 16688
collector:
service:
ports:
admin: 14270
agent:
service:
ports:
admin: 14272
containerPorts:
config: 5779
admin: 14272
podSecurityContext:
fsGroup: 1002
containerSecurityContext:
runAsUser: 1002
serviceAccount:
automountServiceAccountToken: true
cassandra:
keyspace: bitnami_test_jaeger
dbUser:
user: bn_test_jaeger
password: bn_test_jaeger
+81
View File
@@ -0,0 +1,81 @@
{
"phases": {
"package": {
"context": {
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "/bitnami/jaeger"
}
},
"actions": [
{
"action_id": "helm-package"
},
{
"action_id": "helm-lint"
}
]
},
"verify": {
"context": {
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "/bitnami/jaeger"
},
"runtime_parameters": "cXVlcnk6CiAgc2VydmljZToKICAgIHR5cGU6IExvYWRCYWxhbmNlcgogICAgcG9ydHM6CiAgICAgIGFkbWluOiAxNjY4OAogICAgICBhcGk6IDgwCmNvbGxlY3RvcjoKICBzZXJ2aWNlOgogICAgcG9ydHM6CiAgICAgIGFkbWluOiAxNDI3MAphZ2VudDoKICBzZXJ2aWNlOgogICAgcG9ydHM6CiAgICAgIGFkbWluOiAxNDI3MgogIGNvbnRhaW5lclBvcnRzOgogICAgY29uZmlnOiA1Nzc5CiAgICBhZG1pbjogMTQyNzIKICBwb2RTZWN1cml0eUNvbnRleHQ6CiAgICBlbmFibGVkOiB0cnVlCiAgICBmc0dyb3VwOiAxMDAyCiAgY29udGFpbmVyU2VjdXJpdHlDb250ZXh0OgogICAgZW5hYmxlZDogdHJ1ZQogICAgcnVuQXNVc2VyOiAxMDAyCiAgc2VydmljZUFjY291bnQ6CiAgICBjcmVhdGU6IHRydWUKICAgIGF1dG9tb3VudFNlcnZpY2VBY2NvdW50VG9rZW46IHRydWUKICBzaWRlY2FyczoKICAgIC0gbmFtZTogaG90cm9kLWV4YW1wbGUKICAgICAgaW1hZ2U6IGphZWdlcnRyYWNpbmcvZXhhbXBsZS1ob3Ryb2Q6MS4zOQogICAgICBhcmdzOgogICAgICAgIC0gYWxsCiAgICAtIG5hbWU6IHRyYWNlLWdlbmVyYXRvcgogICAgICBpbWFnZTogYml0bmFtaS9iaXRuYW1pLXNoZWxsOjExLWRlYmlhbi0xMS1yNTcKICAgICAgY29tbWFuZDoKICAgICAgICAtIC9iaW4vYmFzaAogICAgICAgIC0gLWVjCiAgICAgICAgLSB8CiAgICAgICAgICAjIS9iaW4vYmFzaAogICAgICAgICAgd2hpbGUgdHJ1ZTsgZG8KICAgICAgICAgICAgIyBTYW1wbGUgdGFrZW4gZnJvbSBpbnNwZWN0aW5nIGhvdHJvZCBjb2RlCiAgICAgICAgICAgIGN1cmwgJ2h0dHA6Ly8xMjcuMC4wLjE6ODA4MC9kaXNwYXRjaD9jdXN0b21lcj0zOTImbm9uc2U9MC40NTgzODg4NDcxMDUwMTcyNicKICAgICAgICAgICAgc2xlZXAgNQogICAgICAgICAgZG9uZQpjYXNzYW5kcmE6CiAgZW5hYmxlZDogdHJ1ZQogIGtleXNwYWNlOiBiaXRuYW1pX3Rlc3RfamFlZ2VyCiAgZGJVc2VyOgogICAgdXNlcjogYm5fdGVzdF9qYWVnZXIKICAgIHBhc3N3b3JkOiBibl90ZXN0X2phZWdlcg==",
"target_platform": {
"target_platform_id": "{VIB_ENV_TARGET_PLATFORM}",
"size": {
"name": "M4"
}
}
},
"actions": [
{
"action_id": "health-check",
"params": {
"endpoint": "lb-jaeger-query-api",
"app_protocol": "HTTP"
}
},
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib/jaeger/goss"
},
"remote": {
"workload": "deploy-jaeger--agent"
},
"vars_file": "vars.yaml"
}
},
{
"action_id": "cypress",
"params": {
"resources": {
"path": "/.vib/jaeger/cypress"
},
"endpoint": "lb-jaeger-query-api",
"app_protocol": "HTTP"
}
}
]
},
"publish": {
"actions": [
{
"action_id": "helm-publish",
"params": {
"repository": {
"kind": "S3",
"url": "{VIB_ENV_S3_URL}",
"username": "{VIB_ENV_S3_USERNAME}",
"password": "{VIB_ENV_S3_PASSWORD}"
}
}
}
]
}
}
}
+66
View File
@@ -0,0 +1,66 @@
{
"phases": {
"package": {
"context": {
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "/bitnami/jaeger"
}
},
"actions": [
{
"action_id": "helm-package"
},
{
"action_id": "helm-lint"
}
]
},
"verify": {
"context": {
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "/bitnami/jaeger"
},
"runtime_parameters": "cXVlcnk6CiAgc2VydmljZToKICAgIHR5cGU6IExvYWRCYWxhbmNlcgogICAgcG9ydHM6CiAgICAgIGFkbWluOiAxNjY4OAogICAgICBhcGk6IDgwCmNvbGxlY3RvcjoKICBzZXJ2aWNlOgogICAgcG9ydHM6CiAgICAgIGFkbWluOiAxNDI3MAphZ2VudDoKICBzZXJ2aWNlOgogICAgcG9ydHM6CiAgICAgIGFkbWluOiAxNDI3MgogIGNvbnRhaW5lclBvcnRzOgogICAgY29uZmlnOiA1Nzc5CiAgICBhZG1pbjogMTQyNzIKICBwb2RTZWN1cml0eUNvbnRleHQ6CiAgICBlbmFibGVkOiB0cnVlCiAgICBmc0dyb3VwOiAxMDAyCiAgY29udGFpbmVyU2VjdXJpdHlDb250ZXh0OgogICAgZW5hYmxlZDogdHJ1ZQogICAgcnVuQXNVc2VyOiAxMDAyCiAgc2VydmljZUFjY291bnQ6CiAgICBjcmVhdGU6IHRydWUKICAgIGF1dG9tb3VudFNlcnZpY2VBY2NvdW50VG9rZW46IHRydWUKICBzaWRlY2FyczoKICAgIC0gbmFtZTogaG90cm9kLWV4YW1wbGUKICAgICAgaW1hZ2U6IGphZWdlcnRyYWNpbmcvZXhhbXBsZS1ob3Ryb2Q6MS4zOQogICAgICBhcmdzOgogICAgICAgIC0gYWxsCiAgICAtIG5hbWU6IHRyYWNlLWdlbmVyYXRvcgogICAgICBpbWFnZTogYml0bmFtaS9iaXRuYW1pLXNoZWxsOjExLWRlYmlhbi0xMS1yNTcKICAgICAgY29tbWFuZDoKICAgICAgICAtIC9iaW4vYmFzaAogICAgICAgIC0gLWVjCiAgICAgICAgLSB8CiAgICAgICAgICAjIS9iaW4vYmFzaAogICAgICAgICAgd2hpbGUgdHJ1ZTsgZG8KICAgICAgICAgICAgIyBTYW1wbGUgdGFrZW4gZnJvbSBpbnNwZWN0aW5nIGhvdHJvZCBjb2RlCiAgICAgICAgICAgIGN1cmwgJ2h0dHA6Ly8xMjcuMC4wLjE6ODA4MC9kaXNwYXRjaD9jdXN0b21lcj0zOTImbm9uc2U9MC40NTgzODg4NDcxMDUwMTcyNicKICAgICAgICAgICAgc2xlZXAgNQogICAgICAgICAgZG9uZQpjYXNzYW5kcmE6CiAgZW5hYmxlZDogdHJ1ZQogIGtleXNwYWNlOiBiaXRuYW1pX3Rlc3RfamFlZ2VyCiAgZGJVc2VyOgogICAgdXNlcjogYm5fdGVzdF9qYWVnZXIKICAgIHBhc3N3b3JkOiBibl90ZXN0X2phZWdlcg==",
"target_platform": {
"target_platform_id": "{VIB_ENV_TARGET_PLATFORM}",
"size": {
"name": "M4"
}
}
},
"actions": [
{
"action_id": "health-check",
"params": {
"endpoint": "lb-jaeger-query-api",
"app_protocol": "HTTP"
}
},
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib/jaeger/goss"
},
"remote": {
"workload": "deploy-jaeger--agent"
},
"vars_file": "vars.yaml"
}
},
{
"action_id": "cypress",
"params": {
"resources": {
"path": "/.vib/jaeger/cypress"
},
"endpoint": "lb-jaeger-query-api",
"app_protocol": "HTTP"
}
}
]
}
}
}
+21
View File
@@ -0,0 +1,21 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
+9
View File
@@ -0,0 +1,9 @@
dependencies:
- name: cassandra
repository: https://charts.bitnami.com/bitnami
version: 9.7.7
- name: common
repository: https://charts.bitnami.com/bitnami
version: 2.2.2
digest: sha256:67b8e92719d59da97775177e0447b474932e508cbc520d894b1dd9e38a1c4f44
generated: "2022-12-15T13:51:30.913117+01:00"
+30
View File
@@ -0,0 +1,30 @@
annotations:
category: Infrastructure
apiVersion: v2
appVersion: 1.39.0
dependencies:
- condition: cassandra.enabled
name: cassandra
repository: https://charts.bitnami.com/bitnami
version: 9.x.x
- name: common
repository: https://charts.bitnami.com/bitnami
tags:
- bitnami-common
version: 2.x.x
description: Distributed tracing platform for monitoring microservices-based distributed systems.
engine: gotpl
home: https://github.com/bitnami/charts/tree/main/bitnami/jaeger
icon: https://bitnami.com/assets/stacks/jaeger/img/jaeger-stack-220x234.png
keywords:
- jaeger
- tracing
- monitoring
maintainers:
- name: Bitnami
url: https://github.com/bitnami/charts
name: jaeger
sources:
- https://github.com/jaegertracing/jaeger
- https://www.jaegertracing.io/
version: 0.1.0
+467
View File
@@ -0,0 +1,467 @@
<!--- app-name: Jaeger -->
# Jaeger packaged by Bitnami
Jaeger is a Distributed Tracing System
[Overview of Jaeger](https://www.jaegertracing.io/)
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
## TL;DR
```console
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/jaeger
```
## Introduction
This chart bootstraps a [jaeger](https://github.com/bitnami/containers/tree/main/bitnami/jaeger) deployment on a [Kubernetes](https://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
Bitnami charts can be used with [Kubeapps](https://kubeapps.dev/) for deployment and management of Helm Charts in clusters.
## Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
- ReadWriteMany volumes for deployment scaling
## Installing the Chart
To install the chart with the release name `my-release`:
```console
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/jaeger
```
These commands deploy jaeger on the Kubernetes cluster in the default configuration. The [Parameters](#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` statefulset:
```console
$ helm delete my-release
```
The command removes all the Kubernetes components associated with the chart and deletes the release. Use the option `--purge` to delete all history too.
## 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) | `""` |
### Common parameters
| Name | Description | Value |
| ------------------------ | --------------------------------------------------------------------------------------- | -------------- |
| `nameOverride` | String to partially override common.names.fullname | `""` |
| `fullnameOverride` | String to fully override common.names.fullname | `""` |
| `kubeVersion` | Force target Kubernetes version (using Helm capabilities if not set) | `""` |
| `commonLabels` | Labels to add to all deployed objects (sub-charts are not considered) | `{}` |
| `commonAnnotations` | Annotations to add to all deployed objects | `{}` |
| `diagnosticMode.enabled` | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | `false` |
| `diagnosticMode.command` | Command to override all containers in the deployment | `["sleep"]` |
| `diagnosticMode.args` | Args to override all containers in the deployment | `["infinity"]` |
### Jaeger parameters
| Name | Description | Value |
| ------------------- | ------------------------------------------------------------------------------------------------------ | --------------------- |
| `image.registry` | Jaeger image registry | `docker.io` |
| `image.repository` | Jaeger image repository | `bitnami/jaeger` |
| `image.tag` | Jaeger image tag (immutable tags are recommended) | `1.39.0-debian-11-r4` |
| `image.digest` | Jaeger image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` |
| `image.pullPolicy` | image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Jaeger image pull secrets | `[]` |
| `image.debug` | Enable image debug mode | `false` |
### Query deployment parameters
| Name | Description | Value |
| --------------------------------------------------- | ----------------------------------------------------------------------------------------- | --------------- |
| `query.command` | Command for running the container (set to default if not set). Use array form | `[]` |
| `query.args` | Args for running the container (set to default if not set). Use array form | `[]` |
| `query.lifecycleHooks` | Override default etcd container hooks | `{}` |
| `query.extraEnvVars` | Extra environment variables to be set on jaeger container | `[]` |
| `query.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars | `""` |
| `query.extraEnvVarsSecret` | Name of existing Secret containing extra env vars | `""` |
| `query.replicaCount` | Number of Jaeger replicas | `1` |
| `query.livenessProbe.enabled` | Enable livenessProbe on Query nodes | `true` |
| `query.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `10` |
| `query.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `10` |
| `query.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `1` |
| `query.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `3` |
| `query.livenessProbe.successThreshold` | Success threshold for livenessProbe | `1` |
| `query.startupProbe.enabled` | Enable startupProbe on Query containers | `false` |
| `query.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` |
| `query.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` |
| `query.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `1` |
| `query.startupProbe.failureThreshold` | Failure threshold for startupProbe | `15` |
| `query.startupProbe.successThreshold` | Success threshold for startupProbe | `1` |
| `query.readinessProbe.enabled` | Enable readinessProbe | `false` |
| `query.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` |
| `query.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` |
| `query.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `1` |
| `query.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `15` |
| `query.readinessProbe.successThreshold` | Success threshold for readinessProbe | `1` |
| `query.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` |
| `query.customStartupProbe` | Override default startup probe | `{}` |
| `query.customReadinessProbe` | Override default readiness probe | `{}` |
| `query.resources.limits` | The resources limits for Jaeger containers | `{}` |
| `query.resources.requests` | The requested resources for Jaeger containers | `{}` |
| `query.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for jaeger container | `[]` |
| `query.containerPorts.api` | Port for API | `16686` |
| `query.containerPorts.admin` | Port for admin | `16687` |
| `query.service.type` | Jaeger service type | `ClusterIP` |
| `query.service.ports.api` | Port for API | `16686` |
| `query.service.ports.admin` | Port for admin | `16687` |
| `query.service.nodePorts.api` | Node port for API | `""` |
| `query.service.nodePorts.admin` | Node port for admin | `""` |
| `query.service.extraPorts` | Extra ports to expose in the service (normally used with the `sidecar` value) | `[]` |
| `query.service.loadBalancerIP` | LoadBalancerIP if service type is `LoadBalancer` | `""` |
| `query.service.loadBalancerSourceRanges` | Service Load Balancer sources | `[]` |
| `query.service.clusterIP` | Service Cluster IP | `""` |
| `query.service.externalTrafficPolicy` | Service external traffic policy | `Cluster` |
| `query.service.annotations` | Provide any additional annotations which may be required. | `{}` |
| `query.service.sessionAffinity` | Session Affinity for Kubernetes service, can be "None" or "ClientIP" | `None` |
| `query.service.sessionAffinityConfig` | Additional settings for the sessionAffinity | `{}` |
| `query.service.metrics.annotations` | Annotations for Prometheus metrics | `{}` |
| `query.serviceAccount.create` | Enables ServiceAccount | `true` |
| `query.serviceAccount.name` | ServiceAccount name | `""` |
| `query.serviceAccount.annotations` | Annotations to add to all deployed objects | `{}` |
| `query.serviceAccount.automountServiceAccountToken` | Automount API credentials for a service account. | `true` |
| `query.podSecurityContext.enabled` | Enabled Jaeger pods' Security Context | `true` |
| `query.podSecurityContext.fsGroup` | Set Jaeger pod's Security Context fsGroup | `1001` |
| `query.containerSecurityContext.enabled` | Enabled Jaeger containers' Security Context | `true` |
| `query.containerSecurityContext.runAsUser` | Set Jaeger container's Security Context runAsUser | `1001` |
| `query.containerSecurityContext.runAsNonRoot` | Force the container to be run as non root | `true` |
| `query.podAnnotations` | Additional pod annotations | `{}` |
| `query.podLabels` | Additional pod labels | `{}` |
| `query.podAffinityPreset` | Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `query.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `soft` |
| `query.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `query.nodeAffinityPreset.key` | Node label key to match. Ignored if `affinity` is set | `""` |
| `query.nodeAffinityPreset.values` | Node label values to match. Ignored if `affinity` is set | `[]` |
| `query.priorityClassName` | Server priorityClassName | `""` |
| `query.affinity` | Affinity for pod assignment | `{}` |
| `query.nodeSelector` | Node labels for pod assignment | `{}` |
| `query.tolerations` | Tolerations for pod assignment | `[]` |
| `query.topologySpreadConstraints` | Topology Spread Constraints for pod assignment | `[]` |
| `query.schedulerName` | Alternative scheduler | `""` |
| `query.updateStrategy.type` | Jaeger query deployment strategy type | `RollingUpdate` |
| `query.updateStrategy.rollingUpdate` | Jaeger query deployment rolling update configuration parameters | `{}` |
| `query.extraVolumes` | Optionally specify extra list of additional volumes for jaeger container | `[]` |
| `query.initContainers` | Add additional init containers to the jaeger pods | `[]` |
| `query.sidecars` | Add additional sidecar containers to the jaeger pods | `[]` |
### Collector deployment parameters
| Name | Description | Value |
| ------------------------------------------------------- | ------------------------------------------------------------------------------------------ | --------------- |
| `collector.command` | Command for running the container (set to default if not set). Use array form | `[]` |
| `collector.args` | Args for running the container (set to default if not set). Use array form | `[]` |
| `collector.lifecycleHooks` | Override default etcd container hooks | `{}` |
| `collector.extraEnvVars` | Extra environment variables to be set on jaeger container | `[]` |
| `collector.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars | `""` |
| `collector.extraEnvVarsSecret` | Name of existing Secret containing extra env vars | `""` |
| `collector.replicaCount` | Number of Jaeger replicas | `1` |
| `collector.livenessProbe.enabled` | Enable livenessProbe on collector nodes | `true` |
| `collector.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `10` |
| `collector.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `10` |
| `collector.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `1` |
| `collector.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `3` |
| `collector.livenessProbe.successThreshold` | Success threshold for livenessProbe | `1` |
| `collector.startupProbe.enabled` | Enable startupProbe on collector containers | `false` |
| `collector.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` |
| `collector.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` |
| `collector.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `1` |
| `collector.startupProbe.failureThreshold` | Failure threshold for startupProbe | `15` |
| `collector.startupProbe.successThreshold` | Success threshold for startupProbe | `1` |
| `collector.readinessProbe.enabled` | Enable readinessProbe | `false` |
| `collector.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` |
| `collector.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` |
| `collector.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `1` |
| `collector.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `15` |
| `collector.readinessProbe.successThreshold` | Success threshold for readinessProbe | `1` |
| `collector.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` |
| `collector.customStartupProbe` | Override default startup probe | `{}` |
| `collector.customReadinessProbe` | Override default readiness probe | `{}` |
| `collector.resources.limits` | The resources limits for Jaeger containers | `{}` |
| `collector.resources.requests` | The requested resources for Jaeger containers | `{}` |
| `collector.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for jaeger container | `[]` |
| `collector.containerPorts.zipkin` | can accept Zipkin spans in Thrift, JSON and Proto (disabled by default) | `9411` |
| `collector.containerPorts.grpc` | used by jaeger-agent to send spans in model.proto format | `14250` |
| `collector.containerPorts.binary` | can accept spans directly from clients in jaeger.thrift format over binary thrift protocol | `14268` |
| `collector.containerPorts.admin` | Admin port: health check at / and metrics at /metrics | `14269` |
| `collector.service.type` | Jaeger service type | `ClusterIP` |
| `collector.service.ports.zipkin` | can accept Zipkin spans in Thrift, JSON and Proto (disabled by default) | `9411` |
| `collector.service.ports.grpc` | used by jaeger-agent to send spans in model.proto format | `14250` |
| `collector.service.ports.binary` | can accept spans directly from clients in jaeger.thrift format over binary thrift protocol | `14268` |
| `collector.service.ports.admin` | Admin port: health check at / and metrics at /metrics | `14269` |
| `collector.service.nodePorts.zipkin` | can accept Zipkin spans in Thrift, JSON and Proto (disabled by default) | `""` |
| `collector.service.nodePorts.grpc` | used by jaeger-agent to send spans in model.proto format | `""` |
| `collector.service.nodePorts.binary` | can accept spans directly from clients in jaeger.thrift format over binary thrift protocol | `""` |
| `collector.service.nodePorts.admin` | Admin port: health check at / and metrics at /metrics | `""` |
| `collector.service.extraPorts` | Extra ports to expose in the service (normally used with the `sidecar` value) | `[]` |
| `collector.service.loadBalancerIP` | LoadBalancerIP if service type is `LoadBalancer` | `""` |
| `collector.service.loadBalancerSourceRanges` | Service Load Balancer sources | `[]` |
| `collector.service.clusterIP` | Service Cluster IP | `""` |
| `collector.service.externalTrafficPolicy` | Service external traffic policy | `Cluster` |
| `collector.service.annotations` | Provide any additional annotations which may be required. | `{}` |
| `collector.service.sessionAffinity` | Session Affinity for Kubernetes service, can be "None" or "ClientIP" | `None` |
| `collector.service.sessionAffinityConfig` | Additional settings for the sessionAffinity | `{}` |
| `collector.service.metrics.annotations` | Annotations for Prometheus metrics | `{}` |
| `collector.serviceAccount.create` | Enables ServiceAccount | `true` |
| `collector.serviceAccount.name` | ServiceAccount name | `""` |
| `collector.serviceAccount.annotations` | Annotations to add to all deployed objects | `{}` |
| `collector.serviceAccount.automountServiceAccountToken` | Automount API credentials for a service account. | `true` |
| `collector.podSecurityContext.enabled` | Enabled Jaeger pods' Security Context | `true` |
| `collector.podSecurityContext.fsGroup` | Set Jaeger pod's Security Context fsGroup | `1001` |
| `collector.containerSecurityContext.enabled` | Enabled Jaeger containers' Security Context | `true` |
| `collector.containerSecurityContext.runAsUser` | Set Jaeger container's Security Context runAsUser | `1001` |
| `collector.containerSecurityContext.runAsNonRoot` | Force the container to be run as non root | `true` |
| `collector.podAnnotations` | Additional pod annotations | `{}` |
| `collector.podLabels` | Additional pod labels | `{}` |
| `collector.podAffinityPreset` | Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `collector.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `soft` |
| `collector.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `collector.nodeAffinityPreset.key` | Node label key to match. Ignored if `affinity` is set | `""` |
| `collector.nodeAffinityPreset.values` | Node label values to match. Ignored if `affinity` is set | `[]` |
| `collector.priorityClassName` | Server priorityClassName | `""` |
| `collector.affinity` | Affinity for pod assignment | `{}` |
| `collector.nodeSelector` | Node labels for pod assignment | `{}` |
| `collector.tolerations` | Tolerations for pod assignment | `[]` |
| `collector.topologySpreadConstraints` | Topology Spread Constraints for pod assignment | `[]` |
| `collector.schedulerName` | Alternative scheduler | `""` |
| `collector.updateStrategy.type` | Jaeger collector deployment strategy type | `RollingUpdate` |
| `collector.updateStrategy.rollingUpdate` | Jaeger collector deployment rolling update configuration parameters | `{}` |
| `collector.extraVolumes` | Optionally specify extra list of additional volumes for jaeger container | `[]` |
| `collector.initContainers` | Add additional init containers to the jaeger pods | `[]` |
| `collector.sidecars` | Add additional sidecar containers to the jaeger pods | `[]` |
### agent deployment parameters
| Name | Description | Value |
| --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | --------------- |
| `agent.command` | Command for running the container (set to default if not set). Use array form | `[]` |
| `agent.args` | Args for running the container (set to default if not set). Use array form | `[]` |
| `agent.lifecycleHooks` | Override default etcd container hooks | `{}` |
| `agent.extraEnvVars` | Extra environment variables to be set on jaeger container | `[]` |
| `agent.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars | `""` |
| `agent.extraEnvVarsSecret` | Name of existing Secret containing extra env vars | `""` |
| `agent.replicaCount` | Number of Jaeger replicas | `1` |
| `agent.livenessProbe.enabled` | Enable livenessProbe on agent nodes | `true` |
| `agent.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `10` |
| `agent.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `10` |
| `agent.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `1` |
| `agent.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `3` |
| `agent.livenessProbe.successThreshold` | Success threshold for livenessProbe | `1` |
| `agent.startupProbe.enabled` | Enable startupProbe on agent containers | `false` |
| `agent.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` |
| `agent.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` |
| `agent.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `1` |
| `agent.startupProbe.failureThreshold` | Failure threshold for startupProbe | `15` |
| `agent.startupProbe.successThreshold` | Success threshold for startupProbe | `1` |
| `agent.readinessProbe.enabled` | Enable readinessProbe | `false` |
| `agent.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` |
| `agent.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` |
| `agent.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `1` |
| `agent.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `15` |
| `agent.readinessProbe.successThreshold` | Success threshold for readinessProbe | `1` |
| `agent.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` |
| `agent.customStartupProbe` | Override default startup probe | `{}` |
| `agent.customReadinessProbe` | Override default readiness probe | `{}` |
| `agent.resources.limits` | The resources limits for Jaeger containers | `{}` |
| `agent.resources.requests` | The requested resources for Jaeger containers | `{}` |
| `agent.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for jaeger container | `[]` |
| `agent.containerPorts.compact` | accept jaeger.thrift in compact Thrift protocol used by most current Jaeger clients | `6831` |
| `agent.containerPorts.binary` | accept jaeger.thrift in binary Thrift protocol used by Node.js Jaeger client | `6832` |
| `agent.containerPorts.config` | Serve configs, sampling strategies | `5778` |
| `agent.containerPorts.zipkin` | Accept zipkin.thrift in compact Thrift protocol (deprecated; only used by very old Jaeger clients, circa 2016) | `5775` |
| `agent.containerPorts.admin` | Admin port: health check at / and metrics at /metrics | `14271` |
| `agent.service.type` | Jaeger service type | `ClusterIP` |
| `agent.service.ports.compact` | accept jaeger.thrift in compact Thrift protocol used by most current Jaeger clients | `6831` |
| `agent.service.ports.binary` | accept jaeger.thrift in binary Thrift protocol used by Node.js Jaeger client | `6832` |
| `agent.service.ports.config` | Serve configs, sampling strategies | `5778` |
| `agent.service.ports.zipkin` | Accept zipkin.thrift in compact Thrift protocol (deprecated; only used by very old Jaeger clients, circa 2016) | `5775` |
| `agent.service.ports.admin` | Admin port: health check at / and metrics at /metrics | `14271` |
| `agent.service.nodePorts.compact` | accept jaeger.thrift in compact Thrift protocol used by most current Jaeger clients | `""` |
| `agent.service.nodePorts.binary` | accept jaeger.thrift in binary Thrift protocol used by Node.js Jaeger client | `""` |
| `agent.service.nodePorts.config` | Serve configs, sampling strategies | `""` |
| `agent.service.nodePorts.zipkin` | Accept zipkin.thrift in compact Thrift protocol (deprecated; only used by very old Jaeger clients, circa 2016) | `""` |
| `agent.service.nodePorts.admin` | Admin port: health check at / and metrics at /metrics | `""` |
| `agent.service.extraPorts` | Extra ports to expose in the service (normally used with the `sidecar` value) | `[]` |
| `agent.service.loadBalancerIP` | LoadBalancerIP if service type is `LoadBalancer` | `""` |
| `agent.service.loadBalancerSourceRanges` | Service Load Balancer sources | `[]` |
| `agent.service.clusterIP` | Service Cluster IP | `""` |
| `agent.service.externalTrafficPolicy` | Service external traffic policy | `Cluster` |
| `agent.service.annotations` | Provide any additional annotations which may be required. | `{}` |
| `agent.service.sessionAffinity` | Session Affinity for Kubernetes service, can be "None" or "ClientIP" | `None` |
| `agent.service.sessionAffinityConfig` | Additional settings for the sessionAffinity | `{}` |
| `agent.service.metrics.annotations` | Annotations for Prometheus metrics | `{}` |
| `agent.serviceAccount.create` | Enables ServiceAccount | `true` |
| `agent.serviceAccount.name` | ServiceAccount name | `""` |
| `agent.serviceAccount.annotations` | Annotations to add to all deployed objects | `{}` |
| `agent.serviceAccount.automountServiceAccountToken` | Automount API credentials for a service account. | `true` |
| `agent.podSecurityContext.enabled` | Enabled Jaeger pods' Security Context | `true` |
| `agent.podSecurityContext.fsGroup` | Set Jaeger pod's Security Context fsGroup | `1001` |
| `agent.containerSecurityContext.enabled` | Enabled Jaeger containers' Security Context | `true` |
| `agent.containerSecurityContext.runAsUser` | Set Jaeger container's Security Context runAsUser | `1001` |
| `agent.containerSecurityContext.runAsNonRoot` | Force the container to be run as non root | `true` |
| `agent.podAnnotations` | Additional pod annotations | `{}` |
| `agent.podLabels` | Additional pod labels | `{}` |
| `agent.podAffinityPreset` | Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `agent.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `soft` |
| `agent.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `agent.nodeAffinityPreset.key` | Node label key to match. Ignored if `affinity` is set | `""` |
| `agent.nodeAffinityPreset.values` | Node label values to match. Ignored if `affinity` is set | `[]` |
| `agent.priorityClassName` | Server priorityClassName | `""` |
| `agent.affinity` | Affinity for pod assignment | `{}` |
| `agent.nodeSelector` | Node labels for pod assignment | `{}` |
| `agent.tolerations` | Tolerations for pod assignment | `[]` |
| `agent.topologySpreadConstraints` | Topology Spread Constraints for pod assignment | `[]` |
| `agent.schedulerName` | Alternative scheduler | `""` |
| `agent.updateStrategy.type` | Jaeger agent deployment strategy type | `RollingUpdate` |
| `agent.updateStrategy.rollingUpdate` | Jaeger agent deployment rolling update configuration parameters | `{}` |
| `agent.extraVolumes` | Optionally specify extra list of additional volumes for jaeger container | `[]` |
| `agent.initContainers` | Add additional init containers to the jaeger pods | `[]` |
| `agent.sidecars` | Add additional sidecar containers to the jaeger pods | `[]` |
| `migration.podLabels` | Additional pod labels | `{}` |
| `migration.podAnnotations` | Additional pod annotations | `{}` |
| `migration.annotations` | Provide any additional annotations which may be required. | `{}` |
| `migration.podSecurityContext.enabled` | Enabled Jaeger pods' Security Context | `true` |
| `migration.podSecurityContext.fsGroup` | Set Jaeger pod's Security Context fsGroup | `1001` |
| `migration.extraEnvVars` | Extra environment variables to be set on jaeger migration container | `[]` |
| `migration.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars | `""` |
| `migration.extraEnvVarsSecret` | Name of existing Secret containing extra env vars | `""` |
| `migration.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for jaeger container | `[]` |
| `migration.resources.limits` | The resources limits for Jaeger containers | `{}` |
| `migration.resources.requests` | The requested resources for Jaeger containers | `{}` |
| `migration.extraVolumes` | Optionally specify extra list of additional volumes for jaeger container | `[]` |
### Set the image to use for the migration job
| Name | Description | Value |
| -------------------------------------------- | --------------------------------------------------------------------------------------------------------- | ------------------- |
| `cqlshImage.registry` | Cassandra image registry | `docker.io` |
| `cqlshImage.repository` | Cassandra image repository | `bitnami/cassandra` |
| `cqlshImage.tag` | Cassandra image tag (immutable tags are recommended) | `4.0-debian-11` |
| `cqlshImage.digest` | Cassandra image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` |
| `cqlshImage.pullPolicy` | image pull policy | `IfNotPresent` |
| `cqlshImage.pullSecrets` | Cassandra image pull secrets | `[]` |
| `cqlshImage.debug` | Enable image debug mode | `false` |
| `externalDatabase.host` | External database host | `""` |
| `externalDatabase.port` | External database port | `9042` |
| `externalDatabase.dbUser.user` | Cassandra admin user | `bn_jaeger` |
| `externalDatabase.dbUser.password` | Password for `dbUser.user`. Randomly generated if empty | `""` |
| `externalDatabase.existingSecret` | Name of existing secret containing the database secret | `""` |
| `externalDatabase.existingSecretPasswordKey` | Name of existing secret key containing the database password secret key | `""` |
| `externalDatabase.cluster.datacenter` | Name for cassandra's jaeger datacenter | `dc1` |
| `externalDatabase.keyspace` | Name for cassandra's jaeger keyspace | `bitnami_jaeger` |
### Cassandra storage sub-chart
| Name | Description | Value |
| ------------------------------ | ------------------------------------------------------- | ---------------- |
| `cassandra.enabled` | Enables cassandra storage pod | `true` |
| `cassandra.cluster.datacenter` | Name for cassandra's jaeger datacenter | `dc1` |
| `cassandra.keyspace` | Name for cassandra's jaeger keyspace | `bitnami_jaeger` |
| `cassandra.dbUser.user` | Cassandra admin user | `bn_jaeger` |
| `cassandra.dbUser.password` | Password for `dbUser.user`. Randomly generated if empty | `""` |
| `cassandra.service.ports.cql` | Cassandra cql port | `9042` |
> **Tip**: You can use the default [values.yaml](values.yaml)
## Configuration and installation details
### [Rolling VS Immutable tags](https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/)
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.
### Persistence
The [Bitnami jaeger](https://github.com/bitnami/containers/tree/main/bitnami/jaeger) image stores the trace onto an external database. Persistent Volume Claims are used to keep the data across deployments.
### Additional environment variables
In case you want to add extra environment variables (useful for advanced operations like custom init scripts), you can use the `extraEnvVars` property inside each of the subsections: `collector`, `agent`, `query`.
```yaml
collector:
extraEnvVars:
- name: ENV_VAR_NAME
value: ENV_VAR_VALUE
agent:
extraEnvVars:
- name: ENV_VAR_NAME
value: ENV_VAR_VALUE
query:
extraEnvVars:
- name: ENV_VAR_NAME
value: ENV_VAR_VALUE
```
Alternatively, you can use a ConfigMap or a Secret with the environment variables. To do so, use the `extraEnvVarsCM` or the `extraEnvVarsSecret` values.
### Sidecars
If additional containers are needed in the same pod as jaeger (such as additional metrics or logging exporters), they can be defined using the `sidecars` parameter inside each of the subsections: `collector`, `agent`, `query` . If these sidecars export extra ports, extra port definitions can be added using the `service.extraPorts` parameter. [Learn more about configuring and using sidecar containers](https://docs.bitnami.com/kubernetes/infrastructure/jaeger/configuration/configure-sidecar-init-containers/).
### Pod affinity
This chart allows you to set your custom affinity using the `affinity` parameter. Find more information about Pod affinity in the [kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity).
As an alternative, use one of the preset configurations for pod affinity, pod anti-affinity, and node affinity available at the [bitnami/common](https://github.com/bitnami/charts/tree/main/bitnami/common#affinities) chart. To do so, set the `podAffinityPreset`, `podAntiAffinityPreset`, or `nodeAffinityPreset` parameters inside each of the subsections: `distributor`, `compactor`, `ingester`, `querier`, `queryFrontend` and `vulture`.
### External database support
You may want to have Jaeger connect to an external database rather than installing one inside your cluster. Typical reasons for this are to use a managed database service, or to share a common database server for all your applications. To achieve this, the chart allows you to specify credentials for an external database with the [`externalDatabase` parameter](#parameters). You should also disable the Cassandra installation with the `cassandra.enabled` option. Here is an example:
```console
cassandra.enabled=false
externalDatabase.host=myexternalhost
externalDatabase.port=9042
```
## Troubleshooting
Find more information about how to deal with common errors related to Bitnami's Helm charts in [this troubleshooting guide](https://docs.bitnami.com/general/how-to/troubleshoot-helm-chart-issues).
## License
Copyright &copy; 2022 Bitnami
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+23
View File
@@ -0,0 +1,23 @@
CHART NAME: {{ .Chart.Name }}
CHART VERSION: {{ .Chart.Version }}
APP VERSION: {{ .Chart.AppVersion }}
** Please be patient while the chart is being deployed **
1. Get the application URL by running these commands:
{{- if contains "NodePort" .Values.query.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "common.names.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.query.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "common.names.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ include "jaeger.query.fullname" . }} {{ include "common.names.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo http://$SERVICE_IP:{{ .Values.query.service.ports.api }}
{{- else if contains "ClusterIP" .Values.query.service.type }}
echo "Browse to http://127.0.0.1:8080"
kubectl port-forward svc/{{ include "common.names.fullname" . }} 8080:{{ .Values.query.service.ports.api }} &
{{- end }}
{{- include "common.warnings.rollingTag" .Values.image }}
+229
View File
@@ -0,0 +1,229 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Return the proper jaeger image name
*/}}
{{- define "jaeger.image" -}}
{{ include "common.images.image" (dict "imageRoot" .Values.image "global" .Values.global) }}
{{- end -}}
{{/*
Return the proper cassandra external image name
*/}}
{{- define "jaeger.cqlshImage" -}}
{{ include "common.images.image" (dict "imageRoot" .Values.cqlshImage "global" .Values.global) }}
{{- end -}}
{{/*
Create the name of the query deployment
*/}}
{{- define "jaeger.query.fullname" -}}
{{ printf "%s-query" (include "common.names.fullname" .) }}
{{- end -}}
{{/*
Create a container for checking cassandra availability
*/}}
{{- define "jaeger.waitForDBInitContainer" -}}
- name: jaeger-cassandra-ready-check
image: {{ include "jaeger.cqlshImage" . }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
command:
- /bin/bash
args:
- -ec
- |
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
. /opt/bitnami/scripts/libos.sh
check_cassandra_keyspace_schema() {
echo "SELECT 1" | cqlsh -u $CASSANDRA_USERNAME -p $CASSANDRA_PASSWORD -e "SELECT COUNT(*) FROM ${CASSANDRA_KEYSPACE}.traces"
}
info "Connecting to the Cassandra instance $CQLSH_HOST:$CQLSH_PORT"
if ! retry_while "check_cassandra_keyspace_schema" 12 30; then
error "Could not connect to the database server"
exit 1
else
info "Connection check success"
fi
env:
- name: CQLSH_HOST
value: {{ include "jaeger.cassandra.host" . }}
- name: BITNAMI_DEBUG
value: {{ ternary "true" "false" .Values.cqlshImage.debug | quote }}
- name: CQLSH_PORT
value: {{ include "jaeger.cassandra.port" . }}
- name: CASSANDRA_USERNAME
value: {{ include "jaeger.cassandra.user" . }}
- name: CASSANDRA_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "jaeger.cassandra.secretName" . }}
key: {{ include "jaeger.cassandra.secretKey" . }}
- name: CASSANDRA_KEYSPACE
value: {{ .Values.cassandra.keyspace }}
{{- end -}}
{{/*
Create the name of the service account to use for the collector
*/}}
{{- define "jaeger.collector.serviceAccountName" -}}
{{- if .Values.collector.serviceAccount.create -}}
{{ default (include "jaeger.collector.fullname" .) .Values.collector.serviceAccount.name }}
{{- else -}}
{{ default "default" .Values.collector.serviceAccount.name }}
{{- end -}}
{{- end -}}
{{/*
Create the name of the service account to use for the agent
*/}}
{{- define "jaeger.agent.serviceAccountName" -}}
{{- if .Values.agent.serviceAccount.create -}}
{{ default (include "jaeger.agent.fullname" .) .Values.agent.serviceAccount.name }}
{{- else -}}
{{ default "default" .Values.agent.serviceAccount.name }}
{{- end -}}
{{- end -}}
{{/*
Create the name of the service account to use for the query
*/}}
{{- define "jaeger.query.serviceAccountName" -}}
{{- if .Values.query.serviceAccount.create -}}
{{ default (include "jaeger.query.fullname" .) .Values.query.serviceAccount.name }}
{{- else -}}
{{ default "default" .Values.query.serviceAccount.name }}
{{- end -}}
{{- end -}}
{{/*
Create the name of the collector deployment
*/}}
{{- define "jaeger.collector.fullname" -}}
{{ printf "%s-collector" (include "common.names.fullname" .) }}
{{- end -}}
{{/*
Create the name of the collector deployment. This name includes 2 hyphens due to
an issue about env vars collision with the chart name when the release name is set to just 'jaeger'
ref. https://github.com/jaegertracing/jaeger-operator/issues/1158
*/}}
{{- define "jaeger.agent.fullname" -}}
{{ printf "%s--agent" (include "common.names.fullname" .) }}
{{- end -}}
{{/*
Create the cassandra secret name
*/}}
{{- define "jaeger.cassandra.secretName" -}}
{{- if not .Values.cassandra.enabled -}}
{{- .Values.externalDatabase.existingSecret -}}
{{- else -}}
{{- printf "%s-cassandra" (include "common.names.fullname" .) -}}
{{- end -}}
{{- end -}}
{{/*
Create the cassandra secret key
*/}}
{{- define "jaeger.cassandra.secretKey" -}}
{{- if not .Values.cassandra.enabled -}}
{{- .Values.externalDatabase.existingSecretPasswordKey -}}
{{- else -}}
cassandra-password
{{- end -}}
{{- end -}}
{{/*
Create the cassandra user
*/}}
{{- define "jaeger.cassandra.user" -}}
{{- if not .Values.cassandra.enabled -}}
{{- .Values.externalDatabase.dbUser.user | quote -}}
{{- else -}}
{{- .Values.cassandra.dbUser.user | quote -}}
{{- end -}}
{{- end -}}
{{/*
Create the cassandra host
*/}}
{{- define "jaeger.cassandra.host" -}}
{{- if not .Values.cassandra.enabled -}}
{{- .Values.externalDatabase.host | quote -}}
{{- else -}}
{{- include "common.names.dependency.fullname" (dict "chartName" "cassandra" "chartValues" .Values.cassandra "context" $) -}}
{{- end }}
{{- end }}
{{/*
Create the cassandra port
*/}}
{{- define "jaeger.cassandra.port" -}}
{{- if not .Values.cassandra.enabled -}}
{{- .Values.externalDatabase.port | quote -}}
{{- else }}
{{- .Values.cassandra.service.ports.cql | quote -}}
{{- end -}}
{{- end -}}
{{/*
Create the cassandra datacenter
*/}}
{{- define "jaeger.cassandra.datacenter" -}}
{{- if not .Values.cassandra.enabled -}}
{{- .Values.externalDatabase.cluster.datacenter | quote -}}
{{- else }}
{{- .Values.cassandra.cluster.datacenter | quote -}}
{{- end -}}
{{- end -}}
{{/*
Create the cassandra keyspace
*/}}
{{- define "jaeger.cassandra.keyspace" -}}
{{- if not .Values.cassandra.enabled -}}
{{- .Values.externalDatabase.keyspace | quote -}}
{{- else }}
{{- .Values.cassandra.keyspace | quote -}}
{{- end -}}
{{- end -}}
{{/*
Compile all warnings into a single message.
*/}}
{{- define "jaeger.validateValues" -}}
{{- $messages := list -}}
{{- $messages := append $messages (include "jaeger.validateValues.cassandra" .) -}}
{{- $messages := without $messages "" -}}
{{- $message := join "\n" $messages -}}
{{- if $message -}}
{{- printf "\nVALUES VALIDATION:\n%s" $message -}}
{{- end -}}
{{- end -}}
{{/* Validate values of jaeger - Cassandra */}}
{{- define "jaeger.validateValues.cassandra" -}}
{{- if and .Values.cassandra.enabled .Values.externalDatabase.host -}}
jaeger: Cassandra
You can only use one database.
Please choose installing a Cassandra chart (--set cassandra.enabled=true) or
using an external database (--set externalDatabase.host)
{{- end -}}
{{- if and (not .Values.cassandra.enabled) (not .Values.externalDatabase.host) -}}
jaeger: Cassandra
You did not set any database.
Please choose installing a Cassandra chart (--set mongodb.enabled=true) or
using an external database (--set externalDatabase.host)
{{- end -}}
{{- end -}}
@@ -0,0 +1,179 @@
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
kind: Deployment
metadata:
name: {{ include "jaeger.agent.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: agent
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
replicas: {{ .Values.agent.replicaCount }}
{{- if .Values.agent.updateStrategy }}
strategy: {{- toYaml .Values.agent.updateStrategy | nindent 4 }}
{{- end }}
template:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: agent
{{- if .Values.agent.podLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.agent.podLabels "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.agent.podAnnotations }}
annotations:
{{- if .Values.agent.podAnnotations }}
{{- include "common.tplvalues.render" (dict "value" .Values.agent.podAnnotations "context" $) | nindent 8 }}
{{- end }}
{{- end }}
spec:
{{- if .Values.agent.schedulerName }}
schedulerName: {{ .Values.agent.schedulerName }}
{{- end }}
priorityClassName: {{ .Values.agent.priorityClassName | quote }}
{{- if .Values.agent.affinity }}
affinity: {{- include "common.tplvalues.render" (dict "value" .Values.agent.affinity "context" $) | nindent 8 }}
{{- else }}
affinity:
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.agent.podAffinityPreset "component" "agent" "context" $) | nindent 10 }}
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.agent.podAntiAffinityPreset "component" "agent" "context" $) | nindent 10 }}
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.agent.nodeAffinityPreset.type "key" .Values.agent.nodeAffinityPreset.key "values" .Values.agent.nodeAffinityPreset.values) | nindent 10 }}
{{- end }}
{{- if .Values.agent.podSecurityContext.enabled }}
securityContext: {{- omit .Values.agent.podSecurityContext "enabled" | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.agent.nodeSelector }}
nodeSelector: {{- include "common.tplvalues.render" (dict "value" .Values.agent.nodeSelector "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.agent.tolerations }}
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.agent.tolerations "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.agent.topologySpreadConstraints }}
topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.agent.topologySpreadConstraints "context" $) | nindent 8 }}
{{- end }}
initContainers:
{{- include "jaeger.waitForDBInitContainer" . | nindent 8 }}
{{- if .Values.agent.initContainers }}
{{- include "common.tplvalues.render" (dict "value" .Values.agent.initContainers "context" $) | nindent 8 }}
{{- end }}
containers:
- name: jaeger-agent
image: {{ include "jaeger.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
{{- if .Values.agent.containerSecurityContext.enabled }}
securityContext: {{- omit .Values.agent.containerSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- if .Values.diagnosticMode.enabled }}
command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }}
{{- else if .Values.agent.command }}
command: {{- include "common.tplvalues.render" (dict "value" .Values.agent.command "context" $) | nindent 12 }}
{{- else }}
command: ["/opt/bitnami/jaeger/bin/jaeger-agent"]
{{- end }}
{{- if .Values.diagnosticMode.enabled }}
args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }}
{{- else if .Values.agent.args }}
args: {{- include "common.tplvalues.render" (dict "value" .Values.agent.args "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.agent.lifecycleHooks }}
lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.agent.lifecycleHooks "context" $) | nindent 12 }}
{{- end }}
ports:
- name: binary
containerPort: {{ .Values.agent.containerPorts.binary }}
- name: zipkin
containerPort: {{ .Values.agent.containerPorts.zipkin }}
- name: admin
containerPort: {{ .Values.agent.containerPorts.admin }}
- name: compact
containerPort: {{ .Values.agent.containerPorts.compact }}
- name: config
containerPort: {{ .Values.agent.containerPorts.config }}
env:
- name: CASSANDRA_SERVERS
value: {{ include "jaeger.cassandra.host" . }}
- name: CASSANDRA_PORT
value: {{ include "jaeger.cassandra.port" . }}
- name: CASSANDRA_USERNAME
value: {{ include "jaeger.cassandra.user" . }}
- name: CASSANDRA_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "jaeger.cassandra.secretName" . }}
key: {{ include "jaeger.cassandra.secretKey" . }}
- name: CASSANDRA_KEYSPACE
value: {{ include "jaeger.cassandra.keyspace" . }}
- name: CASSANDRA_DATACENTER
value: {{ include "jaeger.cassandra.datacenter" . }}
- name: HTTP_SERVER_HOST_PORT
value: {{ printf ":%v" .Values.agent.containerPorts.config | quote }}
- name: PROCESSOR_JAEGER_BINARY_SERVER_HOST_PORT
value: {{ printf ":%v" .Values.agent.containerPorts.binary | quote }}
- name: PROCESSOR_JAEGER_COMPACT_SERVER_HOST_PORT
value: {{ printf ":%v" .Values.agent.containerPorts.compact | quote }}
- name: PROCESSOR_ZIPKIN_COMPACT_SERVER_HOST_PORT
value: {{ printf ":%v" .Values.agent.containerPorts.zipkin | quote }}
- name: ADMIN_HTTP_HOST_PORT
value: {{ printf ":%v" .Values.agent.containerPorts.admin | quote }}
- name: REPORTER_GRPC_HOST_PORT
value: {{ printf "%s:%d" (include "jaeger.collector.fullname" .) (int .Values.collector.service.ports.grpc) }}
- name: BITNAMI_DEBUG
value: {{ ternary "true" "false" .Values.image.debug | quote }}
{{- if .Values.agent.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.agent.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
envFrom:
{{- if .Values.agent.extraEnvVarsCM }}
- configMapRef:
name: {{ .Values.agent.extraEnvVarsCM }}
{{- end }}
{{- if .Values.agent.extraEnvVarsSecret }}
- secretRef:
name: {{ .Values.agent.extraEnvVarsSecret }}
{{- end }}
{{- if not .Values.diagnosticMode.enabled }}
{{- if .Values.agent.customStartupProbe }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.agent.customStartupProbe "context" $) | nindent 12 }}
{{- else if .Values.agent.startupProbe.enabled }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.agent.startupProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /
port: admin
{{- end }}
{{- if .Values.agent.customLivenessProbe }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.agent.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.agent.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.agent.livenessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /
port: admin
{{- end }}
{{- if .Values.agent.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.agent.customReadinessProbe "context" $) | nindent 12 }}
{{- else if .Values.agent.readinessProbe.enabled }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.agent.readinessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /
port: admin
{{- end }}
{{- end }}
{{- if .Values.query.resources }}
resources: {{- toYaml .Values.agent.resources | nindent 12 }}
{{- end }}
{{- if .Values.agent.extraVolumeMounts }}
{{- include "common.tplvalues.render" ( dict "value" .Values.agent.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.agent.sidecars }}
{{- include "common.tplvalues.render" ( dict "value" .Values.agent.sidecars "context" $) | nindent 8 }}
{{- end }}
volumes:
{{- if .Values.agent.extraVolumes }}
{{- include "common.tplvalues.render" ( dict "value" .Values.agent.extraVolumes "context" $) | nindent 8 }}
{{- end }}
@@ -0,0 +1,88 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "jaeger.agent.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: agent
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if or .Values.agent.service.annotations .Values.commonAnnotations }}
annotations:
{{- if .Values.agent.service.annotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.agent.service.annotations "context" $) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
{{- include "common.tplvalues.render" ( dict "value" .Values.agent.service.metrics.annotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.agent.service.type }}
{{- if and (eq .Values.agent.service.type "LoadBalancer") (not (empty .Values.agent.service.loadBalancerIP)) }}
loadBalancerIP: {{ .Values.agent.service.loadBalancerIP }}
{{- end }}
{{- if and (eq .Values.agent.service.type "LoadBalancer") (not (empty .Values.agent.service.loadBalancerSourceRanges)) }}
loadBalancerSourceRanges: {{ .Values.agent.service.loadBalancerSourceRanges }}
{{- end }}
{{- if and .Values.agent.service.clusterIP (eq .Values.agent.service.type "ClusterIP") }}
clusterIP: {{ .Values.agent.service.clusterIP }}
{{- end }}
{{- if .Values.agent.service.sessionAffinity }}
sessionAffinity: {{ .Values.agent.service.sessionAffinity }}
{{- end }}
{{- if .Values.agent.service.sessionAffinityConfig }}
sessionAffinityConfig: {{- include "common.tplvalues.render" (dict "value" .Values.agent.service.sessionAffinityConfig "context" $) | nindent 4 }}
{{- end }}
{{- if or (eq .Values.agent.service.type "LoadBalancer") (eq .Values.agent.service.type "NodePort") }}
externalTrafficPolicy: {{ .Values.agent.service.externalTrafficPolicy | quote }}
{{- end }}
ports:
- name: compact
port: {{ .Values.agent.service.ports.compact }}
targetPort: {{ .Values.agent.containerPorts.compact }}
{{- if and (or (eq .Values.agent.service.type "NodePort") (eq .Values.agent.service.type "LoadBalancer")) (not (empty .Values.agent.service.nodePorts.compact)) }}
nodePort: {{ .Values.agent.service.nodePorts.compact }}
{{- else if eq .Values.agent.service.type "ClusterIP" }}
nodePort: null
{{- end }}
- name: binary
port: {{ .Values.agent.service.ports.binary }}
targetPort: {{ .Values.agent.containerPorts.binary }}
{{- if and (or (eq .Values.agent.service.type "NodePort") (eq .Values.agent.service.type "LoadBalancer")) (not (empty .Values.agent.service.nodePorts.binary)) }}
nodePort: {{ .Values.agent.service.nodePorts.binary }}
{{- else if eq .Values.agent.service.type "ClusterIP" }}
nodePort: null
{{- end }}
- name: config
port: {{ .Values.agent.service.ports.config }}
targetPort: {{ .Values.agent.containerPorts.config }}
{{- if and (or (eq .Values.agent.service.type "NodePort") (eq .Values.agent.service.type "LoadBalancer")) (not (empty .Values.agent.service.nodePorts.config)) }}
nodePort: {{ .Values.agent.service.nodePorts.config }}
{{- else if eq .Values.agent.service.type "ClusterIP" }}
nodePort: null
{{- end }}
- name: zipkin
port: {{ .Values.agent.service.ports.zipkin }}
targetPort: {{ .Values.agent.containerPorts.zipkin }}
{{- if and (or (eq .Values.agent.service.type "NodePort") (eq .Values.agent.service.type "LoadBalancer")) (not (empty .Values.agent.service.nodePorts.zipkin)) }}
nodePort: {{ .Values.agent.service.nodePorts.zipkin }}
{{- else if eq .Values.agent.service.type "ClusterIP" }}
nodePort: null
{{- end }}
- name: admin
port: {{ .Values.agent.service.ports.admin }}
targetPort: {{ .Values.agent.containerPorts.admin }}
{{- if and (or (eq .Values.agent.service.type "NodePort") (eq .Values.agent.service.type "LoadBalancer")) (not (empty .Values.agent.service.nodePorts.admin)) }}
nodePort: {{ .Values.agent.service.nodePorts.admin }}
{{- else if eq .Values.agent.service.type "ClusterIP" }}
nodePort: null
{{- end }}
{{- if .Values.agent.service.extraPorts }}
{{- include "common.tplvalues.render" (dict "value" .Values.agent.service.extraPorts "context" $) | nindent 4 }}
{{- end }}
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: agent
@@ -0,0 +1,21 @@
{{- if .Values.agent.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "jaeger.agent.serviceAccountName" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: agent
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
annotations:
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.agent.serviceAccount.annotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.agent.serviceAccount.annotations "context" $ ) | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.agent.serviceAccount.automountServiceAccountToken }}
{{- end }}
@@ -0,0 +1,173 @@
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
kind: Deployment
metadata:
name: {{ include "jaeger.collector.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: collector
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
replicas: {{ .Values.collector.replicaCount }}
{{- if .Values.collector.updateStrategy }}
strategy: {{- toYaml .Values.collector.updateStrategy | nindent 4 }}
{{- end }}
template:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: collector
{{- if .Values.collector.podLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.collector.podLabels "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.collector.podAnnotations }}
annotations:
{{- if .Values.collector.podAnnotations }}
{{- include "common.tplvalues.render" (dict "value" .Values.collector.podAnnotations "context" $) | nindent 8 }}
{{- end }}
{{- end }}
spec:
{{- if .Values.collector.schedulerName }}
schedulerName: {{ .Values.collector.schedulerName }}
{{- end }}
priorityClassName: {{ .Values.collector.priorityClassName | quote }}
{{- if .Values.collector.affinity }}
affinity: {{- include "common.tplvalues.render" (dict "value" .Values.collector.affinity "context" $) | nindent 8 }}
{{- else }}
affinity:
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.collector.podAffinityPreset "component" "collector" "context" $) | nindent 10 }}
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.collector.podAntiAffinityPreset "component" "collector" "context" $) | nindent 10 }}
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.collector.nodeAffinityPreset.type "key" .Values.collector.nodeAffinityPreset.key "values" .Values.collector.nodeAffinityPreset.values) | nindent 10 }}
{{- end }}
{{- if .Values.collector.podSecurityContext.enabled }}
securityContext: {{- omit .Values.collector.podSecurityContext "enabled" | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.collector.nodeSelector }}
nodeSelector: {{- include "common.tplvalues.render" (dict "value" .Values.collector.nodeSelector "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.collector.tolerations }}
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.collector.tolerations "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.collector.topologySpreadConstraints }}
topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.collector.topologySpreadConstraints "context" $) | nindent 8 }}
{{- end }}
initContainers:
{{- include "jaeger.waitForDBInitContainer" . | nindent 8 }}
{{- if .Values.collector.initContainers }}
{{- include "common.tplvalues.render" (dict "value" .Values.collector.initContainers "context" $) | nindent 8 }}
{{- end }}
containers:
- name: jaeger-collector
image: {{ include "jaeger.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
{{- if .Values.collector.containerSecurityContext.enabled }}
securityContext: {{- omit .Values.collector.containerSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- if .Values.diagnosticMode.enabled }}
command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }}
{{- else if .Values.collector.command }}
command: {{- include "common.tplvalues.render" (dict "value" .Values.collector.command "context" $) | nindent 12 }}
{{- else }}
command: ["/opt/bitnami/jaeger/bin/jaeger-collector"]
{{- end }}
{{- if .Values.diagnosticMode.enabled }}
args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }}
{{- else if .Values.collector.args }}
args: {{- include "common.tplvalues.render" (dict "value" .Values.collector.args "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.collector.lifecycleHooks }}
lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.collector.lifecycleHooks "context" $) | nindent 12 }}
{{- end }}
ports:
- name: zipkin
containerPort: {{ .Values.collector.containerPorts.zipkin }}
- name: binary
containerPort: {{ .Values.collector.containerPorts.binary }}
- name: grpc
containerPort: {{ .Values.collector.containerPorts.grpc }}
- name: admin
containerPort: {{ .Values.collector.containerPorts.admin }}
env:
- name: CASSANDRA_SERVERS
value: {{ include "jaeger.cassandra.host" . }}
- name: CASSANDRA_PORT
value: {{ include "jaeger.cassandra.port" . }}
- name: CASSANDRA_USERNAME
value: {{ include "jaeger.cassandra.user" . }}
- name: CASSANDRA_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "jaeger.cassandra.secretName" . }}
key: {{ include "jaeger.cassandra.secretKey" . }}
- name: CASSANDRA_KEYSPACE
value: {{ include "jaeger.cassandra.keyspace" . }}
- name: CASSANDRA_DATACENTER
value: {{ include "jaeger.cassandra.datacenter" . }}
- name: ADMIN_HTTP_HOST_PORT
value: {{ printf ":%v" .Values.collector.containerPorts.admin | quote }}
- name: COLLECTOR_ZIPKIN_HOST_PORT
value: {{ printf ":%v" .Values.collector.containerPorts.zipkin | quote }}
- name: COLLECTOR_GRPC_SERVER_HOST_PORT
value: {{ printf ":%v" .Values.collector.containerPorts.grpc | quote }}
- name: COLLECTOR_HTTP_SERVER_HOST_PORT
value: {{ printf ":%v" .Values.collector.containerPorts.binary | quote }}
- name: BITNAMI_DEBUG
value: {{ ternary "true" "false" .Values.image.debug | quote }}
{{- if .Values.collector.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.collector.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
envFrom:
{{- if .Values.collector.extraEnvVarsCM }}
- configMapRef:
name: {{ .Values.collector.extraEnvVarsCM }}
{{- end }}
{{- if .Values.collector.extraEnvVarsSecret }}
- secretRef:
name: {{ .Values.collector.extraEnvVarsSecret }}
{{- end }}
{{- if not .Values.diagnosticMode.enabled }}
{{- if .Values.collector.customStartupProbe }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.collector.customStartupProbe "context" $) | nindent 12 }}
{{- else if .Values.collector.startupProbe.enabled }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.collector.startupProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /
port: admin
{{- end }}
{{- if .Values.collector.customLivenessProbe }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.collector.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.collector.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.collector.livenessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /
port: admin
{{- end }}
{{- if .Values.collector.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.collector.customReadinessProbe "context" $) | nindent 12 }}
{{- else if .Values.collector.readinessProbe.enabled }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.collector.readinessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /
port: admin
{{- end }}
{{- end }}
{{- if .Values.query.resources }}
resources: {{- toYaml .Values.collector.resources | nindent 12 }}
{{- end }}
{{- if .Values.collector.extraVolumeMounts }}
{{- include "common.tplvalues.render" ( dict "value" .Values.collector.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.collector.sidecars }}
{{- include "common.tplvalues.render" ( dict "value" .Values.collector.sidecars "context" $) | nindent 8 }}
{{- end }}
volumes:
{{- if .Values.collector.extraVolumes }}
{{- include "common.tplvalues.render" ( dict "value" .Values.collector.extraVolumes "context" $) | nindent 8 }}
{{- end }}
@@ -0,0 +1,80 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "jaeger.collector.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: collector
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if or .Values.collector.service.annotations .Values.commonAnnotations }}
annotations:
{{- if .Values.collector.service.annotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.collector.service.annotations "context" $) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
{{- include "common.tplvalues.render" ( dict "value" .Values.collector.service.metrics.annotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.collector.service.type }}
{{- if and (eq .Values.collector.service.type "LoadBalancer") (not (empty .Values.collector.service.loadBalancerIP)) }}
loadBalancerIP: {{ .Values.collector.service.loadBalancerIP }}
{{- end }}
{{- if and (eq .Values.collector.service.type "LoadBalancer") (not (empty .Values.collector.service.loadBalancerSourceRanges)) }}
loadBalancerSourceRanges: {{ .Values.collector.service.loadBalancerSourceRanges }}
{{- end }}
{{- if and .Values.collector.service.clusterIP (eq .Values.collector.service.type "ClusterIP") }}
clusterIP: {{ .Values.collector.service.clusterIP }}
{{- end }}
{{- if .Values.collector.service.sessionAffinity }}
sessionAffinity: {{ .Values.collector.service.sessionAffinity }}
{{- end }}
{{- if .Values.collector.service.sessionAffinityConfig }}
sessionAffinityConfig: {{- include "common.tplvalues.render" (dict "value" .Values.collector.service.sessionAffinityConfig "context" $) | nindent 4 }}
{{- end }}
{{- if or (eq .Values.collector.service.type "LoadBalancer") (eq .Values.collector.service.type "NodePort") }}
externalTrafficPolicy: {{ .Values.collector.service.externalTrafficPolicy | quote }}
{{- end }}
ports:
- name: grpc
port: {{ .Values.collector.service.ports.grpc }}
targetPort: {{ .Values.collector.containerPorts.grpc }}
{{- if and (or (eq .Values.collector.service.type "NodePort") (eq .Values.collector.service.type "LoadBalancer")) (not (empty .Values.collector.service.nodePorts.grpc)) }}
nodePort: {{ .Values.collector.service.nodePorts.grpc }}
{{- else if eq .Values.collector.service.type "ClusterIP" }}
nodePort: null
{{- end }}
- name: binary
port: {{ .Values.collector.service.ports.binary }}
targetPort: {{ .Values.collector.containerPorts.binary }}
{{- if and (or (eq .Values.collector.service.type "NodePort") (eq .Values.collector.service.type "LoadBalancer")) (not (empty .Values.collector.service.nodePorts.binary)) }}
nodePort: {{ .Values.collector.service.nodePorts.binary }}
{{- else if eq .Values.collector.service.type "ClusterIP" }}
nodePort: null
{{- end }}
- name: zipkin
port: {{ .Values.collector.service.ports.zipkin }}
targetPort: {{ .Values.collector.containerPorts.zipkin }}
{{- if and (or (eq .Values.collector.service.type "NodePort") (eq .Values.collector.service.type "LoadBalancer")) (not (empty .Values.collector.service.nodePorts.zipkin)) }}
nodePort: {{ .Values.collector.service.nodePorts.zipkin }}
{{- else if eq .Values.collector.service.type "ClusterIP" }}
nodePort: null
{{- end }}
- name: admin
port: {{ .Values.collector.service.ports.admin }}
targetPort: {{ .Values.collector.containerPorts.admin }}
{{- if and (or (eq .Values.collector.service.type "NodePort") (eq .Values.collector.service.type "LoadBalancer")) (not (empty .Values.collector.service.nodePorts.admin)) }}
nodePort: {{ .Values.collector.service.nodePorts.admin }}
{{- else if eq .Values.collector.service.type "ClusterIP" }}
nodePort: null
{{- end }}
{{- if .Values.collector.service.extraPorts }}
{{- include "common.tplvalues.render" (dict "value" .Values.collector.service.extraPorts "context" $) | nindent 4 }}
{{- end }}
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: collector
@@ -0,0 +1,21 @@
{{- if .Values.collector.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "jaeger.collector.serviceAccountName" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: collector
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
annotations:
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.collector.serviceAccount.annotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.collector.serviceAccount.annotations "context" $ ) | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.collector.serviceAccount.automountServiceAccountToken }}
{{- end }}
+115
View File
@@ -0,0 +1,115 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "common.names.fullname" . }}-migrate
namespace: {{ .Release.Namespace }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: migration
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.migration.annotations "context" $ ) | nindent 4 }}
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
ttlSecondsAfterFinished: 30
template:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
app.kubernetes.io/component: migration
{{- if .Values.migration.podLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.migration.podLabels "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.migration.podAnnotations }}
annotations: {{- include "common.tplvalues.render" (dict "value" .Values.migration.podAnnotations "context" $) | nindent 8 }}
{{- end }}
spec:
restartPolicy: OnFailure
{{- if .Values.migration.podSecurityContext.enabled }}
securityContext: {{- omit .Values.migration.podSecurityContext "enabled" | toYaml | nindent 8 }}
{{- end }}
initContainers:
- name: jaeger-cassandra-schema-grabber
image: {{ include "jaeger.image" . }}
command: [ "cp", "-T", "-r", "/opt/bitnami/jaeger/cassandra-schema", "/cassandra-schema/" ]
volumeMounts:
- name: cassandra-schema
mountPath: "/cassandra-schema"
containers:
- name: jaeger-cassandra-migrator
image: {{ include "jaeger.cqlshImage" . }}
command:
- /bin/bash
args:
- -ec
- |
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
. /opt/bitnami/scripts/libos.sh
check_cassandra_connection() {
echo "SELECT 1" | cqlsh -u $CASSANDRA_USERNAME -p $CASSANDRA_PASSWORD -e "QUIT"
}
info "Connecting to the Cassandra instance $CQLSH_HOST:$CQLSH_PORT"
if ! retry_while "check_cassandra_connection" 12 30; then
error "Could not connect to the database server"
exit 1
else
info "Connection check success"
sed -i 's/cqlsh -e "show version"/cqlsh -e "show version" -u $CASSANDRA_USERNAME -p $CASSANDRA_PASSWORD /' /cassandra-schema/create.sh
/cassandra-schema/docker.sh
fi
env:
- name: CQLSH
value: /opt/bitnami/cassandra/bin/cqlsh
- name: CQLSH_HOST
value: {{ include "jaeger.cassandra.host" . }}
- name: CQLSH_PORT
value: {{ include "jaeger.cassandra.port" . }}
- name: CASSANDRA_USERNAME
value: {{ include "jaeger.cassandra.user" . }}
- name: DATACENTER
value: {{ include "jaeger.cassandra.datacenter" . }}
- name: KEYSPACE
value: {{ include "jaeger.cassandra.keyspace" . }}
- name: CASSANDRA_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "jaeger.cassandra.secretName" . }}
key: {{ include "jaeger.cassandra.secretKey" . }}
{{- if or .Values.migration.extraEnvVarsCM .Values.migration.extraEnvVarsSecret }}
envFrom:
{{- if .Values.migration.extraEnvVarsCM }}
- configMapRef:
name: {{ .Values.migration.extraEnvVarsCM }}
{{- end }}
{{- if .Values.migration.extraEnvVarsSecret }}
- secretRef:
name: {{ .Values.migration.extraEnvVarsSecret }}
{{- end }}
{{- end }}
{{- if .Values.migration.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.migration.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
volumeMounts:
- name: cassandra-schema
mountPath: "/cassandra-schema"
{{- if .Values.migration.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.migration.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.migration.resources }}
resources: {{- toYaml .Values.migration.resources | nindent 12 }}
{{- end }}
volumes:
- name: cassandra-schema
emptyDir: {}
{{- if .Values.migration.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.migration.extraVolumes "context" $) | nindent 6 }}
{{- end }}
@@ -0,0 +1,165 @@
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
kind: Deployment
metadata:
name: {{ include "jaeger.query.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: query
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
replicas: {{ .Values.query.replicaCount }}
{{- if .Values.query.updateStrategy }}
strategy: {{- toYaml .Values.query.updateStrategy | nindent 4 }}
{{- end }}
template:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: query
{{- if .Values.query.podLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.query.podLabels "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.query.podAnnotations }}
annotations:
{{- if .Values.query.podAnnotations }}
{{- include "common.tplvalues.render" (dict "value" .Values.query.podAnnotations "context" $) | nindent 8 }}
{{- end }}
{{- end }}
spec:
{{- if .Values.query.schedulerName }}
schedulerName: {{ .Values.query.schedulerName }}
{{- end }}
priorityClassName: {{ .Values.query.priorityClassName | quote }}
{{- if .Values.query.affinity }}
affinity: {{- include "common.tplvalues.render" (dict "value" .Values.query.affinity "context" $) | nindent 8 }}
{{- else }}
affinity:
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.query.podAffinityPreset "component" "query" "context" $) | nindent 10 }}
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.query.podAntiAffinityPreset "component" "query" "context" $) | nindent 10 }}
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.query.nodeAffinityPreset.type "key" .Values.query.nodeAffinityPreset.key "values" .Values.query.nodeAffinityPreset.values) | nindent 10 }}
{{- end }}
{{- if .Values.query.podSecurityContext.enabled }}
securityContext: {{- omit .Values.query.podSecurityContext "enabled" | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.query.nodeSelector }}
nodeSelector: {{- include "common.tplvalues.render" (dict "value" .Values.query.nodeSelector "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.query.tolerations }}
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.query.tolerations "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.query.topologySpreadConstraints }}
topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.query.topologySpreadConstraints "context" $) | nindent 8 }}
{{- end }}
initContainers:
{{- include "jaeger.waitForDBInitContainer" . | nindent 8 }}
{{- if .Values.query.initContainers }}
{{- include "common.tplvalues.render" (dict "value" .Values.query.initContainers "context" $) | nindent 8 }}
{{- end }}
containers:
- name: jaeger-query
image: {{ include "jaeger.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
{{- if .Values.query.containerSecurityContext.enabled }}
securityContext: {{- omit .Values.query.containerSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- if .Values.diagnosticMode.enabled }}
command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }}
{{- else if .Values.query.command }}
command: {{- include "common.tplvalues.render" (dict "value" .Values.query.command "context" $) | nindent 12 }}
{{- else }}
command: ["/opt/bitnami/jaeger/bin/jaeger-query"]
{{- end }}
{{- if .Values.diagnosticMode.enabled }}
args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }}
{{- else if .Values.query.args }}
args: {{- include "common.tplvalues.render" (dict "value" .Values.query.args "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.query.lifecycleHooks }}
lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.query.lifecycleHooks "context" $) | nindent 12 }}
{{- end }}
ports:
- name: ui
containerPort: {{ .Values.query.containerPorts.api }}
- name: admin
containerPort: {{ .Values.query.containerPorts.admin }}
env:
- name: CASSANDRA_SERVERS
value: {{ include "jaeger.cassandra.host" . }}
- name: CASSANDRA_PORT
value: {{ include "jaeger.cassandra.port" . }}
- name: CASSANDRA_USERNAME
value: {{ include "jaeger.cassandra.user" . }}
- name: CASSANDRA_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "jaeger.cassandra.secretName" . }}
key: {{ include "jaeger.cassandra.secretKey" . }}
- name: CASSANDRA_KEYSPACE
value: {{ include "jaeger.cassandra.keyspace" . }}
- name: CASSANDRA_DATACENTER
value: {{ include "jaeger.cassandra.datacenter" . }}
- name: QUERY_HTTP_SERVER_HOST_PORT
value: {{ printf ":%v" .Values.query.containerPorts.api | quote }}
- name: ADMIN_HTTP_HOST_PORT
value: {{ printf ":%v" .Values.query.containerPorts.admin | quote }}
- name: BITNAMI_DEBUG
value: {{ ternary "true" "false" .Values.image.debug | quote }}
{{- if .Values.query.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.query.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
envFrom:
{{- if .Values.query.extraEnvVarsCM }}
- configMapRef:
name: {{ .Values.query.extraEnvVarsCM }}
{{- end }}
{{- if .Values.query.extraEnvVarsSecret }}
- secretRef:
name: {{ .Values.query.extraEnvVarsSecret }}
{{- end }}
{{- if not .Values.diagnosticMode.enabled }}
{{- if .Values.query.customStartupProbe }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.query.customStartupProbe "context" $) | nindent 12 }}
{{- else if .Values.query.startupProbe.enabled }}
startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.query.startupProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /
port: admin
{{- end }}
{{- if .Values.query.customLivenessProbe }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.query.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.query.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.query.livenessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /
port: admin
{{- end }}
{{- if .Values.query.customReadinessProbe }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.query.customReadinessProbe "context" $) | nindent 12 }}
{{- else if .Values.query.readinessProbe.enabled }}
readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.query.readinessProbe "enabled") "context" $) | nindent 12 }}
httpGet:
path: /
port: admin
{{- end }}
{{- end }}
{{- if .Values.query.resources }}
resources: {{- toYaml .Values.query.resources | nindent 12 }}
{{- end }}
{{- if .Values.query.extraVolumeMounts }}
{{- include "common.tplvalues.render" ( dict "value" .Values.query.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.query.sidecars }}
{{- include "common.tplvalues.render" ( dict "value" .Values.query.sidecars "context" $) | nindent 8 }}
{{- end }}
volumes:
{{- if .Values.query.extraVolumes }}
{{- include "common.tplvalues.render" ( dict "value" .Values.query.extraVolumes "context" $) | nindent 8 }}
{{- end }}
@@ -0,0 +1,64 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "jaeger.query.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: query
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if or .Values.query.service.annotations .Values.commonAnnotations }}
annotations:
{{- if .Values.query.service.annotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.query.service.annotations "context" $) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
{{- include "common.tplvalues.render" ( dict "value" .Values.query.service.metrics.annotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.query.service.type }}
{{- if and (eq .Values.query.service.type "LoadBalancer") (not (empty .Values.query.service.loadBalancerIP)) }}
loadBalancerIP: {{ .Values.query.service.loadBalancerIP }}
{{- end }}
{{- if and (eq .Values.query.service.type "LoadBalancer") (not (empty .Values.query.service.loadBalancerSourceRanges)) }}
loadBalancerSourceRanges: {{ .Values.query.service.loadBalancerSourceRanges }}
{{- end }}
{{- if and .Values.query.service.clusterIP (eq .Values.query.service.type "ClusterIP") }}
clusterIP: {{ .Values.query.service.clusterIP }}
{{- end }}
{{- if .Values.query.service.sessionAffinity }}
sessionAffinity: {{ .Values.query.service.sessionAffinity }}
{{- end }}
{{- if .Values.query.service.sessionAffinityConfig }}
sessionAffinityConfig: {{- include "common.tplvalues.render" (dict "value" .Values.query.service.sessionAffinityConfig "context" $) | nindent 4 }}
{{- end }}
{{- if or (eq .Values.query.service.type "LoadBalancer") (eq .Values.query.service.type "NodePort") }}
externalTrafficPolicy: {{ .Values.query.service.externalTrafficPolicy | quote }}
{{- end }}
ports:
- name: api
port: {{ .Values.query.service.ports.api }}
targetPort: {{ .Values.query.containerPorts.api }}
{{- if and (or (eq .Values.query.service.type "NodePort") (eq .Values.query.service.type "LoadBalancer")) (not (empty .Values.query.service.nodePorts.api)) }}
nodePort: {{ .Values.query.service.nodePorts.api }}
{{- else if eq .Values.query.service.type "ClusterIP" }}
nodePort: null
{{- end }}
- name: admin
port: {{ .Values.query.service.ports.admin }}
targetPort: {{ .Values.query.containerPorts.admin }}
{{- if and (or (eq .Values.query.service.type "NodePort") (eq .Values.query.service.type "LoadBalancer")) (not (empty .Values.query.service.nodePorts.admin)) }}
nodePort: {{ .Values.query.service.nodePorts.admin }}
{{- else if eq .Values.query.service.type "ClusterIP" }}
nodePort: null
{{- end }}
{{- if .Values.query.service.extraPorts }}
{{- include "common.tplvalues.render" (dict "value" .Values.query.service.extraPorts "context" $) | nindent 4 }}
{{- end }}
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: query
@@ -0,0 +1,21 @@
{{- if .Values.query.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "jaeger.query.serviceAccountName" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/part-of: jaeger
app.kubernetes.io/component: query
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
annotations:
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.query.serviceAccount.annotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.query.serviceAccount.annotations "context" $ ) | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.query.serviceAccount.automountServiceAccountToken }}
{{- end }}
File diff suppressed because it is too large Load Diff