Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Created November 23, 2021 19:28
Show Gist options
  • Save vfarcic/c2f8ad952b11fe5369feda15a383893f to your computer and use it in GitHub Desktop.
Save vfarcic/c2f8ad952b11fe5369feda15a383893f to your computer and use it in GitHub Desktop.
# Create a k8s cluster
git clone https://github.com/vfarcic/devops-toolkit-crossplane
cd devops-toolkit-crossplane
helm repo add crossplane-stable \
https://charts.crossplane.io/stable
helm repo update
helm upgrade --install \
crossplane crossplane-stable/crossplane \
--namespace crossplane-system \
--create-namespace \
--wait
# Replace `[...]` with your Civo token
export CIVO_TOKEN=[...]
export CIVO_TOKEN_ENCODED=$(\
echo $CIVO_TOKEN | base64)
echo "apiVersion: v1
kind: Secret
metadata:
namespace: crossplane-system
name: civo-creds
type: Opaque
data:
credentials: $CIVO_TOKEN_ENCODED" \
| kubectl apply --filename -
kubectl apply \
--filename crossplane-config/provider-civo.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment