Skip to main content

ElementSpec

Description

ElementSpec defines the desired state of Element.


GlobalConfig field of tag global-config

GlobalConfig gives the name of main ConfigMap used to set up this Element, derived from the associated NetworkDesc.

Kind: string
Tag: global-config
Data Type: string
Optional: False


ElementConfig field of tag element-config

ElementConfig gives the name of ConfigMap used to set up this Element, derived from the Model and associated with this specific Element, not other Elements in the same NetworkDesc.

Kind: string
Tag: element-config
Data Type: string
Optional: False


Model field of tag model

Model template of the current Element.

Kind: Model
Tag: model
Data Type: Struct
Optional: False


Replicas field of tag replicas

The number of Replicas that should be created for this Element. Kubernetes does not encourage usage of unsigned integers or lower bit sizes due to inconsistencies in some programming languages, but we compensate this by defining the minimum and maximum values. It is the responsibility of the developers to ensure the allocated variable can hold all the range.

Kind: *uint8
Tag: replicas
Data Type: integer
Default Values: 1
Maximum Values: 255
Minimum Values: 0
Optional: True


Backend field of tag backend

Backend to provide the Pods for this Element.

Kind: *string
Tag: backend
Data Type: Pointer
Default Values: ManagedDeployment
Enumeration: UnmanagedPods, ManagedPods, UnmanagedDeployment, ManagedDeployment
Optional: True


Scheduling field of tag scheduling

Scheduling policy for pods of this Element.

Kind: *./api/v1.Scheduling
Tag: scheduling
Data Type: Pointer
Optional: True


ShadowService field of tag shadow-service

ShadowService is a trick used in Trirematics to allow subdomains to be used in the Network setup. Essentially, this ShadowService makes the pods of this Element discoverable and is uniquely mapped to a subdomain name that is used in the NetworkReconciler.

Kind: string
Tag: shadow-service
Data Type: string
Optional: False


AssociatedSlices field of tag associated-slices

AssociatedSlices is a list of slices that this Element is associated with them.

Tag: associated-slices
Data Type: Slice
Optional: True