Patch All Images for Your Deployment¶
Arrikto EKF pulls images from predefined registries. This guide will walk you through patching the manifests so that they point to images that you have mirrored to your internal registry.
Overview
What You’ll Need¶
- A configured management environment.
- Your clone of the Arrikto GitOps repository.
- Mirrored images in your internal registry.
Procedure¶
Go to your GitOps repository, inside your
rok-tools
management environment:root@rok-tools:~# cd ~/ops/deploymentsEnsure that your GitOps repository is clean:
root@rok-tools:~/ops/deployments# git status ... nothing to commit, working tree cleanSpecify your internal registry that hosts the mirrored images:
root@rok-tools:~/ops/deployments# export INTERNAL_REGISTRY=<REGISTRY>Replace
<REGISTRY>
with your internal registry along with the repository prefix (if any). For example:root@rok-tools:~/ops/deployments# export INTERNAL_REGISTRY=registry.example.com/arriktoRun
rok-image-patch
and follow the on-screen instructions:root@rok-tools:~/ops/deployments# rok-image-patch --to ${INTERNAL_REGISTRY?}Strip 0 components from the original image:
Operate on deploy overlays:
Wait for the operation to complete:
Troubleshooting
The tool reports failed kustomizations.
Open
~/.rok/log/image-patch.log
and search for:[ERROR] Failed to analyze the following kustomizations: ...This means that the reported kustomizations are not buildable, for example due to a typo or because an upstream overlay has been removed. Fix them and re-run the command.
Stage the changes:
root@rok-tools:~/ops/deployments# git add .Commit your changes:
root@rok-tools:~/ops/deployments# git commit -am "Use images from internal registry"