K8s Missing flannel resource

Hi.

I deploy k8s with command juju deploy canonical-kubernetes

Output is paste here.

The question is “Missing flannel resource.”,I try to use command as fellow :
wget https://github.com/flannel-io/flannel/releases/download/v0.14.0/flannel-v0.14.0-linux-amd64.tar.gz
juju attach flannel flannel=./flannel-v0.14.0-linux-amd64.tar.gz

output is:
ERROR failed to upload resource "flannel": Put "https://10.0.0.155:17070/model/9fc2675f-3030-4102-83aa-6c76fd182926/applications/flannel/resources/flannel": write tcp 10.0.0.3:56746->10.0.0.155:17070: write: connection reset by peer

Thank u

juju debug-log --replay --include=flannel

The debug log output is here :

unit-flannel-0: 11:50:35 INFO juju.worker.uniter.operation ran “update-status” hook (via explicit, bespoke hook script)
unit-flannel-4: 11:50:38 INFO unit.flannel/4.juju-log Reactive main running for hook update-status
unit-flannel-4: 11:50:38 INFO unit.flannel/4.juju-log Invoking reactive handler: reactive/flannel.py:28:install_flannel_binaries
unit-flannel-4: 11:50:38 WARNING unit.flannel/4.update-status ERROR could not download resource: HTTP request failed: Get https://10.0.0.155:17070/model/9fc2675f-3030-4102-83aa-6c76fd182926/units/unit-flannel-4/resources/flannel-amd64: resource “flannel-amd64” not found
unit-flannel-4: 11:50:38 INFO unit.flannel/4.juju-log Missing flannel resource.
unit-flannel-4: 11:50:38 INFO unit.flannel/4.juju-log Invoking reactive handler: hooks/relations/kubernetes-cni/requires.py:10:changed:cni
unit-flannel-4: 11:50:38 INFO unit.flannel/4.juju-log status-set: blocked: Missing flannel resource.
unit-flannel-4: 11:50:39 INFO juju.worker.uniter.operation ran “update-status” hook (via explicit, bespoke hook script)

It is solved.

I reedit the bundle with juju deploy cs:~containers/flannel-558 instead of local path。

1 Like