You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TODO: Replace this with a description of the modules in this repo.
24
-
14
+
You can use this module to deploy Logs Agent in your cluster. The agent can collect and route application logs from a Red Hat OpenShift or Kubernetes cluster to an IBM Cloud Logs of your choice.
25
15
26
-
<!-- The following content is automatically populated by the pre-commit hook -->
|[ibm_container_cluster.cluster](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/data-sources/container_cluster)| data source |
81
+
|[ibm_container_cluster_config.cluster_config](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/data-sources/container_cluster_config)| data source |
82
+
|[ibm_container_vpc_cluster.cluster](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/data-sources/container_vpc_cluster)| data source |
137
83
138
84
### Inputs
139
85
140
86
| Name | Description | Type | Default | Required |
| <aname="input_name"></a> [name](#input\_name)| A descriptive name used to identify the resource instance. |`string`| n/a | yes |
143
-
| <aname="input_plan"></a> [plan](#input\_plan)| The name of the plan type supported by service. |`string`|`"standard"`| no |
144
-
| <aname="input_resource_group_id"></a> [resource\_group\_id](#input\_resource\_group\_id)| The ID of the resource group where you want to create the service. |`string`| n/a | yes |
145
-
| <aname="input_resource_tags"></a> [resource\_tags](#input\_resource\_tags)| List of resource tag to associate with the instance. |`list(string)`|`[]`| no |
88
+
| <aname="input_agent_additional_metadata"></a> [agent\_additional\_metadata](#input\_agent\_additional\_metadata)| The list of additional metadata fields to add to the routed logs. | <pre>list(object({<br/> key = optional(string)<br/> value = optional(string)<br/> }))</pre> |`[]`| no |
89
+
| <aname="input_agent_iam_api_key"></a> [agent\_iam\_api\_key](#input\_agent\_iam\_api\_key)| The IBM Cloud API key for the Logs agent to authenticate and communicate with the IBM Cloud Logs. |`string`| n/a | yes |
90
+
| <aname="input_agent_name"></a> [agent\_name](#input\_agent\_name)| The name of the Logs agent. The name is used in all Kubernetes and Helm resources in the cluster. |`string`|`"logs-agent"`| no |
91
+
| <aname="input_agent_namespace"></a> [agent\_namespace](#input\_agent\_namespace)| The namespace where the Logs agent is deployed. The default value is `ibm-agent`. |`string`|`"ibm-observe"`| no |
| <aname="input_agent_tolerations"></a> [agent\_tolerations](#input\_agent\_tolerations)| List of tolerations to apply to Logs agent. The default value means a pod will run on every node. | <pre>list(object({<br/> key = optional(string)<br/> operator = optional(string)<br/> value = optional(string)<br/> effect = optional(string)<br/> tolerationSeconds = optional(number)<br/> }))</pre> | <pre>[<br/> {<br/> "operator": "Exists"<br/> }<br/>]</pre> | no |
94
+
| <aname="input_chart_location"></a> [chart\_location](#input\_chart\_location)| The location of the Helm chart for the Sysdig agent. |`string`|`"sysdig-deploy"`| no |
95
+
| <aname="input_chart_repository"></a> [chart\_repository](#input\_chart\_repository)| The repository URL for the Sysdig Helm chart. |`string`|`"https://charts.sysdig.com"`| no |
96
+
| <aname="input_chart_version"></a> [chart\_version](#input\_chart\_version)| The version of the Sysdig Helm chart to deploy. |`string`|`null`| no |
97
+
| <aname="input_cloud_logs_ingress_endpoint"></a> [cloud\_logs\_ingress\_endpoint](#input\_cloud\_logs\_ingress\_endpoint)| The host for IBM Cloud Logs ingestion. Ensure you use the ingress endpoint. See https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-endpoints_ingress.|`string`| n/a | yes |
98
+
| <aname="input_cluster_config_endpoint_type"></a> [cluster\_config\_endpoint\_type](#input\_cluster\_config\_endpoint\_type)| The type of endpoint to use for the cluster config access: `default`, `private`, `vpe`, or `link`. The `default` value uses the default endpoint of the cluster. |`string`|`"default"`| no |
99
+
| <aname="input_cluster_id"></a> [cluster\_id](#input\_cluster\_id)| The ID of the cluster to deploy the agent. |`string`| n/a | yes |
100
+
| <aname="input_cluster_resource_group_id"></a> [cluster\_resource\_group\_id](#input\_cluster\_resource\_group\_id)| The resource group ID of the cluster. |`string`| n/a | yes |
101
+
| <aname="input_is_vpc_cluster"></a> [is\_vpc\_cluster](#input\_is\_vpc\_cluster)| Specify true if the target cluster for the agent is a VPC cluster, false if it is a classic cluster. |`bool`|`true`| no |
102
+
| <aname="input_node_analyzer_enabled"></a> [node\_analyzer\_enabled](#input\_node\_analyzer\_enabled)| Enable or disable the Node Analyzer feature in the Sysdig agent. |`bool`|`false`| no |
103
+
| <aname="input_wait_till"></a> [wait\_till](#input\_wait\_till)| To avoid long wait times when you run your Terraform code, you can specify the stage when you want Terraform to mark the cluster resource creation as completed. Depending on what stage you choose, the cluster creation might not be fully completed and continues to run in the background. However, your Terraform code can continue to run without waiting for the cluster to be fully created. Supported args are `MasterNodeReady`, `OneWorkerNodeReady`, `IngressReady` and `Normal`|`string`|`"Normal"`| no |
104
+
| <aname="input_wait_till_timeout"></a> [wait\_till\_timeout](#input\_wait\_till\_timeout)| Timeout for wait\_till in minutes. |`number`|`90`| no |
146
105
147
106
### Outputs
148
107
149
-
| Name | Description |
150
-
|------|-------------|
151
-
| <aname="output_account_id"></a> [account\_id](#output\_account\_id)| An alpha-numeric value identifying the account ID. |
152
-
| <aname="output_crn"></a> [crn](#output\_crn)| The CRN of the resource instance. |
153
-
| <aname="output_guid"></a> [guid](#output\_guid)| The GUID of the resource instance. |
154
-
| <aname="output_id"></a> [id](#output\_id)| The unique identifier of the resource instance. |
108
+
No outputs.
155
109
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
156
-
157
-
<!-- Leave this section as is so that your module has a link to local development environment set-up steps for contributors to follow -->
158
-
## Contributing
159
-
160
-
You can report issues and request features for this module in GitHub issues in the module repo. See [Report an issue or request a feature](https://github.com/terraform-ibm-modules/.github/blob/main/.github/SUPPORT.md).
161
-
162
-
To set up your local development environment, see [Local development setup](https://terraform-ibm-modules.github.io/documentation/#/local-dev-setup) in the project documentation.
# - CRA = Code Risk Analyzer (more info on CRA: https://cloud.ibm.com/docs/code-risk-analyzer-cli-plugin?topic=code-risk-analyzer-cli-plugin-cra-cli-plugin)
4
-
# - Multiple directories can be scanned by CRA. Ensure if there are any deployable architecture in the repository that they are all scanned
5
-
# - More info about supported configurations at https://github.com/terraform-ibm-modules/common-pipeline-assets/blob/main/.github/workflows/terraform-test-pipeline.md#cra-config-yaml
6
-
#
7
-
1
+
# More info about this file at https://github.com/terraform-ibm-modules/common-pipeline-assets/blob/main/.github/workflows/terraform-test-pipeline.md#cra-config-yaml
8
2
version: "v1"
9
3
CRA_TARGETS:
10
-
- CRA_TARGET: "examples/advanced"# Target directory for CRA scan. If not provided, the CRA Scan will not be run.
PROFILE_ID: "fe96bd4d-9b37-40f2-b39f-a62760e326a3"# SCC profile ID (currently set to 'IBM Cloud Framework for Financial Services' '1.7.0' profile).
13
-
# SCC_INSTANCE_ID: "" # The SCC instance ID to use to download profile for CRA scan. If not provided, a default global value will be used.
14
-
# SCC_REGION: "" # The IBM Cloud region that the SCC instance is in. If not provided, a default global value will be used.
15
-
CRA_ENVIRONMENT_VARIABLES: # An optional map of environment variables for CRA, where the key is the variable name and value is the value. Useful for providing TF_VARs.
16
-
TF_VAR_prefix: "mock"
17
-
TF_VAR_region: "us-south"
4
+
- CRA_TARGET: "examples/logs-agent-ocp"# Target directory for CRA scan. If not provided, the CRA Scan will not be run.
5
+
CRA_IGNORE_RULES_FILE: "cra-tf-validate-ignore-rules.json"# CRA Ignore file to use. If not provided, it checks the repo root directory for `cra-tf-validate-ignore-rules.json`
6
+
PROFILE_ID: "fe96bd4d-9b37-40f2-b39f-a62760e326a3"# SCC profile ID (currently set to 'IBM Cloud Framework for Financial Services' '1.7.0' profile).
0 commit comments