Skip to content

Commit deeca1e

Browse files
authored
docs: updated documentation (#64)
updated tasks documenation. Changed `devcluster` to `mini`
1 parent 7412617 commit deeca1e

7 files changed

Lines changed: 66 additions & 65 deletions

File tree

content/en/docs/installation/install/docker/_index.md

Lines changed: 50 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,20 @@ Before installing, you need to:
1818

1919
- install [ops](/docs/installation/download/).
2020

21-
- perform a minimal configuration. For more details about this,
22-
check [Configure the services](/docs/installation/configure/).
21+
Furthermore you will need a decent PC / Mac.
22+
23+
Docker will need 4 Gb Ram and almost 40Gb of free space to run the cluster
24+
locally.
2325

2426
{{< blockquote info >}}
25-
The static service works perfectly for the default namespace nuvolaris which is linking the http://localhost to the
26-
nuvolaris web bucket. With this setup adding new users will add an ingress with host set to
27-
namespace.localhost, that in theory could also work if the host file of the development machine is configured
28-
to resolve it to the 127.0.0.1 ip address.
29-
{{< /blockquote >}}
27+
We introduced a special domain called `miniops.me`: this domain will always
28+
resolve to 127.0.0.1.
29+
This way the static service for the default namespace nuvolaris will be
30+
linking the `http://miniops.me` to the nuvolaris web bucket.
31+
Adding new users will add an ingress with host set to
32+
`http://<namespace>.miniops.me`.
3033

34+
{{< /blockquote >}}
3135

3236
{{< blockquote warning >}}
3337
You cannot have ``https`` in a local installation.
@@ -36,64 +40,60 @@ If you enable it, the configuration will be ignored.
3640

3741
### Installation
3842

39-
Run the commands:
40-
41-
1. Minimal configuration
43+
The following command will perform a full local installation:
4244

4345
```bash
44-
ops config minimal
46+
ops setup mini
4547
```
4648

47-
Behind the scene, this command will write a cluster configuration file called `~/.ops/config.json` activating these
48-
services: `static`, `redis`, `postgres`, `ferretdb`, `minio`, `cron` constituting the common baseline for development
49-
tasks.
49+
Behind the scene, this command will write a cluster configuration file called
50+
`~/.ops/config.json` activating these services: `static`, `redis`, `postgres`,
51+
`ferretdb`, `minio`, `cron`, `milvus` constituting the common baseline for
52+
development tasks.
53+
54+
Wait until the command terminates. It will take minutes to complete, so be
55+
patient.
5056

51-
2. Setup the cluster
57+
The installation will ends showing these informations:
5258

5359
```bash
54-
ops setup devcluster
60+
*** Configuring Access to OpenServerless ***
61+
apihost=http://miniops.me username=devel
62+
Logging in http://miniops.me as devel
63+
Successfully logged in as devel.
64+
ok: whisk auth set. Run 'wsk property get --auth' to see the new value.
65+
ok: whisk API host set to http://miniops.me
66+
OpenServerless host and auth set successfully. You are now ready to use ops!
67+
==================| UPLOAD RESULTS |==================
68+
| FILES : 4
69+
| COMPLETED : 4
70+
| ERRORS : 0
71+
| SKIPPED : 0
72+
| EXEC. TIME : 46.70 ms
73+
======================================================
74+
Login with: ops ide login devel https://miniops.me
75+
Password is saved in: /Users/openserverless/.ops/devel.password
76+
Web URL is: http://devel.miniops.me
5577
```
5678

57-
and wait until the command terminates.
79+
### Try your devel user
5880

59-
{{< details title="Click here to see a log sample of the setup">}}
81+
At the end of the setup, you'll have a local OpenServerless installation
82+
with a `devel` user.
6083

61-
```bash
62-
ops setup devcluster
63-
Creating cluster "nuvolaris" ...
64-
✓ Ensuring node image (kindest/node:v1.25.3) 🖼
65-
✓ Preparing nodes 📦 📦
66-
✓ Writing configuration 📜
67-
✓ Starting control-plane 🕹️
68-
✓ Installing CNI 🔌
69-
✓ Installing StorageClass 💾
70-
✓ Joining worker nodes 🚜
71-
✓ Waiting ≤ 1m0s for control-plane = Ready ⏳
72-
• Ready after 1s 💚
73-
Set kubectl context to "kind-nuvolaris"
74-
You can now use your cluster with:
75-
76-
kubectl cluster-info --context kind-nuvolaris --kubeconfig /Users/bruno/.ops/tmp/kubeconfig
77-
78-
Thanks for using kind!
79-
80-
[...continue]
81-
```
84+
Open a browser to http://devel.miniops.me. You will see a page like this:
8285

83-
> 💡 **NOTE**
84-
>
85-
> The log will continue because, after kind is up and running, OpenServerless namespace and relative services are
86-
> installed inside.
86+
<img src="/welcome-mini.webp" width="700" alt="Welcome Mini" />
8787

88-
It will take some minute to complete, so be patient.
89-
90-
{{< /details >}}
88+
Take a minute to share on Linkedin your experience with the setup and to join
89+
us on [Discord](https://discord.com/invite/PkD7CcHgGP).
9190

9291
### Troubleshooting
9392

9493
Usually the setup completes without errors.
9594

96-
However, if `ops` is unable to complete the setup, you may see this message at the end:
95+
However, if `ops` is unable to complete the setup, you may see this message at
96+
the end:
9797

9898
```text
9999
ops: Failed to run task "create": exit status 1
@@ -105,10 +105,8 @@ task execution error: ops: Failed to run task "devcluster": exit status 1
105105
If this is your case, try to perform a uninstall / reinstall:
106106

107107
```bash
108-
ops setup cluster --uninstall
108+
ops setup devcluster --uninstall
109109
ops config reset
110-
ops config minimal
111-
ops setup devcluster
112110
```
113111

114112
If this will not solve, please contact the community.
@@ -117,24 +115,13 @@ If this will not solve, please contact the community.
117115

118116
[Check the tutorial](/docs/tutorial/) to learn how to use it.
119117

120-
### Uninstall
121118

122-
To uninstall you may:
123-
124-
#### Uninstall devcluster
119+
### Uninstall and remove devcluster
125120

126121
This will actually remove the ops namespace and all the services from kind.
127122
Useful to re-try an installation when something gone wrong.
128123

129-
```bash
130-
ops setup cluster --uninstall
131-
ops config reset
132-
```
133-
134-
#### Remove devcluster
135-
136-
This will actually remove the nodes from kind:
137-
138124
```bash
139125
ops setup devcluster --uninstall
126+
ops config reset
140127
```

content/en/docs/reference/tasks/admin/_index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,18 @@ You can create namespaces and choose which services to enable.
1212
Usage:
1313
admin adduser <username> <email> <password> [--all] [--redis] [--mongodb] [--minio] [--postgres] [--milvus] [--storagequota=<quota>|auto]
1414
admin deleteuser <username>
15+
admin listuser [<username>]
16+
admin compact [--ttl=<ttl>|10]
17+
admin usage [--debug]
1518
```
1619

1720
## Commands
1821
```
1922
admin adduser create a new user in OpenServerless with the username, email and password provided
2023
admin deleteuser delete a user from the OpenServerless installation via the username provided
24+
admin listuser list all the secrets of an user (default list all the users)
25+
admin compact create a one shot job which executes couchdb compact against all available dbs
26+
admin usage calculates and displays PVC disk usage statistics for bound volumes. Shows Total, Size and Available storage per PVC
2127
```
2228

2329
## Options
@@ -29,4 +35,6 @@ Usage:
2935
--postgres enable postgres
3036
--milvus enable milvus vector db
3137
--storagequota=<quota>
38+
--ttl=<seconds> modify the job ttl after finished (defaults to 10 seconds)
39+
--debug enable debug logging
3240
```

content/en/docs/reference/tasks/config/_index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ Usage:
2929
config aks [--project=<project>] [--name=<name>] [--region=<region>] [--count=<count>] [--vm=<vm>] [--disk=<disk>] [--key=<key>]
3030
config (status|export|reset)
3131
config use [<n>] [--delete] [--rename=<rename>]
32-
config minimal
32+
config minimal
33+
config slim
3334
```
3435

3536
## Commands
@@ -61,6 +62,7 @@ Usage:
6162
config export export all the variables
6263
config use use a different kubernetes cluster among those you created
6364
config minimal shortcut for ops config enabling only redis,mongodb,minio,cron,static,postgres
65+
config slim shortcut for ops config slim, but adding lightweight milvus and other sizing improvements
6466
```
6567

6668
## Options

content/en/docs/reference/tasks/setup/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ description: Manage installation
77

88
```text
99
Usage:
10+
setup mini
1011
setup devcluster [--uninstall|--status|--skip-check-ports]
1112
setup cluster [<context>] [--uninstall|--status]
1213
setup server <server> [<user>] [--uninstall|--status]
@@ -18,6 +19,7 @@ Usage:
1819
## Commands
1920

2021
```
22+
setup mini deploy mini Apache OpenServerless, slim local installation available as http://devel.miniops.me
2123
setup cluster deploy Apache OpenServerless in the Kubernetes cluster using the <context>, default the current
2224
setup devcluster deploy Apache OpenServerless in a devcluster created locally
2325
you need Docker Desktop available with at least 6G of memory assigned

content/en/docs/reference/tasks/util/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Usage:
2222
util add-secret <args>...
2323
util remove-secret <args>...
2424
util list-secrets
25+
util ingress-type
2526
```
2627

2728
## Commands
@@ -42,6 +43,7 @@ Usage:
4243
- add-secret add one or multiple secrets to user metadata
4344
- remove-secret remove one or multiple secrets to user metadata
4445
- list-secrets list secrets from user metadata
46+
- ingress-type return the ingress type
4547
```
4648

4749
## Options

content/en/welcome-mini.webp

22.2 KB
Loading

layouts/partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div class="td-footer__right col-6 col-sm-4 order-sm-3">&nbsp;</div>
2525
<div class="td-footer__center col-12 col-sm-4 py-2 order-sm-2">
2626
<a href="https://www.apache.org/">
27-
<img class=" asf-logo rounded-image" src="/images/asf.webp" width="256" height="104">
27+
<img class="asf-logo rounded-image" src="/images/asf.webp" width="256" height="104">
2828
</a>
2929
<a href="https://incubator.apache.org/projects/openserverless.html">
3030
<img class=" asf-logo rounded-image" src="/images/apache_incubator.webp" width="256"

0 commit comments

Comments
 (0)