Add initial example with Kubernetes#21
Merged
stano45 merged 5 commits intostano45:mainfrom Aug 16, 2024
Merged
Conversation
a1d9f48 to
d9fe110
Compare
This commit adds an example for container migration in Kubernetes
cluster. This example consists of several components:
- `http-server`: an HTTP server that responds with the hostname
and IP address of the container it is currently running into.
- `local-registry`: a set of scripts for setting up a local container
registry that can be used to distribute container checkpoints
across cluster nodes.
- `build-image`: a script building an OCI container image from
checkpoint tar archive
- `kubectl-plugin`: a plugin introducing a `checkpoint` command
to kubectl
- `manifests`: yaml files for deploying the HTTP server example and
kube-router
- `cni`: a cni configuration for kube-router
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
d9fe110 to
5265f61
Compare
stano45
approved these changes
Aug 15, 2024
examples/container_migration_in_kubernetes/local-registry/generate-password.sh
Show resolved
Hide resolved
examples/container_migration_in_kubernetes/local-registry/generate-certificates.sh
Show resolved
Hide resolved
examples/container_migration_in_kubernetes/local-registry/trust-certificates.sh
Outdated
Show resolved
Hide resolved
examples/container_migration_in_kubernetes/local-registry/generate-password.sh
Show resolved
Hide resolved
The shell scripts for generating certificates, password and running a local registry assume that "auth/", "certs/", and "data/" directories exist. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
Installing root CA certificate requires different commands on different Linux distributions. This patch updates the script to support Ubuntu in addition to Fedora/RHEL. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
It is highly recommended to always use fully-qualified image references as short-name aliases can create ambiguity. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds an example for container migration in Kubernetes cluster. This example consists of several components:
http-server: an HTTP server that responds with the hostname and IP address of the container it is currently running into.local-registry: a set of scripts for setting up a local container registry that can be used to distribute container checkpoints across cluster nodes.build-image: a script building an OCI container image from checkpoint tar archivekubectl-plugin: a plugin introducing acheckpointcommand to kubectlmanifests: yaml files for deploying the HTTP server example and kube-routercni: a cni configuration for kube-router