Juju command "ssh" not supported on kubernetes models

Bug #1875422 reported by Nick Moffitt
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

Following the microk8s juju tutorial I then tried out of curiosity to run:

 `juju ssh mariadb-k8s/0`

And I got back:

 `ERROR Juju command "ssh" not supported on kubernetes models`

This seems odd, because I can achieve the same effect with:

 `microk8s.kubectl exec -ti -n test-model mariadb-k8s-0 -- /bin/bash`

And substituting other commands in lets me achieve a seemingly equivalent result from what I'd expect out of a `juju ssh`.

Could we please have `juju ssh` remapped for k8s units?

Revision history for this message
Ian Booth (wallyworld) wrote :

This is a feature that is on the todo list. It's not yet bubbled to the top of the priority list because there is an easy workaround using kubectl exec.

Changed in juju:
importance: Undecided → Medium
status: New → Triaged
tags: added: k8s
Revision history for this message
John A Meinel (jameinel) wrote :

On a related note: https://bugs.launchpad.net/juju/+bug/1876105

ssh is used in IAAS models to support 'juju debug-hooks/debug-code' but those aren't available on K8s models.
Even if we don't have general shell access, having debug-hooks would be a big help for charmers.

Revision history for this message
Ian Booth (wallyworld) wrote :

debug-hook support is on the roadmap this cycle.
"juju ssh" support may hopefully fall out as well, but we had to drop explicit committment to it

Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.