Skip to main content

google_container_server_config resource

Use the google_container_server_config InSpec audit resource to to test a Google Cloud ServerConfig resource.

Examples

describe google_container_server_config(project: 'chef-gcp-inspec', location: 'europe-west2-a') do
  its('valid_master_versions') { should include '1.21.5-gke.1802'}
end

Properties

Properties that can be accessed from the google_container_server_config resource:

  • default_cluster_version: Version of Kubernetes the service deploys by default.

  • default_image_type: Default image type.

  • valid_image_types: List of valid image types.

  • valid_node_versions: List of valid node upgrade target versions, in descending order.

  • valid_master_versions: List of valid master versions, in descending order.

  • channels: List of release channel configurations.

    • channel: The release channel this configuration applies to. Possible values:

      • UNSPECIFIED
      • RAPID
      • REGULAR
      • STABLE
    • default_version: The default version for newly created clusters on the channel.

    • valid_versions: List of valid versions for the channel.

  • location: The name of the Google Compute Engine location to return ServerConfig for.

GCP permissions

Ensure the Kubernetes Engine API is enabled for the current project.

Thank you for your feedback!

×