Created
November 23, 2021 19:28
-
-
Save vfarcic/c2f8ad952b11fe5369feda15a383893f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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