Skip to content

Commit 4f27435

Browse files
claudioloradamjensenbot
authored andcommitted
docs: liqoctl commands reference
1 parent 78ff6d3 commit 4f27435

26 files changed

+5223
-3
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
with:
9696
config: '.markdownlint.yml'
9797
args: '**/*.md'
98-
ignore: .github/ISSUE_TEMPLATE/*.md
98+
ignore: ".github/ISSUE_TEMPLATE/*.md docs/usage/liqoctl/*.md"
9999

100100
doclint:
101101
name: Lint documentation files
@@ -123,7 +123,7 @@ jobs:
123123
working-directory: ./docs
124124
run: |
125125
make linkcheck
126-
126+
127127
helmlint:
128128
name: Lint helm chart
129129
runs-on: ubuntu-latest

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ autoserve: install
3131
@$(SPHINXAUTOBUILD) "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXAUTOOPTS) --port 8081 $(O)
3232

3333
lint:
34-
markdownlint lint -c ../.markdownlint.yml **/*.md
34+
markdownlint lint -c ../.markdownlint.yml -i usage/liqoctl **/*.md

docs/_toc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ subtrees:
3535
- file: usage/stateful-applications.md
3636
- file: usage/prometheus-metrics.md
3737
- file: usage/service-continuity.md
38+
- file: usage/liqoctl-commands.md
39+
entries:
40+
- glob: usage/liqoctl/*
3841

3942
- caption: Advanced usage
4043
entries:

docs/usage/liqoctl-commands.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# liqoctl commands
2+
3+
In the previous sections we have seen how to use the `liqoctl` CLI to install and configuring peering connection with Liqo.
4+
This section contains all the available `liqoctl` commands.
5+
6+
```{admonition} Note
7+
Note that you can get the same info when working with any of the `liqoctl` commands, by providing the `--help` flag to it.
8+
```

docs/usage/liqoctl/liqoctl.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# liqoctl
2+
3+
A CLI tool to install and manage Liqo
4+
5+
## Description
6+
7+
### Synopsis
8+
9+
liqoctl is a CLI tool to install and manage Liqo.
10+
11+
Liqo is a platform to enable dynamic and decentralized resource sharing across
12+
Kubernetes clusters, either on-prem or managed. Liqo allows to run pods on a
13+
remote cluster seamlessly and without any modification of Kubernetes and the
14+
applications. With Liqo it is possible to extend the control and data plane of a
15+
Kubernetes cluster across the cluster's boundaries, making multi-cluster native
16+
and transparent: collapse an entire remote cluster to a local virtual node,
17+
enabling workloads offloading, resource management and cross-cluster communication
18+
compliant with the standard Kubernetes approach.
19+
20+
21+
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# liqoctl activate
2+
3+
Activate a liqo resource
4+
5+
## Description
6+
7+
### Synopsis
8+
9+
Activate a liqo resource
10+
11+
12+
## liqoctl activate tenant
13+
14+
Activate a tenant cluster
15+
16+
### Synopsis
17+
18+
Activate a tenant cluster.
19+
20+
This command allows to activate a tenant cluster, allowing it to receive new resources.
21+
Resources provided by existing ResourceSlices are provided again.
22+
23+
24+
25+
```
26+
liqoctl activate tenant [flags]
27+
```
28+
29+
### Examples
30+
31+
32+
```bash
33+
$ liqoctl activate tenant my-tenant-name
34+
```
35+
36+
37+
38+
39+
40+
### Options
41+
`--cluster` _string_:
42+
43+
>The name of the kubeconfig cluster to use
44+
45+
`--context` _string_:
46+
47+
>The name of the kubeconfig context to use
48+
49+
`--kubeconfig` _string_:
50+
51+
>Path to the kubeconfig file to use for CLI requests
52+
53+
`--timeout` _duration_:
54+
55+
>Timeout for activate completion **(default 2m0s)**
56+
57+
`--user` _string_:
58+
59+
>The name of the kubeconfig user to use
60+
61+
`-v`, `--verbose`
62+
63+
>Enable verbose logs (default false)
64+
65+
66+
### Global options
67+
68+
`--global-annotations` _stringToString_:
69+
70+
>Global annotations to be added to all created resources (key=value)
71+
72+
`--global-labels` _stringToString_:
73+
74+
>Global labels to be added to all created resources (key=value)
75+
76+
`--skip-confirm`
77+
78+
>Skip the confirmation prompt (suggested for automation)
79+
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# liqoctl authenticate
2+
3+
Authenticate with a provider cluster
4+
5+
## Description
6+
7+
### Synopsis
8+
9+
Authenticate with a provider cluster.
10+
11+
This command allows a consumer cluster to communicate with a remote provider cluster
12+
to obtain slices of resources from. At the end of the process, the consumer cluster will
13+
be able to replicate ResourceSlices resources to the provider cluster, and to receive
14+
an associated Identity to consume the provided resources.
15+
16+
17+
18+
```
19+
liqoctl authenticate [flags]
20+
```
21+
22+
### Examples
23+
24+
25+
```bash
26+
$ liqoctl authenticate --remote-kubeconfig <provider>
27+
```
28+
29+
30+
31+
32+
33+
### Options
34+
`--cluster` _string_:
35+
36+
>The name of the kubeconfig cluster to use
37+
38+
`--context` _string_:
39+
40+
>The name of the kubeconfig context to use
41+
42+
`--in-band`
43+
44+
>Use in-band authentication. Use it only if required and if you know what you are doing
45+
46+
`--kubeconfig` _string_:
47+
48+
>Path to the kubeconfig file to use for CLI requests
49+
50+
`-n`, `--namespace` _string_:
51+
52+
>The namespace where Liqo is installed in **(default "liqo")**
53+
54+
`--proxy-url` _string_:
55+
56+
>The URL of the proxy to use for the communication with the remote cluster
57+
58+
`--remote-cluster` _string_:
59+
60+
>The name of the kubeconfig cluster to use (in the remote cluster)
61+
62+
`--remote-context` _string_:
63+
64+
>The name of the kubeconfig context to use (in the remote cluster)
65+
66+
`--remote-kubeconfig` _string_:
67+
68+
>Path to the kubeconfig file to use for CLI requests (in the remote cluster)
69+
70+
`--remote-namespace` _string_:
71+
72+
>The namespace where Liqo is installed in (in the remote cluster) **(default "liqo")**
73+
74+
`--remote-user` _string_:
75+
76+
>The name of the kubeconfig user to use (in the remote cluster)
77+
78+
`--timeout` _duration_:
79+
80+
>Timeout for completion **(default 2m0s)**
81+
82+
`--user` _string_:
83+
84+
>The name of the kubeconfig user to use
85+
86+
`-v`, `--verbose`
87+
88+
>Enable verbose logs (default false)
89+
90+
91+
### Global options
92+
93+
`--global-annotations` _stringToString_:
94+
95+
>Global annotations to be added to all created resources (key=value)
96+
97+
`--global-labels` _stringToString_:
98+
99+
>Global labels to be added to all created resources (key=value)
100+
101+
`--skip-confirm`
102+
103+
>Skip the confirmation prompt (suggested for automation)
104+

0 commit comments

Comments
 (0)