google_container_regional_clusters resource
Use the google_container_regional_clusters InSpec audit resource to to test a Google Cloud RegionalCluster resource.
Examples
describe google_container_regional_clusters(project: 'chef-gcp-inspec', location: 'europe-west2') do
its('count') { should be >= 1 }
its('names') { should include 'inspec-gcp-regional-cluster' }
its('initial_node_counts') { should include '1'}
end
Properties
Properties that can be accessed from the google_container_regional_clusters resource:
See google_container_regional_cluster for more detailed information.
names: an array ofgoogle_container_regional_clusternamedescriptions: an array ofgoogle_container_regional_clusterdescriptioninitial_node_counts: an array ofgoogle_container_regional_clusterinitial_node_countnode_configs: an array ofgoogle_container_regional_clusternode_configmaster_auths: an array ofgoogle_container_regional_clustermaster_authlogging_services: an array ofgoogle_container_regional_clusterlogging_servicemonitoring_services: an array ofgoogle_container_regional_clustermonitoring_servicenetworks: an array ofgoogle_container_regional_clusternetworkprivate_cluster_configs: an array ofgoogle_container_regional_clusterprivate_cluster_configcluster_ipv4_cidrs: an array ofgoogle_container_regional_clustercluster_ipv4_cidrenable_tpus: an array ofgoogle_container_regional_clusterenable_tputpu_ipv4_cidr_blocks: an array ofgoogle_container_regional_clustertpu_ipv4_cidr_blockaddons_configs: an array ofgoogle_container_regional_clusteraddons_configsubnetworks: an array ofgoogle_container_regional_clustersubnetworklocations: an array ofgoogle_container_regional_clusterlocationsresource_labels: an array ofgoogle_container_regional_clusterresource_labelslabel_fingerprints: an array ofgoogle_container_regional_clusterlabel_fingerprintlegacy_abacs: an array ofgoogle_container_regional_clusterlegacy_abacnetwork_policies: an array ofgoogle_container_regional_clusternetwork_policydefault_max_pods_constraints: an array ofgoogle_container_regional_clusterdefault_max_pods_constraintip_allocation_policies: an array ofgoogle_container_regional_clusterip_allocation_policyendpoints: an array ofgoogle_container_regional_clusterendpointinitial_cluster_versions: an array ofgoogle_container_regional_clusterinitial_cluster_versioncurrent_master_versions: an array ofgoogle_container_regional_clustercurrent_master_versioncurrent_node_versions: an array ofgoogle_container_regional_clustercurrent_node_versioncreate_times: an array ofgoogle_container_regional_clustercreate_timestatuses: an array ofgoogle_container_regional_clusterstatusstatus_messages: an array ofgoogle_container_regional_clusterstatus_messagenode_ipv4_cidr_sizes: an array ofgoogle_container_regional_clusternode_ipv4_cidr_sizeservices_ipv4_cidrs: an array ofgoogle_container_regional_clusterservices_ipv4_cidrcurrent_node_counts: an array ofgoogle_container_regional_clustercurrent_node_countexpire_times: an array ofgoogle_container_regional_clusterexpire_timeconditions: an array ofgoogle_container_regional_clusterconditionsmaster_authorized_networks_configs: an array ofgoogle_container_regional_clustermaster_authorized_networks_configlocations: an array ofgoogle_container_regional_clusterlocation
Filter criteria
This resource supports all of the above properties as filter criteria, which can be used
with where as a block or a method.
GCP permissions
Ensure the Kubernetes Engine API is enabled for the current project.