-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Update device provisioning service documentation
- Loading branch information
1 parent
814c82d
commit bb69745
Showing
5 changed files
with
6 additions
and
38 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
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 |
---|---|---|
|
@@ -61,29 +61,6 @@ mockoauthserver: | |
For production, you need to set the OAuth server client credential flow, as is described in [Customize OAuth server client credential flow](/docs/deployment/device-provisioning-service/advanced). | ||
{{< /warning >}} | ||
To allow download the Device Provisioning Service docker image by k8s, the following configuration needs to extend the configuration: | ||
```yaml | ||
deviceProvisioningService: | ||
image: | ||
dockerConfigSecret: | | ||
{ | ||
"auths": { | ||
"ghcr.io": { | ||
"auth": "<DOCKER_AUTH_TOKEN>" | ||
} | ||
} | ||
} | ||
``` | ||
{{< note >}} | ||
To access ghcr.io, please reach out to us at [[email protected]](mailto:[email protected]) in order to request permission for your GitHub account to access the plgd device provisioning server images. You can refer to the [documentation](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) for instructions on how to allow access. | ||
{{< /note >}} | ||
## Configure Enrollment Groups | ||
The enrollment groups can be configured via deployment, utilizing the setup from the hub configuration to populate the values. | ||
|
@@ -155,14 +132,12 @@ To deploy the hub with the Device Provisioning Service, apply the following comm | |
|
||
```sh | ||
helm upgrade -i -n plgd --create-namespace -f withMock.yaml hub plgd/plgd-hub | ||
helm upgrade -i -n plgd --create-namespace -f withMock.yaml dps plgd/plgd-dps | ||
``` | ||
|
||
You can execute these commands multiple times to update the configuration. In such cases, you will need to restart the pods by deleting them: | ||
|
||
```sh | ||
kubectl -n plgd delete $(kubectl -n plgd get pods -o name | grep "hub-plgd") | ||
kubectl -n plgd delete $(kubectl -n plgd get pods -o name | grep "dps-plgd") | ||
``` | ||
|
||
## Final configuration with mock oauth server | ||
|
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