Skip to content

Commit

Permalink
Merge pull request #38 from brennoo/add_dependencies_config
Browse files Browse the repository at this point in the history
Add config for dependencies image, resources
  • Loading branch information
Sivli-Embir authored Oct 23, 2024
2 parents c47d8f2 + a9a77db commit 62c0638
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/graph-kubernetes/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: graph-kubernetes
description: Converts K8s resources into a graph model for ingestion into JupiterOne.
type: application
version: 2.4.4
version: 2.4.5
appVersion: "2.4.4"
12 changes: 9 additions & 3 deletions charts/graph-kubernetes/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ spec:
{{ end }}
initContainers:
- name: kubexit
image: cortexlabs/kubexit:0.40.0
image: "{{ .Values.kubexit.repository }}:{{ .Values.kubexit.tag }}"
command: ['cp']
args: ['/bin/kubexit', '/kubexit/kubexit']
resources:
{{- toYaml .Values.kubexit.resources | nindent 16 }}
volumeMounts:
- mountPath: /kubexit
name: kubexit
Expand Down Expand Up @@ -181,7 +183,7 @@ spec:
- mountPath: /kubexit
name: kubexit
- name: otel-collector
image: otel/opentelemetry-collector-contrib:0.58.0
image: "{{ .Values.otelCollector.repository }}:{{ .Values.otelCollector.tag }}"
imagePullPolicy: IfNotPresent
command: ['/kubexit/kubexit', '/otelcol-contrib']
args: ['--config=/conf/otel-agent-config.yaml']
Expand All @@ -202,6 +204,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
resources:
{{- toYaml .Values.otelCollector.resources | nindent 16 }}
volumeMounts:
- name: otel-agent-config-vol
mountPath: /conf
Expand All @@ -210,7 +214,7 @@ spec:
- mountPath: /kubexit
name: kubexit
- name: fluent-bit
image: fluent/fluent-bit:1.8
image: "{{ .Values.fluentBit.repository }}:{{ .Values.fluentBit.tag }}"
imagePullPolicy: IfNotPresent
command: ['/kubexit/kubexit', '/fluent-bit/bin/fluent-bit']
args: ['--config=/fluent-bit/etc/fluent-bit.conf']
Expand All @@ -233,6 +237,8 @@ spec:
value: otel-collector
- name: KUBEXIT_DEATH_DEPS
value: graph-kubernetes
resources:
{{- toYaml .Values.fluentBit.resources | nindent 16 }}
volumeMounts:
- name: log-storage
mountPath: /mnt/log/
Expand Down
18 changes: 18 additions & 0 deletions charts/graph-kubernetes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,21 @@ securityContext:

# Force namespace of namespaced resources
forceNamespace: null

####################
### Dependencies ###
####################
kubexit:
repository: cortexlabs/kubexit
tag: 0.40.0
resources: {}

otelCollector:
repository: otel/opentelemetry-collector-contrib
tag: 0.58.0
resources: {}

fluentBit:
repository: fluent/fluent-bit
tag: 1.8
resources: {}

0 comments on commit 62c0638

Please sign in to comment.