Kubernetes Pods remain in Pending state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charmed Kubernetes Bundles |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Single server 18.04 LTS.
LXD 4.7.
Juju 2.8.1-bionic-amd64
Kubectl 1.19.2
```
lxc profile show default
config:
limits.cpu: "2"
description: Default LXD profile
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
name: default
used_by:
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
```
```
lxc list
+------
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------
| bionic-maas | RUNNING | 10.242.109.146 (eth0) | | CONTAINER | 0 |
+------
| juju-128992-0 | RUNNING | 10.242.109.209 (eth0) | | CONTAINER | 0 |
+------
| juju-ce2bda-0 | RUNNING | 10.242.109.240 (eth0) | | CONTAINER | 0 |
+------
| juju-ce2bda-1 | RUNNING | 10.242.109.210 (eth0) | | CONTAINER | 0 |
+------
| juju-ce2bda-2 | RUNNING | 10.242.109.33 (eth0) | | CONTAINER | 0 |
+------
| juju-ce2bda-3 | RUNNING | 10.242.109.148 (eth0) | | CONTAINER | 0 |
+------
| juju-ce2bda-4 | RUNNING | 10.242.109.251 (eth0) | | CONTAINER | 0 |
+------
| juju-ce2bda-5 | RUNNING | 10.242.109.11 (eth0) | | CONTAINER | 0 |
| | | 10.1.32.0 (flannel.1) | | | |
+------
| juju-ce2bda-6 | RUNNING | 10.242.109.191 (eth0) | | CONTAINER | 0 |
| | | 10.1.53.0 (flannel.1) | | | |
+------
| juju-ce2bda-7 | RUNNING | 10.242.109.247 (eth0) | | CONTAINER | 0 |
| | | 10.1.40.0 (flannel.1) | | | |
+------
| juju-ce2bda-8 | RUNNING | 10.242.109.252 (eth0) | | CONTAINER | 0 |
| | | 10.1.72.0 (flannel.1) | | | |
+------
| juju-ce2bda-9 | RUNNING | 10.242.109.162 (eth0) | | CONTAINER | 0 |
| | | 10.1.56.0 (flannel.1) | | | |
+------
```
```
juju status --color
Model Controller Cloud/Region Version SLA Timestamp
k8s sydney localhost/localhost 2.8.1 unsupported 21:35:15-05:00
App Version Status Scale Charm Store Rev OS Notes
containerd 1.3.3 active 5 containerd jujucharms 94 ubuntu
easyrsa 3.0.1 active 1 easyrsa jujucharms 333 ubuntu
etcd 3.4.5 active 3 etcd jujucharms 540 ubuntu
flannel 0.11.0 active 5 flannel jujucharms 506 ubuntu
kubeapi-
kubernetes-master 1.19.2 waiting 2 kubernetes-master jujucharms 891 ubuntu
kubernetes-worker 1.19.2 active 3 kubernetes-worker jujucharms 704 ubuntu exposed
Unit Workload Agent Machine Public address Ports Message
easyrsa/0* active idle 0 10.242.109.240 Certificate Authority connected.
etcd/0 active idle 1 10.242.109.210 2379/tcp Healthy with 3 known peers
etcd/1 active idle 2 10.242.109.33 2379/tcp Healthy with 3 known peers
etcd/2* active idle 3 10.242.109.148 2379/tcp Healthy with 3 known peers
kubeapi-
kubernetes-
containerd/2 active idle 10.242.109.11 Container runtime available
flannel/2 active idle 10.242.109.11 Flannel subnet 10.1.32.1/24
kubernetes-master/1 waiting idle 6 10.242.109.191 6443/tcp Waiting for 3 kube-system pods to start
containerd/1 active idle 10.242.109.191 Container runtime available
flannel/1 active idle 10.242.109.191 Flannel subnet 10.1.53.1/24
kubernetes-worker/0 active idle 7 10.242.109.247 80/tcp,443/tcp Kubernetes worker running.
containerd/0* active idle 10.242.109.247 Container runtime available
flannel/0* active idle 10.242.109.247 Flannel subnet 10.1.40.1/24
kubernetes-
containerd/3 active idle 10.242.109.252 Container runtime available
flannel/3 active idle 10.242.109.252 Flannel subnet 10.1.72.1/24
kubernetes-worker/2 active idle 9 10.242.109.162 80/tcp,443/tcp Kubernetes worker running.
containerd/4 active idle 10.242.109.162 Container runtime available
flannel/4 active idle 10.242.109.162 Flannel subnet 10.1.56.1/24
Machine State DNS Inst id Series AZ Message
0 started 10.242.109.240 juju-ce2bda-0 focal Running
1 started 10.242.109.210 juju-ce2bda-1 focal Running
2 started 10.242.109.33 juju-ce2bda-2 focal Running
3 started 10.242.109.148 juju-ce2bda-3 focal Running
4 started 10.242.109.251 juju-ce2bda-4 focal Running
5 started 10.242.109.11 juju-ce2bda-5 focal Running
6 started 10.242.109.191 juju-ce2bda-6 focal Running
7 started 10.242.109.247 juju-ce2bda-7 focal Running
8 started 10.242.109.252 juju-ce2bda-8 focal Running
9 started 10.242.109.162 juju-ce2bda-9 focal Running
```
```
AGE seems to reset without RESTARTS incrementing
k get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
ingress-
ingress-
ingress-
kube-system coredns-
kube-system kube-state-
kube-system metrics-
kubernetes-
kubernetes-
```
Also using this profile kernel_ modules: ip_tables, ip6_tables, netlink_ diag,nf_ nat,overlay apparmor. profile= unconfined mount.auto= proc:rw sys:rw privileged: "true" authorized_ keys: nf_conntrack/ parameters/ hashsize apparmor/ parameters/ enabled juju-ce2bda- 0 juju-ce2bda- 1 juju-ce2bda- 2 juju-ce2bda- 6 juju-ce2bda- 4 juju-ce2bda- 3 juju-ce2bda- 5 juju-ce2bda- 7 juju-ce2bda- 9 juju-ce2bda- 8
```
lxc profile show juju-k8s
config:
boot.autostart: "true"
linux.
raw.lxc: |
lxc.
lxc.
lxc.cap.drop=
security.nesting: "true"
security.
user.user-data: |
#cloud-config
ssh_
- ssh-rsa AAA******ynQHxTBncb ubuntu@sydney
description: ""
devices:
aadisable:
path: /sys/module/
source: /dev/null
type: disk
aadisable1:
path: /sys/module/
source: /dev/null
type: disk
name: juju-k8s
used_by:
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
- /1.0/instances/
```