A sample Kubernetes Host definition, together with information on all the properties that can be added in a Kubernetes Host definition JSON are as follows:

Sample Kubernetes Host definition JSON

The following are sample configurations that can be used in a JSON to define a Kubernetes Host:

{
  "hostId": "minion-2",
  "hostname": "minion-2.dev.kubernetes.org",
  "privateIPAddress": "172.17.8.103",
  "publicIPAddress": "172.17.8.103",
  "property": [
    
  ]
}

Property definitions

Main properties

PropertyDescriptionData
Type 
Example
JSONUI
hostIdhostId Unique ID of the Kubernetes HostYesN/A String
minion-1
privateIpAddressprivateIpAddress The private IP address of the Kubernetes Host.YesN/A String
172.17.8.102
publicIPAddress
publicIpAddress The public IP address of the Kubernetes Host.YesN/A String
172.17.8.102
hostnamehostname The host name of the Kubernetes Host.YesN/A String
minion-1.dev.kubernetes.org
propertyproperty The Kubernetes Host properties are listed as name value pairs. For more information on the sub-properties, see property.YesN/Aproperty array 

Sub-properties

property
PropertyDescriptionData TypeExample
JSONUI
name  The name of the property being passed.NoN/AString 
value  The value corresponding to the value being passed.NoN/AString 
  • No labels