Skip to content

Commit

Permalink
[BAC-579-separate-metrics-exporter] added metrics-exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
cohandv committed Nov 19, 2024
1 parent 8bbfa68 commit 28cfb06
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 16 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.5
appVersion: "0.0.5"
version: 0.0.6
appVersion: "0.0.6"
dependencies:
- name: metrics-server
version: ^3.12.0 # Use the appropriate version you need
Expand Down
6 changes: 0 additions & 6 deletions charts/base/templates/clusterrolebindings.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if not (lookup "rbac.authorization.k8s.io/v1" "ClusterRoleBinding" "" "nullplatform-pod-metadata-reader-binding") }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand All @@ -11,9 +10,7 @@ roleRef:
kind: ClusterRole
name: nullplatform-pod-metadata-reader
apiGroup: rbac.authorization.k8s.io
{{- end }}
---
{{- if not (lookup "rbac.authorization.k8s.io/v1" "ClusterRoleBinding" "" "nullplatform-leases-pod-metadata-reader-binding") }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand All @@ -26,9 +23,7 @@ roleRef:
kind: ClusterRole
name: nullplatform-leases
apiGroup: rbac.authorization.k8s.io
{{- end }}
---
{{- if not (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "np:pod-reader-role") }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand All @@ -43,4 +38,3 @@ subjects:
- kind: Group
name: np:pod-reader
apiGroup: rbac.authorization.k8s.io
{{- end }}
6 changes: 0 additions & 6 deletions charts/base/templates/clusterroles.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if not (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "nullplatform-pod-metadata-reader") }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand All @@ -7,9 +6,7 @@ rules:
- apiGroups: ["", "metrics.k8s.io"]
resources: ["pods", "nodes", "configmaps"]
verbs: ["get", "list", "watch"]
{{- end }}
---
{{- if not (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "nullplatform-leases") }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand All @@ -18,9 +15,7 @@ rules:
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "list", "create", "patch"]
{{- end }}
---
{{- if not (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "np:pod-reader-role") }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand All @@ -34,4 +29,3 @@ rules:
- apiGroups: [""]
resources: ["pods/log"]
verbs: ["get"]
{{- end }}
3 changes: 3 additions & 0 deletions charts/base/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
name: nullplatform-log-controller
spec:
serviceAccountName: nullplatform-pod-metadata-reader-sa
restartPolicy: Always
containers:
- name: nullplatform-log-controller
image: {{ .Values.logging.controller.image }}
Expand Down Expand Up @@ -90,6 +91,8 @@ spec:
key: LOKI_BEARER_TOKEN
{{- end}}
{{- end}}
- name: nullplatform-logging-metrics-exporter
image: {{ .Values.logging.metricsExporter.image }}
volumes:
- name: host-logs
hostPath:
Expand Down
2 changes: 2 additions & 0 deletions charts/base/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ logging:
datadog:
enabled: false
apiKey: ""
metricsExporter:
image: "public.ecr.aws/nullplatform/k8s-metrics-exporter:latest"
# CloudWatch configuration
cloudwatch:
enabled: false
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.5
appVersion: "0.0.5"
version: 0.0.6
appVersion: "0.0.6"

0 comments on commit 28cfb06

Please sign in to comment.