diff --git a/charts/base/Chart.yaml b/charts/base/Chart.yaml index 3daa5c4..11bdb0d 100644 --- a/charts/base/Chart.yaml +++ b/charts/base/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: nullplatform-base description: A Helm chart for deploying the nullplatform base dependencies applications using Kubernetes type: application -version: 0.0.7 -appVersion: "0.0.7" +version: 0.0.8 +appVersion: "0.0.8" dependencies: - name: metrics-server version: ^3.12.0 # Use the appropriate version you need diff --git a/charts/base/templates/daemonset.yaml b/charts/base/templates/daemonset.yaml index 6f07162..b9dc353 100644 --- a/charts/base/templates/daemonset.yaml +++ b/charts/base/templates/daemonset.yaml @@ -17,6 +17,7 @@ spec: containers: - name: nullplatform-log-controller image: {{ .Values.logging.controller.image }} + imagePullPolicy: Always volumeMounts: - mountPath: /var/log name: host-logs @@ -95,8 +96,28 @@ spec: key: LOKI_BEARER_TOKEN {{- end}} {{- end}} - - name: nullplatform-logging-metrics-exporter - image: {{ .Values.logging.metricsExporter.image }} + {{- if and .Values.controlPlane.enabled .Values.nullplatform.apiKey }} + - name: nullplatform-controlplane-agent + image: {{ .Values.controlPlane.agent.image }} + command: + - /app/k8s_launcher.sh + env: + - name: NODE_NAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: spec.nodeName + - name: NULLPLATFORM_APIKEY + valueFrom: + secretKeyRef: + key: NULLPLATFORM_APIKEY + name: nullplatform-secret + image: public.ecr.aws/nullplatform/controlplane-agent:latest + imagePullPolicy: Always + volumeMounts: + - mountPath: /etc/null-logs/dynamic + name: logs-config + {{- end}} volumes: - name: host-logs hostPath: diff --git a/charts/base/values.yaml b/charts/base/values.yaml index 7dc6d36..8f9fafb 100644 --- a/charts/base/values.yaml +++ b/charts/base/values.yaml @@ -26,7 +26,14 @@ gateway: autoscaling: minReplicas: 2 maxReplicas: 10 +# Nullplatform configurations +nullplatform: + apiKey: "" # Logging configurations +controlPlane: + enabled: false + agent: + image: "public.ecr.aws/nullplatform/controlplane-agent:latest" logging: controller: image: "public.ecr.aws/nullplatform/k8s-logs-controller:latest" diff --git a/charts/cert-manager-config/Chart.yaml b/charts/cert-manager-config/Chart.yaml index 9f07e8d..762fed3 100644 --- a/charts/cert-manager-config/Chart.yaml +++ b/charts/cert-manager-config/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: nullplatform-cert-manager-config description: A Helm chart for cert-manager configurations type: application -version: 0.0.7 -appVersion: "0.0.7" +version: 0.0.8 +appVersion: "0.0.8"