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
Copy file name to clipboardExpand all lines: examples/simple_zonal_with_acm/README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Simple Zonal Cluster
2
2
3
-
This example illustrates how to create a simple cluster and install [Anthos Config Management](https://cloud.google.com/anthos-config-management/docs/).
3
+
This example illustrates how to create a simple cluster and install [Anthos Config Management](https://cloud.google.com/anthos-config-management/docs/)'s [Config Sync](https://cloud.google.com/anthos-config-management/docs/config-sync-overview) and [Policy Controller](https://cloud.google.com/anthos-config-management/docs/concepts/policy-controller) with the [Policy Essentials v2022 policy bundle](https://cloud.google.com/anthos-config-management/docs/how-to/using-policy-essentials-v2022).
4
4
5
5
It incorporates the standard cluster module and the [ACM install module](../../modules/acm).
6
6
@@ -27,13 +27,19 @@ After applying the Terraform configuration, you can run the following commands t
27
27
kubectl describe ns shipping-dev
28
28
```
29
29
30
+
4. You can also use `kubectl` to view any policy violations on the cluster:
Copy file name to clipboardExpand all lines: modules/acm/README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,9 @@ data "google_client_config" "default" {}
67
67
| cluster\_membership\_id | The cluster membership ID. If unset, one will be autogenerated. |`string`|`""`| no |
68
68
| cluster\_name | GCP cluster Name used to reach cluster and which becomes the cluster name in the Config Sync kubernetes custom resource. |`string`| n/a | yes |
69
69
| configmanagement\_version | Version of ACM. |`string`|`""`| no |
70
+
| create\_metrics\_gcp\_sa | Create a Google service account for ACM metrics writing |`bool`|`false`| no |
70
71
| create\_ssh\_key | Controls whether a key will be generated for Git authentication |`bool`|`true`| no |
72
+
| enable\_config\_sync | Whether to enable the ACM Config Sync on the cluster |`bool`|`true`| no |
71
73
| enable\_fleet\_feature | Whether to enable the ACM feature on the fleet. |`bool`|`true`| no |
72
74
| enable\_fleet\_registration | Whether to create a new membership. |`bool`|`true`| no |
73
75
| enable\_log\_denies | Whether to enable logging of all denies and dryrun failures for ACM Policy Controller. |`bool`|`false`| no |
@@ -77,19 +79,22 @@ data "google_client_config" "default" {}
77
79
| https\_proxy | URL for the HTTPS proxy to be used when communicating with the Git repo. |`string`|`null`| no |
78
80
| install\_template\_library | Whether to install the default Policy Controller template library |`bool`|`true`| no |
79
81
| location | GCP location used to reach cluster. |`string`| n/a | yes |
82
+
| metrics\_gcp\_sa\_name | The name of the Google service account for ACM metrics writing |`string`|`"acm-metrics-writer"`| no |
83
+
| policy\_bundles | A list of Policy Controller policy bundles git urls (example: https://github.com/GoogleCloudPlatform/acm-policy-controller-library.git/bundles/policy-essentials-v2022) to install on the cluster. |`list(string)`|`[]`| no |
80
84
| policy\_dir | Subfolder containing configs in ACM Git repo. If un-set, uses Config Management default. |`string`|`""`| no |
81
85
| project\_id | GCP project\_id used to reach cluster. |`string`| n/a | yes |
82
86
| secret\_type | git authentication secret type, is passed through to ConfigManagement spec.git.secretType. Overriden to value 'ssh' if `create_ssh_key` is true |`string`|`"ssh"`| no |
83
87
| source\_format | Configures a non-hierarchical repo if set to 'unstructured'. Uses [ACM defaults](https://cloud.google.com/anthos-config-management/docs/how-to/installing#configuring-config-management-operator) when unset. |`string`|`""`| no |
84
88
| ssh\_auth\_key | Key for Git authentication. Overrides 'create\_ssh\_key' variable. Can be set using 'file(path/to/file)'-function. |`string`|`null`| no |
85
89
| sync\_branch | ACM repo Git branch. If un-set, uses Config Management default. |`string`|`""`| no |
description="A list of Policy Controller policy bundles git urls (example: https://github.com/GoogleCloudPlatform/acm-policy-controller-library.git/bundles/policy-essentials-v2022) to install on the cluster."
152
+
type=list(string)
153
+
default=[]
154
+
}
155
+
156
+
variable"create_metrics_gcp_sa" {
157
+
description="Create a Google service account for ACM metrics writing"
158
+
type=bool
159
+
default=false
160
+
}
161
+
162
+
variable"metrics_gcp_sa_name" {
163
+
description="The name of the Google service account for ACM metrics writing"
0 commit comments