liveBook · Manning

Managed resource

As explained in Platform Engineering on Kubernetes

A managed resource is a Kubernetes resource whose desired state and lifecycle are reconciled with a corresponding external infrastructure resource by a Crossplane provider.

A managed resource is a Kubernetes resource that represents infrastructure owned by an external cloud provider. A Crossplane provider reconciles its declared parameters with the corresponding cloud resource, making the Kubernetes object the operational interface for infrastructure. section 5.2.3 section 5.2.4

Managed resources provide several Kubernetes-native operational behaviors:

  • Expose cloud infrastructure as ordinary Kubernetes resources, so standard Kubernetes tools can query and monitor it. section 5.2.4
  • Continuously reconcile the desired state declared in the resource with the external infrastructure and report status back to Kubernetes. section 5.2.4
  • Report manual changes made in the cloud provider as configuration drift instead of automatically deleting and recreating the remote resource. section 5.2.4
  • Use provider-selected defaults for optional properties and write those late-initialized values back into the managed resource. section 5.2.4

Creating managed resources requires an installed and configured Crossplane provider, suitable cloud credentials, and permissions to list, create, and modify the target infrastructure. Providers expose their supported resource types through Kubernetes custom resource definitions. section 5.2.3

Figure 5.10 Lifecycle of managed resources with Crossplane

Follow the managed-resource lifecycle from declaration through provider reconciliation, status reporting, and ongoing observation. section 5.2.4

How Platform Engineering on Kubernetes covers it

How deep it goes
Explains visibility, reconciliation, drift reporting, and late initialization, while deferring provider-specific provisioning details.
Examples
Uses the GCP provider, its supported CRDs, and provider-selected defaults to illustrate managed infrastructure.
What it assumes
Assumes an installed provider, cloud account, credentials, and permissions; teaches managed-resource behavior from its Kubernetes representation.
What you can do after
Operate/configure external infrastructure through Kubernetes resources and monitor reconciliation or drift with standard Kubernetes tools.
How it connects
Connects Kubernetes resources, Custom Resource Definitions, Crossplane providers, cloud provider APIs, desired state, and configuration drift.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Platform Engineering on Kubernetes. The section links point to the parts of the book it draws on.