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
{{ message }}
This repository was archived by the owner on May 21, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+25-16Lines changed: 25 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
12
12
This module is a wrapper module that groups the following modules:
13
13
-[base-ocp-vpc-module](https://github.com/terraform-ibm-modules/terraform-ibm-base-ocp-vpc) - Provisions a base (bare) Red Hat OpenShift Container Platform cluster on VPC Gen2 (supports passing Key Protect details to encrypt cluster).
14
-
-[observability-agents-module](https://github.com/terraform-ibm-modules/terraform-ibm-observability-agents) - Deploys Log Analysis and Cloud Monitoring agents to a cluster.
14
+
-[observability-agents-module](https://github.com/terraform-ibm-modules/terraform-ibm-observability-agents) - Deploys Logs Agent and Cloud Monitoring agents to a cluster.
15
15
16
16
:exclamation:**Important:** You can't update Red Hat OpenShift cluster nodes by using this module. The Terraform logic ignores updates to prevent possible destructive changes.
| <aname="input_addons"></a> [addons](#input\_addons)| List of all addons supported by the ocp cluster. | <pre>object({<br/> debug-tool = optional(string)<br/> image-key-synchronizer = optional(string)<br/> openshift-data-foundation = optional(string)<br/> vpc-file-csi-driver = optional(string)<br/> static-route = optional(string)<br/> cluster-autoscaler = optional(string)<br/> vpc-block-csi-driver = optional(string)<br/> })</pre> |`null`| no |
182
189
| <aname="input_allow_default_worker_pool_replacement"></a> [allow\_default\_worker\_pool\_replacement](#input\_allow\_default\_worker\_pool\_replacement)| (Advanced users) Set to true to allow the module to recreate a default worker pool. Only use in the case where you are getting an error indicating that the default worker pool cannot be replaced on apply. Once the default worker pool is handled as a stand-alone ibm\_container\_vpc\_worker\_pool, if you wish to make any change to the default worker pool which requires the re-creation of the default pool set this variable to true. |`bool`|`false`| no |
183
190
| <aname="input_attach_ibm_managed_security_group"></a> [attach\_ibm\_managed\_security\_group](#input\_attach\_ibm\_managed\_security\_group)| Whether to attach the IBM-defined default security group (named `kube-<clusterid>`) to all worker nodes. Applies only if `custom_security_group_ids` is set. |`bool`|`true`| no |
191
+
| <aname="input_cloud_logs_ingress_endpoint"></a> [cloud\_logs\_ingress\_endpoint](#input\_cloud\_logs\_ingress\_endpoint)| The host for IBM Cloud Logs ingestion. It is required if `logs_agent_enabled` is set to `true`. Ensure you use the ingress endpoint. See https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-endpoints_ingress.|`string`|`null`| no |
192
+
| <aname="input_cloud_logs_ingress_port"></a> [cloud\_logs\_ingress\_port](#input\_cloud\_logs\_ingress\_port)| The target port for the IBM Cloud Logs ingestion endpoint. The port must be 443 if you connect by using a VPE gateway, or port 3443 when you connect by using CSEs. |`number`|`3443`| no |
184
193
| <aname="input_cloud_monitoring_access_key"></a> [cloud\_monitoring\_access\_key](#input\_cloud\_monitoring\_access\_key)| Access key for the Cloud Monitoring agent to communicate with the instance. |`string`|`null`| no |
185
194
| <aname="input_cloud_monitoring_add_cluster_name"></a> [cloud\_monitoring\_add\_cluster\_name](#input\_cloud\_monitoring\_add\_cluster\_name)| If true, configure the cloud monitoring agent to attach a tag containing the cluster name to all metric data. |`bool`|`true`| no |
186
195
| <aname="input_cloud_monitoring_agent_name"></a> [cloud\_monitoring\_agent\_name](#input\_cloud\_monitoring\_agent\_name)| Cloud Monitoring agent name. Used for naming all kubernetes and helm resources on the cluster. |`string`|`"sysdig-agent"`| no |
@@ -210,18 +219,18 @@ No resources.
210
219
| <aname="input_kms_account_id"></a> [kms\_account\_id](#input\_kms\_account\_id)| Id of the account that owns the KMS instance to encrypt the cluster. It is only required if the KMS instance is in another account. |`string`|`null`| no |
211
220
| <aname="input_kms_use_private_endpoint"></a> [kms\_use\_private\_endpoint](#input\_kms\_use\_private\_endpoint)| Set as true to use the Private endpoint when communicating between cluster and KMS instance. |`bool`|`true`| no |
212
221
| <aname="input_kms_wait_for_apply"></a> [kms\_wait\_for\_apply](#input\_kms\_wait\_for\_apply)| Set true to make terraform wait until KMS is applied to master and it is ready and deployed. Default value is true. |`bool`|`true`| no |
213
-
| <aname="input_log_analysis_add_cluster_name"></a> [log\_analysis\_add\_cluster\_name](#input\_log\_analysis\_add\_cluster\_name)|If true, configure the log analysis agent to attach a tag containing the cluster name to all log messages.|`bool`|`true`| no |
214
-
| <aname="input_log_analysis_agent_custom_line_exclusion"></a> [log\_analysis\_agent\_custom\_line\_exclusion](#input\_log\_analysis\_agent\_custom\_line\_exclusion)|Log Analysis agent custom configuration for line exclusion setting LOGDNA\_K8S\_METADATA\_LINE\_EXCLUSION. See https://github.com/logdna/logdna-agent-v2/blob/master/docs/KUBERNETES.md#configuration-for-kubernetes-metadata-filtering for more info. |`string`|`null`| no |
215
-
| <aname="input_log_analysis_agent_custom_line_inclusion"></a> [log\_analysis\_agent\_custom\_line\_inclusion](#input\_log\_analysis\_agent\_custom\_line\_inclusion)|Log Analysis agent custom configuration for line inclusion setting LOGDNA\_K8S\_METADATA\_LINE\_INCLUSION. See https://github.com/logdna/logdna-agent-v2/blob/master/docs/KUBERNETES.md#configuration-for-kubernetes-metadata-filtering for more info. |`string`|`null`| no |
216
-
| <aname="input_log_analysis_agent_name"></a> [log\_analysis\_agent\_name](#input\_log\_analysis\_agent\_name)|Log Analysis agent name. Used for naming all kubernetes and helm resources on the cluster. |`string`|`"logdna-agent"`| no |
217
-
| <aname="input_log_analysis_agent_namespace"></a> [log\_analysis\_agent\_namespace](#input\_log\_analysis\_agent\_namespace)|Namespace where to deploy the Log Analysis agent. Default value is 'ibm-observe' |`string`|`"ibm-observe"`| no |
218
-
| <aname="input_log_analysis_agent_tags"></a> [log\_analysis\_agent\_tags](#input\_log\_analysis\_agent\_tags)|List of tags to associate with the log analysis agents |`list(string)`|`[]`| no |
219
-
| <aname="input_log_analysis_agent_tolerations"></a> [log\_analysis\_agent\_tolerations](#input\_log\_analysis\_agent\_tolerations)|List of tolerations to apply to Log Analysis agent. | <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 |
220
-
| <aname="input_log_analysis_enabled"></a> [log\_analysis\_enabled](#input\_log\_analysis\_enabled)|Deploy IBM Cloud Logging agent|`bool`|`true`| no |
221
-
| <aname="input_log_analysis_endpoint_type"></a> [log\_analysis\_endpoint\_type](#input\_log\_analysis\_endpoint\_type)|Specify the IBM Log Analysis instance endpoint type (public or private) to use. Used to construct the ingestion endpoint. |`string`|`"private"`| no |
222
-
| <aname="input_log_analysis_ingestion_key"></a> [log\_analysis\_ingestion\_key](#input\_log\_analysis\_ingestion\_key)|Ingestion key for the Log Analysis agent to communicate with the instance. |`string`|`null`| no |
223
-
| <aname="input_log_analysis_instance_region"></a> [log\_analysis\_instance\_region](#input\_log\_analysis\_instance\_region)| The IBM Log Analysis instance region. Used to construct the ingestion endpoint. |`string`|`null`| no |
224
-
| <aname="input_log_analysis_secret_name"></a> [log\_analysis\_secret\_name](#input\_log\_analysis\_secret\_name)| The name of the secret which will store the ingestion key. |`string`|`"logdna-agent"`| no |
222
+
| <aname="input_logs_agent_additional_log_source_paths"></a> [logs\_agent\_additional\_log\_source\_paths](#input\_logs\_agent\_additional\_log\_source\_paths)|The list of additional log sources. By default, the Logs agent collects logs from a single source at `/var/log/containers/*.log`.|`list(string)`|`[]`| no |
223
+
| <aname="input_logs_agent_additional_metadata"></a> [logs\_agent\_additional\_metadata](#input\_logs\_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 |
224
+
| <aname="input_logs_agent_enabled"></a> [logs\_agent\_enabled](#input\_logs\_agent\_enabled)|Whether to deploy the Logs agent. |`bool`|`true`| no |
225
+
| <aname="input_logs_agent_exclude_log_source_paths"></a> [logs\_agent\_exclude\_log\_source\_paths](#input\_logs\_agent\_exclude\_log\_source\_paths)|The list of log sources to exclude. Specify the paths that the Logs agent ignores. |`list(string)`|`[]`| no |
226
+
| <aname="input_logs_agent_iam_api_key"></a> [logs\_agent\_iam\_api\_key](#input\_logs\_agent\_iam\_api\_key)|The IBM Cloud API key for the Logs agent to authenticate and communicate with the IBM Cloud Logs. It is required if `logs_agent_enabled`is true and `logs_agent_iam_mode` is set to `IAMAPIKey`. |`string`|`null`| no |
227
+
| <aname="input_logs_agent_iam_environment"></a> [logs\_agent\_iam\_environment](#input\_logs\_agent\_iam\_environment)|IAM authentication Environment: `Production` or `PrivateProduction` or `Staging` or `PrivateStaging`. `Production` specifies the public endpoint & `PrivateProduction` specifies the private endpoint. |`string`|`"PrivateProduction"`| no |
228
+
| <aname="input_logs_agent_iam_mode"></a> [logs\_agent\_iam\_mode](#input\_logs\_agent\_iam\_mode)|IAM authentication mode: `TrustedProfile` or `IAMAPIKey`. If `TrustedProfile` is selected, the module will create one. |`string`|`"TrustedProfile"`| no |
229
+
| <aname="input_logs_agent_log_source_namespaces"></a> [logs\_agent\_log\_source\_namespaces](#input\_logs\_agent\_log\_source\_namespaces)|The list of namespaces from which logs should be forwarded by agent. If namespaces are not listed, logs from all namespaces will be sent. |`list(string)`|`[]`| no |
230
+
| <aname="input_logs_agent_name"></a> [logs\_agent\_name](#input\_logs\_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 |
231
+
| <aname="input_logs_agent_namespace"></a> [logs\_agent\_namespace](#input\_logs\_agent\_namespace)|The namespace where the Logs agent is deployed. The default value is `ibm-observe`. |`string`|`"ibm-observe"`| no |
232
+
| <aname="input_logs_agent_selected_log_source_paths"></a> [logs\_agent\_selected\_log\_source\_paths](#input\_logs\_agent\_selected\_log\_source\_paths)| The list of specific log sources paths. Logs will only be collected from the specified log source paths. If no paths are specified, it will send logs from `/var/log/containers`. |`list(string)`|`[]`| no |
233
+
| <aname="input_logs_agent_tolerations"></a> [logs\_agent\_tolerations](#input\_logs\_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 |
225
234
| <aname="input_manage_all_addons"></a> [manage\_all\_addons](#input\_manage\_all\_addons)| Whether Terraform manages all cluster add-ons, even add-ons installed outside of the module. If set to 'true', this module destroys the add-ons installed by other sources. |`bool`|`false`| no |
226
235
| <aname="input_number_of_lbs"></a> [number\_of\_lbs](#input\_number\_of\_lbs)| The number of load balancer to associate with the `additional_lb_security_group_names` security group. Must match the number of load balancers that are associated with the cluster |`number`|`1`| no |
227
236
| <aname="input_ocp_entitlement"></a> [ocp\_entitlement](#input\_ocp\_entitlement)| Value that is applied to the entitlements for OCP cluster provisioning |`string`|`"cloud_pak"`| no |
0 commit comments