> ## Documentation Index
> Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Crossplane

> This topic explains what the LaunchDarkly Crossplane provider is, how you can use it, and where to find additional documentation for it. The LaunchDarkly Crossplane provider manages LaunchDarkly resources as Kubernetes custom resources.

> For the complete documentation index, see [llms.txt](/llms.txt). For the full documentation snapshot, see [llms-full.txt](/llms-full.txt).

<Note title="Some Crossplane provider features are only available to customers on select plans">
  The Crossplane provider is available to all customers, but some features are only available to customers on select plans. To learn more, [read about our pricing](https://launchdarkly.com/pricing/). To upgrade your plan, [contact Sales](https://launchdarkly.com/contact-sales/).
</Note>

## Overview

This topic explains what the LaunchDarkly Crossplane provider is, how you can use it, and where to find additional documentation for it.

The LaunchDarkly Crossplane provider manages LaunchDarkly resources as Kubernetes custom resources. This provider enables you to use Kubernetes-style YAML configurations to configure and control feature flags, environments, projects, teams, and more.

The provider exposes managed resources for the LaunchDarkly API.

You do not need to choose between the LaunchDarkly user interface (UI) and the Crossplane provider. You can use a hybrid approach that meets your needs. For example, you might manage one set of LaunchDarkly resources through the Crossplane provider and another set through the UI.

<Note title="The Crossplane provider and roles">
  A common scenario is using roles to define the LaunchDarkly entities managed by Crossplane. For example, you can tag Crossplane-managed resources with a `crossplane` tag and use role policies to prevent team members from modifying those resources with the LaunchDarkly UI.

  To learn more, read [Roles](/home/account/roles).
</Note>

## Install the Crossplane provider

For installation instructions, refer to the [Getting Started section of the GitHub repository](https://github.com/launchdarkly/crossplane-provider-launchdarkly?tab=readme-ov-file#getting-started).

## Create resources

This example shows how to create a boolean feature flag using the Crossplane provider:

<CodeGroup>
  ```yaml title="Create a boolean feature flag" theme={null}
      apiVersion: flag.launchdarkly.com/v1alpha1
      kind: FeatureFlag
      metadata:
        name: boolean-flag
      spec:
        forProvider:
          clientSideAvailability:
            - usingEnvironmentId: false
              usingMobileKey: true
          defaults:
            - offVariation: 0
              onVariation: 1
          description: This is a boolean flag.
          key: boolean-flag
          name: Boolean Flag
          projectKey: crossplane-project
          tags:
            - example
            - crossplane
          variationType: boolean
          variations:
            - value: "false"
            - value: "true"
  ```
</CodeGroup>

To learn more about using the Crossplane provider, read about the [LaunchDarkly Crossplane provider on the Upbound marketplace](https://marketplace.upbound.io/providers/launchdarkly/provider-launchdarkly), and the [API reference documentation](https://doc.crds.dev/github.com/launchdarkly/crossplane-provider-launchdarkly).
