A Droplet is a managed resource that represents a DigitalOcean Droplet.
Type
CRD
Group
compute.do.crossplane.io
Version
v1alpha1
apiVersion: compute.do.crossplane.io/v1alpha1
kind: Droplet
A DropletSpec defines the desired state of a Droplet.
DropletParameters define the desired state of a DigitalOcean Droplet. Most fields map directly to a Droplet: https://developers.digitalocean.com/documentation/v2/#droplets
SSHKeys: An array containing the IDs or fingerprints of the SSH keys that you wish to embed in the Droplet's root account upon creation.
Tags: A flat array of tag names as strings to apply to the Droplet after it is created. Tag names can either be existing or new tags.
Volumes: A flat array including the unique string identifier for each block storage volume to be attached to the Droplet. At the moment a volume can only be attached to a single Droplet.
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
A DropletStatus represents the observed state of a Droplet.
A DropletObservation reflects the observed state of a Droplet on DigitalOcean.
Conditions of the resource.
example
apiVersion: compute.do.crossplane.io/v1alpha1
kind: Droplet
metadata:
annotations:
crossplane.io/external-name: crossplane-droplet
name: example
spec:
forProvider:
image: ubuntu-20-04-x64
region: nyc1
size: s-1vcpu-1gb
providerConfigRef:
name: default
user-data-example
apiVersion: compute.do.crossplane.io/v1alpha1
kind: Droplet
metadata:
name: user-data-example
spec:
forProvider:
image: ubuntu-20-04-x64
region: nyc1
size: s-1vcpu-1gb
userData: >
#!/bin/bash
apt-get -y update
apt-get -y install nginx
export HOSTNAME=$(curl -s http://169.254.169.254/metadata/v1/hostname)
export PUBLIC_IPV4=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address)
echo Droplet: $HOSTNAME, IP Address: $PUBLIC_IPV4 > /var/www/html/index.html
providerConfigRef:
name: example
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.