Git Product home page Git Product logo

Comments (4)

justmeandopensource avatar justmeandopensource commented on May 14, 2024

@quadebroadwell
The original bootstrap script installs whatever the latest version of Kubernetes is. And it was working fine until v1.15.0 was released. I couldn't get 1.15.0 working in LXC environment. So I locked the installation to 1.14.3. I don't remember seeing those errors.
I am going to spin up the cluster now and see if I get the same behaviour.

Thanks for pointing this out.

from kubernetes.

justmeandopensource avatar justmeandopensource commented on May 14, 2024

@quadebroadwell
I just tried it on my environment and it worked perfectly fine. No Issues.

~  🞂🞂 lxc list            
+----------+---------+------------------------+------+------------+-----------+
|   NAME   |  STATE  |          IPV4          | IPV6 |    TYPE    | SNAPSHOTS |
+----------+---------+------------------------+------+------------+-----------+
| kmaster  | RUNNING | 172.17.0.1 (docker0)   |      | PERSISTENT |           |
|          |         | 10.92.250.141 (eth0)   |      |            |           |
|          |         | 10.244.0.1 (cni0)      |      |            |           |
|          |         | 10.244.0.0 (flannel.1) |      |            |           |
+----------+---------+------------------------+------+------------+-----------+
| kworker1 | RUNNING | 172.17.0.1 (docker0)   |      | PERSISTENT |           |
|          |         | 10.92.250.207 (eth0)   |      |            |           |
|          |         | 10.244.1.0 (flannel.1) |      |            |           |
+----------+---------+------------------------+------+------------+-----------+
| kworker2 | RUNNING | 172.17.0.1 (docker0)   |      | PERSISTENT |           |
|          |         | 10.92.250.73 (eth0)    |      |            |           |
|          |         | 10.244.2.0 (flannel.1) |      |            |           |
+----------+---------+------------------------+------+------------+-----------+

~  🞂🞂 kubectl -n kube-system get pods
NAME                              READY   STATUS    RESTARTS   AGE
coredns-fb8b8dccf-llvpb           1/1     Running   0          18m
coredns-fb8b8dccf-n9cn6           1/1     Running   0          18m
etcd-kmaster                      1/1     Running   0          17m
kube-apiserver-kmaster            1/1     Running   0          18m
kube-controller-manager-kmaster   1/1     Running   0          18m
kube-flannel-ds-amd64-c7vtd       1/1     Running   1          17m
kube-flannel-ds-amd64-v4wwf       1/1     Running   0          16m
kube-flannel-ds-amd64-zzqwn       1/1     Running   0          18m
kube-proxy-8v8ld                  1/1     Running   0          17m
kube-proxy-clswp                  1/1     Running   0          18m
kube-proxy-hzmhx                  1/1     Running   0          16m
kube-scheduler-kmaster            1/1     Running   0          17m

And as mentioned in the video, I have created a separate lxc profile named "k8s" which is shown below.

~  🞂🞂 lxc profile show k8s
config:
  limits.cpu: "2"
  limits.memory: 2GB
  limits.memory.swap: "false"
  linux.kernel_modules: ip_tables,ip6_tables,netlink_diag,nf_nat,overlay
  raw.lxc: "lxc.apparmor.profile=unconfined\nlxc.cap.drop= \nlxc.cgroup.devices.allow=a\nlxc.mount.auto=proc:rw
    sys:rw"
  security.nesting: "true"
  security.privileged: "true"
description: Default LXD profile
devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: lxdbr0
    type: nic
  root:
    path: /
    pool: default
    type: disk
name: k8s
used_by:
- /1.0/containers/kmaster
- /1.0/containers/kworker1
- /1.0/containers/kworker2

from kubernetes.

quadebroadwell avatar quadebroadwell commented on May 14, 2024

Thanks for the response and again for your great videos, I found the issue, it seems the mtu of my bridged lxc device was set higher than the host ethernets mtu, this caused all my issues, just an fyi if anyone else runs into this, use

sudo ip link set mtu 1400 dev lxdbr0

To set the mtu of the mtu of your bridged device to a value lower than the host devices mtu.

from kubernetes.

justmeandopensource avatar justmeandopensource commented on May 14, 2024

@quadebroadwell
Thanks for sharing the resolution.

from kubernetes.

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.