I’m trying to test out Juju on Kubernetes and am struggling to debug a hook failure.
I’ve created a model and installed an “official” Charm as follows:
# juju add-model example Added 'example' model on microk8s/localhost with credential 'microk8s' for user 'admin' # juju deploy cs:~juju/redis-k8s-1 Located charm "cs:~juju/redis-k8s-1". Deploying charm "cs:~juju/redis-k8s-1".
Querying the status, I see a hook failed:
# juju status Model Controller Cloud/Region Version SLA Timestamp example microk8s-localhost microk8s/localhost 2.8.1 unsupported 13:51:49Z App Version Status Scale Charm Store Rev OS Address Notes redis-k8s error 1 redis-k8s jujucharms 1 kubernetes hook failed: "install" Unit Workload Agent Address Ports Message redis-k8s/0* error idle hook failed: "install"
I started looking at Debugging charm hooks but that seems to not cover Kubernetes:
# juju debug-log --lines 1 --no-tail application-redis-k8s: 15:42:08 ERROR juju.worker.uniter.operation hook "install" (via explicit, bespoke hook script) failed: exit status 1 # juju debug-hooks ERROR Juju command "debug-hooks" not supported on kubernetes models
microk8s.report my microk8s cluster is healthy - any debugging tips please?