You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Separate skyline secret creation and Update docs (#1266)
* separate skyline secret creation and update docs
* docs: update skyline docs for cleaner info and refactor code
* docs: update skyline doc to include enable federation section and add skylinesecrets to gitignore
Skyline secret can be generated using the `create-skyline-secrets.sh` script located in `/opt/genestack/bin`. This script integrates with the `create-secrets.sh` workflow and handles all secret generation.
8
+
9
+
```shell
10
+
# Generate Skyline secrets with default region (RegionOne)
11
+
/opt/genestack/bin/create-skyline-secrets.sh
12
+
```
13
+
14
+
The script will:
15
+
16
+
- Generate secure random passwords for the Skyline service
17
+
- Create `/etc/genestack/skylinesecrets.yaml` with the Skyline-specific secret
18
+
- Append the secret to `/etc/genestack/kubesecrets.yaml` for integration with the main workflow
19
+
- Perform safety checks to prevent duplicate secret generation
20
+
- Ensure the `kubesecrets.yaml` file exists before proceeding
21
+
22
+
!!! warning "Prerequisites"
23
+
24
+
The `create-skyline-secrets.sh` script requires that `/etc/genestack/kubesecrets.yaml` already exists. Run the `create-secrets.sh` script first if you haven't already.
25
+
26
+
27
+
### Enable Federation (use Keystone public endpoint)
28
+
29
+
If you plan to enable federation in Skyline, ensure the Keystone endpoint used for secrets is the public endpoint (not the internal cluster service).
38
30
39
31
!!! note
40
32
41
-
All the configuration is in this one secret, so be sure to set your entries accordingly.
33
+
Edit `/opt/genestack/bin/create-skyline-secrets.sh` and set the `keystone-endpoint` value to your public Keystone URL (for example, `https://keystone.example.com/v3`). Then run the script:
34
+
35
+
``` shell
36
+
/opt/genestack/bin/create-skyline-secrets.sh
37
+
```
38
+
39
+
40
+
### Manual Secret Generation (Alternative)
41
+
42
+
Manual secret generation is only required if you haven't run the `create-skyline-secrets.sh` script located in `/opt/genestack/bin`.
43
+
44
+
??? example "Manual secret generation"
45
+
46
+
``` shell
47
+
kubectl --namespace openstack \
48
+
create secret generic skyline-apiserver-secrets \
49
+
--type Opaque \
50
+
--from-literal=service-username="skyline" \
51
+
--from-literal=service-password="$(< /dev/urandom tr -dc _A-Za-z0-9 | head -c${1:-32};echo;)" \
0 commit comments