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
Copy file name to clipboardExpand all lines: doc/src/operating-kernel.md
+20-17Lines changed: 20 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,46 +26,49 @@ Pharia Kernel wants to enable teams outside of the Pharia Kernel Operators to de
26
26
27
27
Each namespace configuration typically would reside in a Git repository owned by the Team which owns the namespace. Changes in this file will be automatically detected by the Kernel.
28
28
29
-
A namespace is also associated with a registry to load the skills from. These skill registries can either be directories in filesystem (mostly used for a development setup) or point to an OCI registry (recommended for production).
29
+
A [namespace](skill-deployment.md#configuring-namespace) is also associated with a registry to load the skills from. These skill registries can either be directories in filesystem (mostly used for a development setup) or point to an OCI registry (recommended for production).
30
30
31
31
### Namespace with Local Config and Local Registry
32
32
33
33
```toml
34
-
[namespaces.local]
35
-
config_url = "file://namespace.toml"
34
+
# `my-team` is the name of this namespace
35
+
[namespaces.my-team]
36
+
# Path to the local namespace configuration file
37
+
config-url = "file://namespace.toml"
36
38
37
-
[namespaces.local.registry]
38
-
type = "file"
39
+
# Path to the local skill directory
39
40
path = "skills"
40
41
```
41
42
42
-
With the local configuration above, Pharia Kernel will serve any skill deployed at the `skills` subdirectory of its working directory under the namespace "local". This is mostly intended for local development of skills without a remote instance of Pharia Kernel. To deploy skills in production it is recommended to use a remote namespace.
43
+
With the local configuration above, Pharia Kernel will serve any skill deployed at the `skills` subdirectory of its working directory under the namespace `my-team`. This is mostly intended for local development of skills without a remote instance of Pharia Kernel. To deploy skills in production it is recommended to use a remote namespace.
43
44
44
45
### Namespace with Remote Config and Remote Registry
45
46
46
47
```toml
48
+
# `my-team` is the name of this namespace
47
49
[namespaces.my-team]
48
50
# The URL to the configuration listing the skills of this namespace
49
51
# Pharia kernel will use the contents of the `NAMESPACES__MY_TEAM__CONFIG_ACCESS_TOKEN` environment variable to access (authorize) the config
# Pharia kernel will use the contents of the `NAMESPACES__MY_TEAM__REGISTRY__USER` and `NAMESPACES__MY_TEAM__REGISTRY__PASSWORD` environment variables to access (authorize) the registry
# Pharia kernel will use the contents of the `NAMESPACES__MY_TEAM__REGISTRY_USER` and `NAMESPACES__MY_TEAM__REGISTRY_PASSWORD` environment variables to access (authorize) the registry
56
+
registry = "registry.acme.com"
57
+
58
+
# This is the common prefix added to the skill name when composing the OCI repository.
59
+
# e.g. ${base-repository}/${skill_name}
60
+
base-repository = "my-org/my-team/skills"
58
61
```
59
62
60
-
With the remote configuration above, Pharia Kernel will serve any skill deployed on the specified OCI registry under the namespace "my-team".
63
+
With the remote configuration above, Pharia Kernel will serve any skill deployed on the specified OCI registry under the namespace `my-team`.
61
64
62
65
### Authentication against OCI Registries
63
66
64
67
You can provide each namespace in Pharia Kernel with credentials to authenticate against the specified OCI registry. Set the environment variables that are expected from the operator config:
0 commit comments