Skip to content

Commit

Permalink
WIP: [BAC-580] Added control plane (#9)
Browse files Browse the repository at this point in the history
* [BAC-580] bump

* [BAC-580] added control plane

* [BAC-580] refactor after review
  • Loading branch information
cohandv authored Dec 2, 2024
1 parent 9807b9e commit e214e4f
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 23 additions & 2 deletions charts/base/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
containers:
- name: nullplatform-log-controller
image: {{ .Values.logging.controller.image }}
imagePullPolicy: Always
volumeMounts:
- mountPath: /var/log
name: host-logs
Expand Down Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions charts/base/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions charts/cert-manager-config/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit e214e4f

Please sign in to comment.