Skip to content

Commit

Permalink
Helm add resource block linkerd-jaeger chart (#7627)
Browse files Browse the repository at this point in the history
* added resource block jaeger-injector helm chart

Signed-off-by: yuriydzobak <yurii.dzobak@lotusflare.com>
  • Loading branch information
yuriydzobak authored Jan 18, 2022
1 parent 9fdecdc commit c6b98c3
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 1 deletion.
4 changes: 4 additions & 0 deletions jaeger/charts/linkerd-jaeger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ Kubernetes: `>=1.20.0-0`
| webhook.namespaceSelector | string | `nil` | |
| webhook.nodeSelector | object | `{"kubernetes.io/os":"linux"}` | NodeSelector section, See the [K8S documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector) for more information |
| webhook.objectSelector | string | `nil` | |
| webhook.resources.cpu.limit | string | `nil` | Maximum amount of CPU units that the jaeger-injector container can use |
| webhook.resources.cpu.request | string | `nil` | Amount of CPU units that the jaeger-injector container requests |
| webhook.resources.memory.limit | string | `nil` | Maximum amount of memory that jaeger-injector container can use |
| webhook.resources.memory.request | string | `nil` | Amount of memory that the jaeger-injector container requests |
| webhook.tolerations | string | `nil` | Tolerations section, See the [K8S documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) for more information |

----------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions jaeger/charts/linkerd-jaeger/templates/jaeger-injector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ spec:
- mountPath: /var/run/linkerd/tls
name: tls
readOnly: true
{{- if .Values.webhook.resources -}}
{{- include "partials.resources" .Values.webhook.resources | nindent 8 }}
{{- end }}
serviceAccountName: jaeger-injector
volumes:
- name: tls
Expand Down
13 changes: 12 additions & 1 deletion jaeger/charts/linkerd-jaeger/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ enablePSP: false

# -- Kubernetes DNS Domain name to use
clusterDomain: cluster.local

collector:
# -- Set to false to exclude collector installation
enabled: true
Expand Down Expand Up @@ -184,6 +183,18 @@ webhook:
#matchLabels:
# foo: bar

resources:
cpu:
# -- Maximum amount of CPU units that the jaeger-injector container can use
limit:
# -- Amount of CPU units that the jaeger-injector container requests
request:
memory:
# -- Maximum amount of memory that jaeger-injector container can use
limit:
# -- Amount of memory that the jaeger-injector container requests
request:

# -- NodeSelector section, See the
# [K8S documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector) for more information
nodeSelector: *default_node_selector
Expand Down
1 change: 1 addition & 0 deletions jaeger/cmd/testdata/install_collector_disabled.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions jaeger/cmd/testdata/install_default.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions jaeger/cmd/testdata/install_jaeger_disabled.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c6b98c3

Please sign in to comment.