Helm Chart Update (#595)
* Updated helm chart with additions for * Updated to use dedicated resources and pod lables/annotations * Added ConfigMap for common envs * Updated storage configuration to be more flexible * Added missing envs for db path, backtrace and loggings * Updated with conditional for tracer name to avoid startup failure * Updated AWS ENVs to correct namesbuddies-main-deployment
parent
f0a18a16bf
commit
ad363c7507
@ -1,24 +1,6 @@ |
|||||||
apiVersion: v2 |
apiVersion: v2 |
||||||
name: optics-agent |
name: optics-agent |
||||||
description: A Helm Chart that encapsulates the deployment of the Optics Rust Agent(s) |
description: A Helm Chart that encapsulates the deployment of the Optics Rust Agent(s) |
||||||
|
|
||||||
# A chart can be either an 'application' or a 'library' chart. |
|
||||||
# |
|
||||||
# Application charts are a collection of templates that can be packaged into versioned archives |
|
||||||
# to be deployed. |
|
||||||
# |
|
||||||
# Library charts provide useful utilities or functions for the chart developer. They're included as |
|
||||||
# a dependency of application charts to inject those utilities and functions into the rendering |
|
||||||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. |
|
||||||
type: application |
type: application |
||||||
|
|
||||||
# This is the chart version. This version number should be incremented each time you make changes |
|
||||||
# to the chart and its templates, including the app version. |
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/) |
|
||||||
version: 0.1.0 |
version: 0.1.0 |
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be |
|
||||||
# incremented each time you make changes to the application. Versions are not expected to |
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using. |
|
||||||
# It is recommended to use it with quotes. |
|
||||||
appVersion: "0.1.0" |
appVersion: "0.1.0" |
||||||
|
@ -0,0 +1,34 @@ |
|||||||
|
apiVersion: v1 |
||||||
|
kind: ConfigMap |
||||||
|
metadata: |
||||||
|
name: {{ include "optics-agent.fullname" . }} |
||||||
|
labels: |
||||||
|
{{- include "optics-agent.labels" . | nindent 4 }} |
||||||
|
data: |
||||||
|
RUN_ENV: {{ .Values.optics.runEnv | quote }} |
||||||
|
BASE_CONFIG: {{ .Values.optics.baseConfig }} |
||||||
|
{{- if .Values.optics.aws }} |
||||||
|
AWS_ACCESS_KEY_ID: {{ .Values.optics.aws.accessKeyId }} |
||||||
|
AWS_SECRET_ACCESS_KEY: {{ .Values.optics.aws.secretAccessKey }} |
||||||
|
{{- end }} |
||||||
|
RUST_BACKTRACE: {{ .Values.optics.rustBacktrace }} |
||||||
|
OPT_BASE_DBPATH: {{ .Values.optics.dbPath }} |
||||||
|
OPT_BASE_TRACING_FMT: {{ .Values.optics.tracing.format }} |
||||||
|
OPT_BASE_TRACING_LEVEL: {{ .Values.optics.tracing.level }} |
||||||
|
{{- if .Values.optics.homeChain.connectionUrl }} |
||||||
|
OPT_BASE_HOME_CONFIG_CONNECTION_URL: {{ .Values.optics.homeChain.connectionUrl }} |
||||||
|
{{- end }} |
||||||
|
{{- if .Values.optics.homeChain.connectionType }} |
||||||
|
OPT_BASE_HOME_CONFIG_CONNECTION_TYPE: {{ .Values.optics.homeChain.connectionType }} |
||||||
|
{{- end }} |
||||||
|
{{- range .Values.optics.replicaChains }} |
||||||
|
{{- if .connectionUrl }} |
||||||
|
OPT_BASE_REPLICAS_{{ .name | upper }}_CONNECTION_URL: {{ .connectionUrl }} |
||||||
|
{{- end }} |
||||||
|
{{- if .address }} |
||||||
|
OPT_BASE_REPLICAS_{{ .name | upper }}_ADDRESS: {{ .address }} |
||||||
|
{{- end }} |
||||||
|
{{- end }} |
||||||
|
{{- if .Values.optics.tracing.uri }} |
||||||
|
OPT_BASE_TRACING_JAEGER_COLLECTOR_URI: {{ .Values.optics.tracing.uri }} |
||||||
|
{{- end }} |
@ -0,0 +1,12 @@ |
|||||||
|
{{- if .Values.serviceAccount.create -}} |
||||||
|
apiVersion: v1 |
||||||
|
kind: ServiceAccount |
||||||
|
metadata: |
||||||
|
name: {{ include "optics-agent.serviceAccountName" . }} |
||||||
|
labels: |
||||||
|
{{- include "optics-agent.labels" . | nindent 4 }} |
||||||
|
{{- with .Values.serviceAccount.annotations }} |
||||||
|
annotations: |
||||||
|
{{- toYaml . | nindent 4 }} |
||||||
|
{{- end }} |
||||||
|
{{- end }} |
Loading…
Reference in new issue