-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tamal Saha <[email protected]>
- Loading branch information
Showing
5 changed files
with
79 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,72 @@ | ||
# offline-license-server | ||
|
||
AppsCode License server. We call it `offline` license server because once you have received the license file, no further connection is required with the license server. So, these licenses can be used within an air-gapped Kubernetes cluster. | ||
|
||
## API Reference | ||
|
||
### Cluster UID | ||
|
||
We use the `uid` of the `kube-system` namespace as the Kubernetes cluster UID. Please run the command below to get the cluster uid for your cluster: | ||
|
||
```console | ||
kubectl get ns kube-system -o=jsonpath='{.metadata.uid}' | ||
``` | ||
|
||
### License Issuer CA | ||
|
||
The license issuer ca can be found here: https://licenses.appscode.com/certificates/ca.crt | ||
|
||
### List of products | ||
|
||
- kubedb-community | ||
- kubedb-enterprise | ||
- stash-community | ||
- stash-enterprise | ||
|
||
### Email Address Requirements | ||
|
||
You must provide a valid non-disposable email to acquire license. For Enterprise products, you must provide a valid work email to acquire license. | ||
|
||
### Register Email | ||
|
||
Make the api call below with a valid email address. We are going to email you a token for the License server. | ||
|
||
```console | ||
curl -d "email=***" -X POST https://license-issuer.appscode.com/register | ||
``` | ||
|
||
### Issue License | ||
|
||
You can use the `{email, token}` to issue license using `curl` from command line. In the example below replace `***` with an actual token you have received in the email. | ||
|
||
```console | ||
# pass request body as application/x-www-form-urlencoded | ||
|
||
curl -X POST \ | ||
-d "name=***&email=***&product=kubedb-community&cluster=***&tos=true&token=***" \ | ||
https://license-issuer.appscode.com/issue-license | ||
|
||
# pass request body as application/json | ||
|
||
curl -X POST -H "Content-Type: application/json" \ | ||
-d '{"name":"***","email":"***","product":"kubedb-community","cluster":"***","tos":"true","token":"***"}' \ | ||
https://license-issuer.appscode.com/issue-license | ||
|
||
# pretty printed request json body | ||
{ | ||
"name": "***", | ||
"email": "***", | ||
"product": "kubedb-community", | ||
"cluster": "***", | ||
"tos": "true", | ||
"token": "***" | ||
} | ||
``` | ||
|
||
## Installation | ||
|
||
These instructions are useful if you are trying to deploy your own license server or update an existing license server. | ||
|
||
- Download pre-built binary into a server | ||
|
||
```console | ||
|
@@ -31,9 +96,3 @@ sudo systemctl enable offline-license-server.service | |
sudo systemctl start offline-license-server | ||
sudo journalctl -f -u offline-license-server | ||
``` | ||
|
||
## Verify Email | ||
|
||
``` | ||
curl -d "[email protected]" -X POST http://localhost:4000/register | ||
``` |
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
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
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
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