Skip to main content

k8s_nodes resource

Use the k8s_nodes Chef InSpec audit resource to test the configuration of all nodes.

Installation

Syntax

describe k8s_nodes do
  #...
end

Properties

uids
UID of the nodes.
names
Name of the nodes.
resource_versions
Resource version of the nodes.
kinds
Resource type of the nodes.

Examples

Test to verify nodes include a node with a specified name and UID

 describe k8s_nodes do
  it { should exist }
  its('names') { should include 'NODE_NAME' }
  its('uids') { should include 'NODE_UID' }
end

Matchers

For a full list of available matchers, see our Universal Matchers page.
Edit this page on GitHub

Thank you for your feedback!

×









Search Results