Cluster
This schema extension contains the foundations to capture clusters. With this one in place you can unlock various clusters flavors (hosting cluster able to host VMs, firewall clusters built with specific appliances ...)
Details
- Dependencies:
Generics
Generic
- Description: A cluster of machines hosting services or other machines.
- Namespace: Cluster
- Icon: mdi:dots-hexagon
- Human Friendly ID: name__value
Attributes
| name | description | kind | optional | default_value | choices |
|---|---|---|---|---|---|
| name | Name of the cluster. | Text | False | ||
| description | Text | True |
Relationships
| name | peer | optional | cardinality | kind |
|---|---|---|---|---|
| locations | LocationGeneric | False | many | Attribute |
| tags | BuiltinTag | True | many | Attribute |
GenericComputeUnitNodes
- Description: A generic to apply on clusters that can be built out of generic compute units.
- Namespace: Cluster
Relationships
| name | peer | optional | cardinality | kind |
|---|---|---|---|---|
| nodes | ComputeGenericUnit | True | many | Component |
Extensions
note
In this context "extensions" refer to modifications or additions to the existing schema, such as adding new attributes, relationships, or other schema elements.
ComputeGenericUnit
Relationships
| name | peer | optional | cardinality | kind |
|---|---|---|---|---|
| worker_in_cluster | ClusterGenericComputeUnitNodes | True | one | Generic |
LocationGeneric
Relationships
| name | peer | optional | cardinality | kind |
|---|---|---|---|---|
| clusters | ClusterGeneric | True | many | Component |
Code
version: '1.0'
generics:
- name: Generic
namespace: Cluster
description: A cluster of machines hosting services or other machines.
icon: mdi:dots-hexagon
include_in_menu: false
human_friendly_id:
- name__value
order_by:
- name__value
display_label: name__value
attributes:
- name: name
kind: Text
unique: true
optional: false
description: Name of the cluster.
order_weight: 1000
- name: description
kind: Text
optional: true
order_weight: 1100
relationships:
- name: locations
peer: LocationGeneric
label: Locations
kind: Attribute
cardinality: many
optional: false
order_weight: 1400
- name: tags
peer: BuiltinTag
kind: Attribute
cardinality: many
optional: true
order_weight: 2000
- name: GenericComputeUnitNodes
namespace: Cluster
description: A generic to apply on clusters that can be built out of generic compute
units.
include_in_menu: false
relationships:
- name: nodes
peer: ComputeGenericUnit
label: Nodes
kind: Component
cardinality: many
identifier: worker_in_cluster
optional: true
order_weight: 1500
extensions:
nodes:
- kind: ComputeGenericUnit
relationships:
- name: worker_in_cluster
peer: ClusterGenericComputeUnitNodes
kind: Generic
label: Worker in cluster
cardinality: one
optional: true
identifier: worker_in_cluster
description: This device is a worker node of the specified cluster.
order_weight: 1900
- kind: LocationGeneric
relationships:
- name: clusters
peer: ClusterGeneric
label: Clusters
kind: Component
cardinality: many
optional: true
description: All clusters available on that location.
order_weight: 1650