Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release-1.25] - Add warning that containerd's config.toml is auto generated #7058

Closed
dereknola opened this issue Mar 10, 2023 · 1 comment
Closed
Assignees
Milestone

Comments

@dereknola
Copy link
Member

Backport fix for Add warning that containerd's config.toml is auto generated

@mdrahman-suse
Copy link

mdrahman-suse commented Mar 14, 2023

Validated on branch release-1.25 with commit 37a2637

Environment Details

Infrastructure

  • Cloud
  • Hosted

Node(s) CPU architecture, OS, and Version:

Linux 5.15.0-1026-aws #30-Ubuntu SMP Wed Nov 23 14:15:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
PRETTY_NAME="Ubuntu 22.04.1 LTS"

Cluster Configuration:

1 server

Config.yaml:

write-kubeconfig-mode: 644
cluster-init: true

Testing Steps

  1. Copy config.yaml
$ sudo mkdir -p /etc/rancher/k3s && sudo cp config.yaml /etc/rancher/k3s
  1. Install k3s:
  • For replication: curl -sfL https://get.k3s.io | sudo INSTALL_K3S_VERSION=v1.25.7+k3s1 sh -
  • For validation: curl -sfL https://get.k3s.io | sudo INSTALL_K3S_COMMIT=37a26379d5780d145203d59f5ebebf39e39632fa sh -
  1. Check for warning comment on top of the file using var/lib/rancher/k3s/agent/etc/containerd/config.toml

Replication Results:

  • k3s version used for replication:
v1.25.7+k3s1
  • No warning is observed
$ sudo cat /var/lib/rancher/k3s/agent/etc/containerd/config.toml

version = 2

[plugins."io.containerd.internal.v1.opt"]
  path = "/var/lib/rancher/k3s/agent/containerd"
...

Validation Results:

  • k3s version used for validation:
k3s version v1.25.7+k3s-37a26379 (37a26379)
go version go1.19.6
  • Observed the warning
$ sudo cat /var/lib/rancher/k3s/agent/etc/containerd/config.toml

# File generated by k3s. DO NOT EDIT. Use config.toml.tmpl instead.
version = 2

[plugins."io.containerd.internal.v1.opt"]
  path = "/var/lib/rancher/k3s/agent/containerd"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants