From 92528aee1d212d61b5fa434ceb9ff6f7d883e602 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Thu, 5 Sep 2024 21:14:40 +1000 Subject: [PATCH] add service newrelic --- .../newrelic/env/k3s-cluster/config.json | 12 +++++++++ .../env/k3s-cluster/kustomization.yaml | 8 ++++++ .../newrelic/env/k3s-cluster/values.yaml | 25 +++++++++++++++++++ .../env/k3s-cluster/templates/newrelic.yaml | 9 +++++++ 4 files changed, 54 insertions(+) create mode 100644 infrastructures/newrelic/env/k3s-cluster/config.json create mode 100644 infrastructures/newrelic/env/k3s-cluster/kustomization.yaml create mode 100644 infrastructures/newrelic/env/k3s-cluster/values.yaml create mode 100644 resources/namespaces/env/k3s-cluster/templates/newrelic.yaml diff --git a/infrastructures/newrelic/env/k3s-cluster/config.json b/infrastructures/newrelic/env/k3s-cluster/config.json new file mode 100644 index 0000000..8537b30 --- /dev/null +++ b/infrastructures/newrelic/env/k3s-cluster/config.json @@ -0,0 +1,12 @@ +{ + "appName": "newrelic", + "userGivenName": "newrelic", + "namespace": "newrelic", + "destNamespace": "newrelic", + "destServer": "https://kubernetes.default.svc", + "srcPath": "infrastructures/newrelic/env/k3s-cluster", + "srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git", + "srcTargetRevision": "", + "labels": null, + "annotations": null +} \ No newline at end of file diff --git a/infrastructures/newrelic/env/k3s-cluster/kustomization.yaml b/infrastructures/newrelic/env/k3s-cluster/kustomization.yaml new file mode 100644 index 0000000..26e4dec --- /dev/null +++ b/infrastructures/newrelic/env/k3s-cluster/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +helmCharts: + - name: newrelic-bundle + repo: https://helm-charts.newrelic.com + version: 5.0.91 + releaseName: nri-bundle + valuesFile: values.yaml \ No newline at end of file diff --git a/infrastructures/newrelic/env/k3s-cluster/values.yaml b/infrastructures/newrelic/env/k3s-cluster/values.yaml new file mode 100644 index 0000000..d1f8a7b --- /dev/null +++ b/infrastructures/newrelic/env/k3s-cluster/values.yaml @@ -0,0 +1,25 @@ +global: + licenseKey: 087dbc7fb1d60dde03aa2fe75b9df857FFFFNRAL + cluster: Home Lab K3S Cluster + lowDataMode: true +newrelic-infrastructure: + privileged: true +kube-state-metrics: + image: + tag: v2.10.0 + enabled: true +kubeEvents: + enabled: true +newrelic-prometheus-agent: + enabled: true + lowDataMode: true + config: + kubernetes: + integrations_filter: + enabled: false +logging: + enabled: false +newrelic-logging: + enabled: true + + diff --git a/resources/namespaces/env/k3s-cluster/templates/newrelic.yaml b/resources/namespaces/env/k3s-cluster/templates/newrelic.yaml new file mode 100644 index 0000000..73a1bfb --- /dev/null +++ b/resources/namespaces/env/k3s-cluster/templates/newrelic.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + annotations: + argocd.argoproj.io/sync-options: Prune=false + creationTimestamp: null + name: newrelic +spec: {} +status: {}