From cd6818359f9a3e78ecfa311caebc466ca0d6cc27 Mon Sep 17 00:00:00 2001 From: kinnonyee Date: Mon, 6 Oct 2025 10:51:42 -0400 Subject: [PATCH 1/2] (Update) Log toggle GitOpsAgent Add further documentation about Gitops Agent logging https://harnesssupport.zendesk.com/agent/tickets/93236 --- .../gitops/resources/gitops-faqs.md | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/docs/continuous-delivery/gitops/resources/gitops-faqs.md b/docs/continuous-delivery/gitops/resources/gitops-faqs.md index eb2bd8ae5ef..00f143ff5bb 100644 --- a/docs/continuous-delivery/gitops/resources/gitops-faqs.md +++ b/docs/continuous-delivery/gitops/resources/gitops-faqs.md @@ -132,8 +132,29 @@ You can use [Mozilla SOPS](https://developer.harness.io/docs/continuous-delivery Once encrypted, SOPS decrypts the data during deployment using the keys stored as Kubernetes secrets, ensuring that your sensitive information remains protected. -### How to disable pushing logs from the GitOps Agent to Stackdriver? -To disable logging to Stackdriver in GitOps, set `GITOPS_AGENT_ENABLE_STACK_DRIVER_LOGGER` to False in the the agent ConfigMap. +### What is the default log location for the GitOps Agent? What about the sizing? +The default location for logs in the GitOps Agent is + +``` +/app/logs +``` + +The max file size is 5MB, and there is max of 5 backup files that are being compressed. The estimated space occupied should not exceed 10MB. + +### How to disable pushing logs from the GitOps Agent to Stackdriver so it is STDOUT only? +To disable logging to Stackdriver in GitOps, set `GITOPS_AGENT_ENABLE_STACK_DRIVER_LOGGER` to False in the the agent ConfigMap. This is available as of `GitOps Service 1.42.2` with `GitOps Agent v0.102.0`. + +For example + +``` +# Source: gitops-helm/templates/gitops-agent/configmap.yaml +apiVersion: v1 +data: + GITOPS_ACCOUNT_IDENTIFIER: X0xxxxXxX0xx00_00xXX0x + GITOPS_AGENT_IDENTIFIER: gitopsagent-test + [...] + GITOPS_AGENT_DISABLE_FILE_LOGGING: "false" +``` ### What specific role does the "Add Deployment Repo Manifest" serve within the manifests for a Kubernetes service enabled with GitOps functionality? From 9421d7959990ec15b1ce1c4abdc62edc79004d23 Mon Sep 17 00:00:00 2001 From: Kinnon Yee - Harness <169066316+KinnonYee-harness@users.noreply.github.com> Date: Mon, 6 Oct 2025 10:57:40 -0400 Subject: [PATCH 2/2] Update gitops-faqs.md --- docs/continuous-delivery/gitops/resources/gitops-faqs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/continuous-delivery/gitops/resources/gitops-faqs.md b/docs/continuous-delivery/gitops/resources/gitops-faqs.md index 00f143ff5bb..c7ee9c008a3 100644 --- a/docs/continuous-delivery/gitops/resources/gitops-faqs.md +++ b/docs/continuous-delivery/gitops/resources/gitops-faqs.md @@ -142,7 +142,7 @@ The default location for logs in the GitOps Agent is The max file size is 5MB, and there is max of 5 backup files that are being compressed. The estimated space occupied should not exceed 10MB. ### How to disable pushing logs from the GitOps Agent to Stackdriver so it is STDOUT only? -To disable logging to Stackdriver in GitOps, set `GITOPS_AGENT_ENABLE_STACK_DRIVER_LOGGER` to False in the the agent ConfigMap. This is available as of `GitOps Service 1.42.2` with `GitOps Agent v0.102.0`. +To disable logging to Stackdriver in GitOps, set `GITOPS_AGENT_ENABLE_STACK_DRIVER_LOGGER` to **true** in the the agent ConfigMap. This is available as of `GitOps Service 1.42.2` with `GitOps Agent v0.102.0`. For example @@ -153,7 +153,7 @@ data: GITOPS_ACCOUNT_IDENTIFIER: X0xxxxXxX0xx00_00xXX0x GITOPS_AGENT_IDENTIFIER: gitopsagent-test [...] - GITOPS_AGENT_DISABLE_FILE_LOGGING: "false" + GITOPS_AGENT_DISABLE_FILE_LOGGING: "true" ``` ### What specific role does the "Add Deployment Repo Manifest" serve within the manifests for a Kubernetes service enabled with GitOps functionality? @@ -362,4 +362,4 @@ Harness uses the following procedure to calculate the app project id: hash: abcdefghijklmnopqrstuvwxyz app project id: `abcdefgh` - ``` \ No newline at end of file + ```