diff --git a/docs/continuous-delivery/gitops/resources/gitops-faqs.md b/docs/continuous-delivery/gitops/resources/gitops-faqs.md index eb2bd8ae5ef..c7ee9c008a3 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 **true** 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: "true" +``` ### What specific role does the "Add Deployment Repo Manifest" serve within the manifests for a Kubernetes service enabled with GitOps functionality? @@ -341,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 + ```