From b5d35c51d2b73e9a4370f5a9d06f3d653a504650 Mon Sep 17 00:00:00 2001 From: ionutb Date: Mon, 7 Oct 2024 16:02:09 +0300 Subject: [PATCH] quickstart guide --- README.md | 6 +- docs/Quickstart.md | 196 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 199 insertions(+), 3 deletions(-) create mode 100644 docs/Quickstart.md diff --git a/README.md b/README.md index 9bbe1d2..993e0e0 100644 --- a/README.md +++ b/README.md @@ -25,15 +25,15 @@ spec: EOF ``` -Notice that in this example Provider resource is referencing ControllerConfig with debug enabled. +#### The API reference can be checked [here](https://doc.crds.dev/github.com/ionos-cloud/provider-upjet-ionoscloud). +### For more details on installation and configuration see the [Quickstart guide](docs/Quickstart.md) -You can see the API reference [here](https://doc.crds.dev/github.com/ionos-cloud/provider-upjet-ionoscloud). ## Developing Run code-generation pipeline: ```console -go run cmd/generator/main.go "$PWD" +make generate ``` Run against a Kubernetes cluster: diff --git a/docs/Quickstart.md b/docs/Quickstart.md new file mode 100644 index 0000000..71b06e1 --- /dev/null +++ b/docs/Quickstart.md @@ -0,0 +1,196 @@ +# Quickstart + +This guide walks through the process to install Upbound Universal Crossplane and the Ionoscloud provider. + +## Install the Up command-line +Download and install the Upbound `up` command-line. + +```shell +curl -sL "https://cli.upbound.io" | sh +sudo mv up /usr/local/bin/ +``` + +Verify the version of `up` with `up --version` + +```shell +$ up version --client +Client: + Version: v0.33.0 +``` + +More information about the Up command-line is available in the [Upbound Up +documentation](https://docs.upbound.io/cli/). + +## Install Upbound Universal Crossplane +Install Upbound Universal Crossplane (UXP) with the Up command-line `up uxp +install` command. + +```shell +$ up uxp install +UXP 1.17.1-up.1 installed +``` + +Verify all UXP pods are `Running` with `kubectl get pods -n upbound-system` + +```shell +kubectl get pods -n upbound-system +NAME READY STATUS RESTARTS AGE +crossplane-77ff754998-4l8xb 1/1 Running 0 21s +crossplane-rbac-manager-79b8bdd6d8-ml6ft 1/1 Running 0 21s +``` + +Find more information in the [Upbound UXP +documentation](https://docs.upbound.io/uxp/). + + +## Install the Ionoscloud provider + +Install the Ionoscloud provider into the Kubernetes cluster with a Kubernetes +configuration file. + +```yaml +cat < +Annotations: + +Type: Opaque + +Data +==== +credentials: 1274 bytes +``` +_Note:_ the size may be larger or smaller depending on which credentials you supplied + +## Create a ProviderConfig +Create a `ProviderConfig` Kubernetes configuration file to attach the Ionoscloud +credentials to the provider. + +```yaml +cat <