From 0184f3eceddfbf31beb89c51ad544a0629b80a2d Mon Sep 17 00:00:00 2001 From: amanpruthi Date: Thu, 27 Jun 2024 19:39:07 +0530 Subject: [PATCH] added stackdriver chart inside prometheus folder --- charts/operator-wandb/Chart.lock | 7 +- charts/operator-wandb/Chart.yaml | 6 +- .../charts/prometheus/Chart.yaml | 5 + .../charts}/stackdriver/.helmignore | 0 .../charts}/stackdriver/Chart.yaml | 0 .../stackdriver/templates/_helpers.tpl | 0 .../stackdriver/templates/deployment.yaml | 0 .../stackdriver/templates/service.yaml | 0 .../stackdriver/templates/serviceaccount.yaml | 0 .../charts}/stackdriver/values.yaml | 0 .../charts/prometheus/values.yaml | 3 + charts/operator-wandb/stackdriver.yaml | 2238 +++++++++++++++++ charts/operator-wandb/values.yaml | 16 +- 13 files changed, 2257 insertions(+), 18 deletions(-) rename charts/operator-wandb/charts/{ => prometheus/charts}/stackdriver/.helmignore (100%) rename charts/operator-wandb/charts/{ => prometheus/charts}/stackdriver/Chart.yaml (100%) rename charts/operator-wandb/charts/{ => prometheus/charts}/stackdriver/templates/_helpers.tpl (100%) rename charts/operator-wandb/charts/{ => prometheus/charts}/stackdriver/templates/deployment.yaml (100%) rename charts/operator-wandb/charts/{ => prometheus/charts}/stackdriver/templates/service.yaml (100%) rename charts/operator-wandb/charts/{ => prometheus/charts}/stackdriver/templates/serviceaccount.yaml (100%) rename charts/operator-wandb/charts/{ => prometheus/charts}/stackdriver/values.yaml (100%) create mode 100644 charts/operator-wandb/stackdriver.yaml diff --git a/charts/operator-wandb/Chart.lock b/charts/operator-wandb/Chart.lock index fd1f5101..c57bade5 100644 --- a/charts/operator-wandb/Chart.lock +++ b/charts/operator-wandb/Chart.lock @@ -32,11 +32,8 @@ dependencies: - name: nginx repository: file://charts/nginx version: 0.1.0 -- name: stackdriver - repository: file://charts/stackdriver - version: 0.1.0 - name: yace repository: file://charts/yace version: 0.1.0 -digest: sha256:c12c533a22b6f593a526e3060597ee1591bf5a2cac4ff03c588758e0dbc65d1e -generated: "2024-06-24T16:15:00.442236-07:00" +digest: sha256:4242ac7ee340298f58747c976a6e2126620ad3287faae3fd5a87a4bdd4690479 +generated: "2024-06-27T19:32:45.198749+05:30" diff --git a/charts/operator-wandb/Chart.yaml b/charts/operator-wandb/Chart.yaml index 09d5a7f4..03340aba 100644 --- a/charts/operator-wandb/Chart.yaml +++ b/charts/operator-wandb/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: operator-wandb description: A Helm chart for deploying W&B to Kubernetes type: application -version: 0.14.1 +version: 0.14.2 appVersion: 1.0.0 icon: https://wandb.ai/logo.svg @@ -56,10 +56,6 @@ dependencies: version: "*.*.*" repository: file://charts/nginx condition: nginx.install - - name: stackdriver - version: "*.*.*" - repository: file://charts/stackdriver - condition: stackdriver.install - name: yace version: "*.*.*" repository: file://charts/yace diff --git a/charts/operator-wandb/charts/prometheus/Chart.yaml b/charts/operator-wandb/charts/prometheus/Chart.yaml index 77df3d6d..760f1624 100644 --- a/charts/operator-wandb/charts/prometheus/Chart.yaml +++ b/charts/operator-wandb/charts/prometheus/Chart.yaml @@ -28,3 +28,8 @@ dependencies: version: "24.*.*" repository: https://prometheus-community.github.io/helm-charts condition: instance.install + - name: stackdriver + version: "*.*.*" + repository: file://charts/stackdriver + condition: stackdriver.install + diff --git a/charts/operator-wandb/charts/stackdriver/.helmignore b/charts/operator-wandb/charts/prometheus/charts/stackdriver/.helmignore similarity index 100% rename from charts/operator-wandb/charts/stackdriver/.helmignore rename to charts/operator-wandb/charts/prometheus/charts/stackdriver/.helmignore diff --git a/charts/operator-wandb/charts/stackdriver/Chart.yaml b/charts/operator-wandb/charts/prometheus/charts/stackdriver/Chart.yaml similarity index 100% rename from charts/operator-wandb/charts/stackdriver/Chart.yaml rename to charts/operator-wandb/charts/prometheus/charts/stackdriver/Chart.yaml diff --git a/charts/operator-wandb/charts/stackdriver/templates/_helpers.tpl b/charts/operator-wandb/charts/prometheus/charts/stackdriver/templates/_helpers.tpl similarity index 100% rename from charts/operator-wandb/charts/stackdriver/templates/_helpers.tpl rename to charts/operator-wandb/charts/prometheus/charts/stackdriver/templates/_helpers.tpl diff --git a/charts/operator-wandb/charts/stackdriver/templates/deployment.yaml b/charts/operator-wandb/charts/prometheus/charts/stackdriver/templates/deployment.yaml similarity index 100% rename from charts/operator-wandb/charts/stackdriver/templates/deployment.yaml rename to charts/operator-wandb/charts/prometheus/charts/stackdriver/templates/deployment.yaml diff --git a/charts/operator-wandb/charts/stackdriver/templates/service.yaml b/charts/operator-wandb/charts/prometheus/charts/stackdriver/templates/service.yaml similarity index 100% rename from charts/operator-wandb/charts/stackdriver/templates/service.yaml rename to charts/operator-wandb/charts/prometheus/charts/stackdriver/templates/service.yaml diff --git a/charts/operator-wandb/charts/stackdriver/templates/serviceaccount.yaml b/charts/operator-wandb/charts/prometheus/charts/stackdriver/templates/serviceaccount.yaml similarity index 100% rename from charts/operator-wandb/charts/stackdriver/templates/serviceaccount.yaml rename to charts/operator-wandb/charts/prometheus/charts/stackdriver/templates/serviceaccount.yaml diff --git a/charts/operator-wandb/charts/stackdriver/values.yaml b/charts/operator-wandb/charts/prometheus/charts/stackdriver/values.yaml similarity index 100% rename from charts/operator-wandb/charts/stackdriver/values.yaml rename to charts/operator-wandb/charts/prometheus/charts/stackdriver/values.yaml diff --git a/charts/operator-wandb/charts/prometheus/values.yaml b/charts/operator-wandb/charts/prometheus/values.yaml index 2a3d9cbf..2685c75c 100644 --- a/charts/operator-wandb/charts/prometheus/values.yaml +++ b/charts/operator-wandb/charts/prometheus/values.yaml @@ -7,6 +7,9 @@ redis-exporter: mysql-exporter: install: true +stackdriver: + install: true + instance: nameOverride: "prometheus" install: true diff --git a/charts/operator-wandb/stackdriver.yaml b/charts/operator-wandb/stackdriver.yaml new file mode 100644 index 00000000..d67a0fc4 --- /dev/null +++ b/charts/operator-wandb/stackdriver.yaml @@ -0,0 +1,2238 @@ +--- +# Source: operator-wandb/charts/redis/templates/networkpolicy.yaml +kind: NetworkPolicy +apiVersion: networking.k8s.io/v1 +metadata: + name: test-redis + namespace: "default" + labels: + app.kubernetes.io/instance: test + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: redis + app.kubernetes.io/version: 7.2.4 + helm.sh/chart: redis-18.19.4 +spec: + podSelector: + matchLabels: + app.kubernetes.io/instance: test + app.kubernetes.io/name: redis + policyTypes: + - Ingress + - Egress + egress: + - {} + ingress: + # Allow inbound connections + - ports: + - port: 6379 +--- +# Source: operator-wandb/charts/app/templates/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: test-app + namespace: default + labels: + + + helm.sh/chart: app-0.1.0 + app.kubernetes.io/name: app + app.kubernetes.io/instance: test + app.kubernetes.io/version: "0.33.0" + wandb.com/app-name: app-0.1.0 + app.kubernetes.io/managed-by: Helm + annotations: +--- +# Source: operator-wandb/charts/console/templates/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: test-console + namespace: default + labels: + + + helm.sh/chart: console-0.1.0 + app.kubernetes.io/name: console + app.kubernetes.io/instance: test + app.kubernetes.io/version: "1.16.0" + wandb.com/app-name: console-0.1.0 + app.kubernetes.io/managed-by: Helm + annotations: +--- +# Source: operator-wandb/charts/otel/charts/daemonset/templates/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: test-otel-daemonset + labels: + + + helm.sh/chart: daemonset-0.1.0 + app.kubernetes.io/name: daemonset + app.kubernetes.io/instance: test + app.kubernetes.io/version: "0.33.0" + wandb.com/app-name: daemonset-0.1.0 + app.kubernetes.io/managed-by: Helm + annotations: +--- +# Source: operator-wandb/charts/redis/templates/master/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +automountServiceAccountToken: false +metadata: + name: test-redis-master + namespace: "default" + labels: + app.kubernetes.io/instance: test + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: redis + app.kubernetes.io/version: 7.2.4 + helm.sh/chart: redis-18.19.4 +--- +# Source: operator-wandb/charts/yace/templates/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: test-yace + labels: + + + helm.sh/chart: yace-0.1.0 + app.kubernetes.io/name: yace + app.kubernetes.io/instance: test + app.kubernetes.io/version: "v0.60.0" + wandb.com/app-name: yace-0.1.0 + app.kubernetes.io/managed-by: Helm + annotations: +--- +# Source: operator-wandb/charts/app/templates/secrets.yaml +apiVersion: v1 +kind: Secret +metadata: + name: test-app-config + labels: + +data: + SLACK_SECRET: + LICENSE: +--- +# Source: operator-wandb/templates/bucket.yaml +apiVersion: v1 +kind: Secret +metadata: + name: test-bucket + labels: + +data: + ACCESS_KEY: + SECRET_KEY: +--- +# Source: operator-wandb/templates/kafka.yaml +apiVersion: v1 +kind: Secret +metadata: + name: test-kafka + labels: + +data: + KAFKA_CLIENT_PASSWORD: d2FuZGI= +--- +# Source: operator-wandb/templates/mysql.yaml +apiVersion: v1 +kind: Secret +metadata: + name: test-mysql + labels: + +data: + MYSQL_ROOT_PASSWORD: bEJmR25LcjR1dXBiVzBSTVZqY09pUEVucFI4b0gzMGZsVzNQYWxHdXFhd0pvODNzbzVzMElhaElXNHE3dGpESg== + MYSQL_PASSWORD: NjFMRWVHU1pLSE5PemJ1Z1VmM3N5cTZvdElQbkh1SGdHWkxKNlVsSHBTcTFMMFZXVW9haUZvbVB1S1JnSnEwdw== +--- +# Source: operator-wandb/charts/otel/charts/daemonset/templates/configmap.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: test-otel-daemonset + labels: + + + helm.sh/chart: daemonset-0.1.0 + app.kubernetes.io/name: daemonset + app.kubernetes.io/instance: test + app.kubernetes.io/version: "0.33.0" + wandb.com/app-name: daemonset-0.1.0 + app.kubernetes.io/managed-by: Helm + annotations: +data: + config: | + exporters: + debug: {} + debug/detailed: + verbosity: detailed + prometheus: + endpoint: 0.0.0.0:9109 + extensions: + health_check: {} + memory_ballast: + size_in_percentage: 40 + processors: + batch: {} + k8sattributes: + extract: + annotations: + - from: pod + key_regex: (.*) + tag_name: $$1 + labels: + - from: pod + key_regex: (.*) + tag_name: $$1 + metadata: + - k8s.namespace.name + - k8s.deployment.name + - k8s.statefulset.name + - k8s.daemonset.name + - k8s.cronjob.name + - k8s.job.name + - k8s.node.name + - k8s.pod.name + - k8s.pod.uid + - k8s.pod.start_time + filter: + node_from_env_var: K8S_NODE_NAME + passthrough: false + pod_association: + - sources: + - from: resource_attribute + name: k8s.pod.ip + - sources: + - from: resource_attribute + name: k8s.pod.uid + - sources: + - from: connection + memory_limiter: + check_interval: 5s + limit_percentage: 80 + spike_limit_percentage: 25 + receivers: + filelog: + exclude: [] + include: + - /var/log/pods/*/*/*.log + include_file_name: false + include_file_path: true + operators: + - id: get-format + routes: + - expr: body matches "^\\{" + output: parser-docker + - expr: body matches "^[^ Z]+ " + output: parser-crio + - expr: body matches "^[^ Z]+Z" + output: parser-containerd + type: router + - id: parser-crio + regex: ^(?P