diff --git a/README.md b/README.md index d024089..6c17e4b 100644 --- a/README.md +++ b/README.md @@ -4,20 +4,17 @@ The purpose of oc-deploy, is to deploy all the OC components over a Kubernetes c An OpenCloud deployment is composed of the following layers: -OpenCloud components | <-- TODO --------------------------- -KubernetesCluster | <-- TODO --------------------------- -IaaS (VMs, LAN) | <-- pre-requisite --------------------------- -HW (network and servers) | <-- pre-requisite --------------------------- + +| Layer | Tool | +| ------------------------ | --------------------- | +| OpenCloud components | oc-deploy binary | +| KubernetesCluster | TODO or pre-requisite | +| IaaS (VMs, LAN) | pre-requisite | +| HW (network and servers) | <-- pre-requisite | It thus contains a first optional installation layer which deploys the Kubernetes nodes (control plane(s) and workers) above an existing infrastructure (Iaas). -Then the second installation layer uses Helm charts to deploy and configure all the OC components. - This documentation will be updated with the needed command and/or requirements to properly execute the installation. # Deploy cluster diff --git a/src/README.md b/src/README.md new file mode 100644 index 0000000..68ab878 --- /dev/null +++ b/src/README.md @@ -0,0 +1,80 @@ +# Purpose + +**oc-deploy** is a tool to deploy (with **helm**) all component of **OpenCloud**. + +# Usage + +| Command | Description | +| ----------------------------------------------------------------------------- | --------------------------- | +| ```oc-deploy``` | Display help | +| ```oc-deploy version``` | Display the version of tool | +| ```oc-deploy install [-c\|--context ] [-v\|--version ]``` | Deploy an OpenCloud | +| ```oc-deploy uninstall [-c\|--context ]``` | Undeploy an OpenCloud | + +| Arguments | Description | Default | +| ---------------- | --------------------------- | ------------ | +| ```context``` | Context Kubernetes | _opencloud_ | +| ```OcVersion``` | Specific version or latest | _latest_ | + +# Principe + +# Pre-requis + +**oc-deploy** need to access to an Kubernetes Cluster, c'est-à-dire : kubeconfig. + +**oc-deploy** need to access to Internet : + +* to download the _oc.json_ file (contient _oc.yml_) : + * Url : https://cloud.o-forge.io/core/oc-deploy/releases +* to download _kubectl_ and _helm_ tools if + * Url : Urls are specified into _oc.yml_ + +# Development + +To init: + +``` + make get-deps +``` + +## To build + +``` + make build +``` + +## To run + +``` + make run_install [BIN_OPTS=""] + make run_uninstall [BIN_OPTS=""] + make run_generate [BIN_OPTS=""] +``` + +or + +``` + make exec_install [BIN_OPTS=""] + make exec_uninstall [BIN_OPTS=""] + make exec_generate [BIN_OPTS=""] +``` + +# To Test + +All packages: + +``` + make test +``` + +or to test an specific package: + +``` + make test_ +``` + +Test generate _.coverage.html_ file to view the coverage of test. + +## To Publish + +Cf : ../publish \ No newline at end of file