ComputeNodeTemplate

Property Value
Google Cloud Service Name Compute Engine
Google Cloud Service Documentation /compute/docs/
Google Cloud REST Resource Name v1.nodeTemplates
Google Cloud REST Resource Documentation /compute/docs/reference/rest/v1/nodeTemplates
Config Connector Resource Short Names gcpcomputenodetemplate
gcpcomputenodetemplates
computenodetemplate
Config Connector Service Name compute.googleapis.com
Config Connector Resource Fully Qualified Name computenodetemplates.compute.cnrm.cloud.google.com
Can Be Referenced by IAMPolicy/IAMPolicyMember No

Custom Resource Definition Properties

Annotations

Fields
cnrm.cloud.google.com/project-id

Spec

Schema

description: string
nodeType: string
nodeTypeFlexibility:
  cpus: string
  localSsd: string
  memory: string
region: string
serverBinding:
  type: string
Fields

description

Optional

string

An optional textual description of the resource.

nodeType

Optional

string

Node type to use for nodes group that are created from this template. Only one of nodeTypeFlexibility and nodeType can be specified.

nodeTypeFlexibility

Optional

object

Flexible properties for the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. Only one of nodeTypeFlexibility and nodeType can be specified.

nodeTypeFlexibility.cpus

Optional

string

Number of virtual CPUs to use.

nodeTypeFlexibility.localSsd

Optional

string

Use local SSD

nodeTypeFlexibility.memory

Optional

string

Physical memory available to the node, defined in MB.

region

Required

string

Region where nodes using the node template will be created. If it is not provided, the provider region is used.

serverBinding

Optional

object

The server binding policy for nodes using this template. Determines where the nodes should restart following a maintenance event.

serverBinding.type

Required*

string

Type of server binding policy. If 'RESTART_NODE_ON_ANY_SERVER', nodes using this template will restart on any physical server following a maintenance event. If 'RESTART_NODE_ON_MINIMAL_SERVER', nodes using this template will restart on the same physical server following a maintenance event, instead of being live migrated to or restarted on a new physical server. This option may be useful if you are using software licenses tied to the underlying server characteristics such as physical sockets or cores, to avoid the need for additional licenses when maintenance occurs. However, VMs on such nodes will experience outages while maintenance is applied. Possible values: ["RESTART_NODE_ON_ANY_SERVER", "RESTART_NODE_ON_MINIMAL_SERVERS"]

* Field is required when parent field is specified

Status

Schema

conditions:
- lastTransitionTime: string
  message: string
  reason: string
  status: string
  type: string
creationTimestamp: string
selfLink: string
Fields
conditions

list (object)

conditions.[]

object

conditions.[].lastTransitionTime

string

Last time the condition transitioned from one status to another.

conditions.[].message

string

Human-readable message indicating details about last transition.

conditions.[].reason

string

Unique, one-word, CamelCase reason for the condition's last transition.

conditions.[].status

string

Status is the status of the condition. Can be True, False, Unknown.

conditions.[].type

string

Type is the type of the condition.

creationTimestamp

string

Creation timestamp in RFC3339 text format.

selfLink

string

Sample YAML(s)

Flexible Node Template

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNodeTemplate
metadata:
  name: computenodetemplate-sample-flexible
  labels:
    memory_guarantee: "false"
    desired_workload: "high-cpu"
spec:
  description: Node template for sole tenant nodes running in us-central1, with 96vCPUs and any amount of memory on any machine type.
  region: us-central1
  nodeTypeFlexibility:
    cpus: "96"
    memory: any

Typed Node Template

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNodeTemplate
metadata:
  name: computenodetemplate-sample-template
  labels:
    memory_guarantee: "true"
    desired_workload: "sustained"
spec:
  description: Node template for sole tenant nodes running in us-central1, with 96vCPUs and 624GB of memory, on n1 machines.
  region: us-central1
  nodeType: n1-node-96-624