Git Product home page Git Product logo

Comments (2)

brandond avatar brandond commented on August 26, 2024

I need this for testing IPv6-only clusters, as I don't have external ipv6 connectivity in my environment :/

from k3s.

aganesh-suse avatar aganesh-suse commented on August 26, 2024

Validated on master branch with commit 06b6444

Environment Details

Infrastructure

  • Cloud
  • Hosted

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

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"

$ uname -m
x86_64

Cluster Configuration:

HA: 3 server/ 1 agent

Config.yaml:

token: xxxx
cluster-init: true
system-default-registry: "[fd7c:53a5:aef5::242:ac11:7]"
write-kubeconfig-mode: "0644"
node-external-ip: 1.1.1.1
node-label:
- k3s-upgrade=server

Testing Steps

  1. Copy config.yaml
$ sudo mkdir -p /etc/rancher/k3s && sudo cp config.yaml /etc/rancher/k3s
  1. Install k3s
curl -sfL https://get.k3s.io | sudo INSTALL_K3S_COMMIT='06b6444904294c415b314c78c41cf424e7e749d6' sh -s - server
  1. Check the image is with double quotes for ipv6 in all yaml files and that there are no parse manifest errors:
$ sudo journalctl -xeu k3s | grep coredns | grep ParseManifestFailed
$ sudo grep image: /var/lib/rancher/k3s/server/manifests/coredns.yaml
$ sudo grep -rni image: /var/lib/rancher/k3s/server/manifests

Replication Results:

  • k3s version used for replication:
$ k3s -v
k3s version v1.29.3+k3s1 (8aecc26b)
go version go1.21.8
 $ sudo journalctl -xeu k3s | grep coredns | grep ParseManifestFailed 
Apr 16 19:34:41 ip-172-31-21-32 k3s[66038]: I0416 19:34:41.361395   66038 event.go:376] "Event occurred" object="kube-system/coredns" fieldPath="" kind="Addon" apiVersion="k3s.cattle.io/v1" type="Warning" reason="ParseManifestFailed" message="Parse manifest at \"/var/lib/rancher/k3s/server/manifests/coredns.yaml\" failed: yaml: line 44: did not find expected key"
 $ sudo grep image: /var/lib/rancher/k3s/server/manifests/coredns.yaml 
        image: [fd7c:53a5:aef5::242:ac11:7]/rancher/mirrored-coredns-coredns:1.10.1
 $ sudo grep -rni image: /var/lib/rancher/k3s/server/manifests
/var/lib/rancher/k3s/server/manifests/metrics-server/metrics-server-deployment.yaml:47:        image: [fd7c:53a5:aef5::242:ac11:7]/rancher/mirrored-metrics-server:v0.7.0
/var/lib/rancher/k3s/server/manifests/local-storage.yaml:70:        image: [fd7c:53a5:aef5::242:ac11:7]/rancher/local-path-provisioner:v0.0.26
/var/lib/rancher/k3s/server/manifests/local-storage.yaml:158:        image: [fd7c:53a5:aef5::242:ac11:7]/rancher/mirrored-library-busybox:1.36.1
/var/lib/rancher/k3s/server/manifests/traefik.yaml:28:    image:
/var/lib/rancher/k3s/server/manifests/coredns.yaml:123:        image: [fd7c:53a5:aef5::242:ac11:7]/rancher/mirrored-coredns-coredns:1.10.1

Validation Results:

  • k3s version used for validation:
$ k3s -v
k3s version v1.29.3+k3s-06b64449 (06b64449)
go version go1.21.8
$ sudo journalctl -xeu k3s | grep coredns | grep ParseManifestFailed
 $ sudo grep image: /var/lib/rancher/k3s/server/manifests/coredns.yaml
        image: "[fd7c:53a5:aef5::242:ac11:7]/rancher/mirrored-coredns-coredns:1.10.1"
 $ sudo grep -rni image: /var/lib/rancher/k3s/server/manifests
/var/lib/rancher/k3s/server/manifests/metrics-server/metrics-server-deployment.yaml:47:        image: "[fd7c:53a5:aef5::242:ac11:7]/rancher/mirrored-metrics-server:v0.7.0"
/var/lib/rancher/k3s/server/manifests/local-storage.yaml:70:        image: "[fd7c:53a5:aef5::242:ac11:7]/rancher/local-path-provisioner:v0.0.26"
/var/lib/rancher/k3s/server/manifests/local-storage.yaml:159:        image: "[fd7c:53a5:aef5::242:ac11:7]/rancher/mirrored-library-busybox:1.36.1"
/var/lib/rancher/k3s/server/manifests/traefik.yaml:29:    image:
/var/lib/rancher/k3s/server/manifests/coredns.yaml:123:        image: "[fd7c:53a5:aef5::242:ac11:7]/rancher/mirrored-coredns-coredns:1.10.1"

from k3s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.