runtime-copilot

module
v0.0.0-...-1300050 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2023 License: Apache-2.0

README

Github Ci ActionGithub Image ActionGithub Chart Action

runtime-copilot

The main function of the runtime copilot is to assist the operation of the container runtime component (containerd), specifically for adding or deleting non-safe registries.

Introduction

This project is a runtime copilot, auxiliary manager runtime, current function introduce the config insecure registry to runtime(such as: containerd、docker、cri-o), It mainly has the following functions:

  • Manager insecure registry in runtime.
  • Upgrade runtime version.
  • Replace runtime with another runtime.
  • Manager runtime plugins.
Manager insecure registry
Runtime Support
containerd Yes
docker No
cri-o No

Usage

Helm must be installed to use the charts. Please refer to Helm's documentation to get started.

Once Helm has been set up correctly, add the repo as follows:

helm repo add runtime-copilot https://copilot-io.github.io/runtime-copilot

If you is first time to use this repo, you need to run command as follows:

helm repo update
helm search repo runtime-copilot

To install the runtime-copilot chart:

helm install runtime-copilot runtime-copilot/runtime-copilot --namespace runtime-copilot

To uninstall the chart:

helm delete runtime-copilot --namespace runtime-copilot

Examples

We add 10.6..112.191 this insecret registry to containerd, we can define yaml content follow file.

apiVersion: registry.runtime.x-copilot.io/v1alpha1
kind: RegistryConfigs
metadata:
  name: registryconfigs-sample
spec:
  selector:
    matchLabels:
      app: registryconfigs-sample
  template:
    spec:
      hostConfigs:
        - server: "https://10.6.112.191"
          capabilities:
            - pull
            - push
            - resolve
          skip_verify: true

After executing kubectl apply, the following hosts.toml file will be generated on each node, the content is as follows:

server = "https://10.6.112.191"

[host]
  [host."https://10.6.112.191"]
    capabilities = ["pull", "push", "resolve"]
    skip_verify = true
    override_path = false

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the registry.runtime v1alpha1 API group +kubebuilder:object:generate=true +groupName=registry.runtime.x-copilot.io
Package v1alpha1 contains API Schema definitions for the registry.runtime v1alpha1 API group +kubebuilder:object:generate=true +groupName=registry.runtime.x-copilot.io
cmd
hack
tools/preferredimports
verify that all the imports have our preferred alias(es).
verify that all the imports have our preferred alias(es).
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL