Skip to content

Instantly share code, notes, and snippets.

@AlexRogalskiy
Forked from vfarcic/civo.sh
Created January 17, 2022 23:24
Show Gist options
  • Save AlexRogalskiy/4e1ed72fdddde6f4ef9c6ba106b0ca2f to your computer and use it in GitHub Desktop.
Save AlexRogalskiy/4e1ed72fdddde6f4ef9c6ba106b0ca2f 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