Workload Auto Registration
Workload Auto Registration represents a registry record of a workload
onboarded into the mesh.
Workload Auto Registration captures essential information about the workload
allowing Workload Onboarding Plane to generate boot configuration for the
Istio Sidecar that will be started alongside this workload.
WorkloadAutoRegistration resource is not supposed to be edited by the users.
Instead, it gets created automatically as part of the Workload Onboarding
flow.
Users can introspect WorkloadAutoRegistration resources for the purposes of
observability and troubleshooting of Workload Onboarding.
To leverage k8s resource garbage collection (i.e. cascade removal),
WorkloadAutoRegistrationresource is owned by the WorkloadGroup resource the workload has joined toWorkloadAutoRegistrationresource owns the Istio WorkloadEntry resource that describes the workload to theIstioControl Plane.
WorkloadGroup
|
| (owns)
|
└── WorkloadAutoRegistration
    |
    | (owns)
    |
    └── WorkloadEntry
E.g.,
apiVersion: runtime.onboarding.tetrate.io/v1alpha1
kind: WorkloadAutoRegistration
metadata:
  namespace: bookinfo
  name: ratings-aws-aws-123456789012-ca-central-1b-ec2-i-1234567890abcdef0
  ownerReferences:
  - apiVersion: networking.istio.io/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: WorkloadGroup
    name: ratings
    uid: fb67dbad-b063-40e5-a958-098fbe7b40f4
spec:
  identity:
    aws:
      partition: aws
      account: '123456789012'
      region: ca-central-1
      zone: ca-central-1b
      ec2:
        instance_id: i-1234567890abcdef0
  registration:
    agent:
      version: '1.4.0'
    sidecar:
      istio:
        version: '1.8.5-abcd'
    host:
      addresses:
      - ip: 10.0.0.1
        type: VPC
      - ip: 1.2.3.4
        type: INTERNET
    workload:
      labels:
        cloud: aws
        class: ec2
        version: v3
    settings:
      connectedOver: INTERNET
status:
  activeAgentConnection:
    connectedTo: onboarding-plane-745bf76677-974tq
  conditions:
  - type: AgentConnected
    status: True
    reason: ConnectionEstablished
    lastTransitionTime: "2020-12-02T18:26:08Z"
AgentConnection
AgentConnection specifies information about the persistent connection between
the Workload Onboarding Agent and a Workload Onboarding Plane instance.
| Field | Description | Validation Rule | 
|---|---|---|
connectedTo  | string   | string = {  | 
WorkloadAutoRegistrationSpec
WorkloadAutoRegistrationSpec is the specification of the workload's registration within the mesh.
| Field | Description | Validation Rule | 
|---|---|---|
identity  | tetrateio.api.onboarding.config.types.identity.v1alpha1.WorkloadIdentity   | message = {  | 
registration  | tetrateio.api.onboarding.config.types.registration.v1alpha1.Registration   | message = {  | 
WorkloadAutoRegistrationStatus
WorkloadAutoRegistrationStatus represents the current status of the workload's registration within the mesh.
| Field | Description | Validation Rule | 
|---|---|---|
observedGeneration  | int64   | –  | 
conditions  | List of tetrateio.api.onboarding.config.types.core.v1alpha1.Condition   | repeated = {  | 
activeAgentConnection  | tetrateio.api.onboarding.config.runtime.v1alpha1.AgentConnection   | –  |