juju expose fails to create an ingress for sidecar charm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Testing out the `snappass-test` sidecar/pebble charm demo, I note that the default `juju expose` behaviour that would deploy an ingress in the case of a normal k8s charm does not work.
For example, provisioning the `mariadb-k8s` charm on microk8s and exposing it works as expected (creates an Ingress)
Note that this is using the juju branch found here: https:/
Steps to reproduce:
```
# Configure MicroK8s
microk8s enable dns storage ingress
juju bootstrap microk8s micro
#
# Demonstrate expected behaviour with existing Charm
#
# Deploy MariaDB-k8s
juju add-model db
juju deploy cs:~charmed-
# Configure
juju config mariadb-k8s kubernetes-
juju config mariadb-k8s juju-external-
juju expose mariadb-k8s
# Confirm ingress presence
kubectl -n db get ingress
#
# Demonstrate unexpected behaviour with snappass
#
juju add-model snappass
juju deploy snappass-test --resource snappass-
# Configure
juju config snappass-test kubernetes-
juju config snappass-test juju-external-
juju expose snappass-test
# Ingress not created
kubectl -n snappass get ingress
```
As far as I can tell, there is no magic in the mariadb-k8s charm that is manually creating an ingress, and the behaviour is described as more generic in the Juju docs (https:/
Possibly related to: https:/
tags: | added: sidecar-charm |
Changed in juju: | |
milestone: | 2.9.1 → 2.9.2 |
Changed in juju: | |
milestone: | 2.9.2 → 2.9.3 |
Changed in juju: | |
milestone: | 2.9.3 → 2.9-next |
Changed in juju: | |
importance: | High → Wishlist |
milestone: | 2.9-next → 3.1-beta1 |
Changed in juju: | |
milestone: | 3.1-beta1 → 3.2-beta1 |
Changed in juju: | |
milestone: | 3.2-beta1 → 3.2-rc1 |
Changed in juju: | |
milestone: | 3.2-rc1 → 3.2.0 |
Changed in juju: | |
milestone: | 3.2.0 → 3.2.1 |
Changed in juju: | |
milestone: | 3.2.1 → 3.2.2 |
Changed in juju: | |
milestone: | 3.2.2 → 3.2.3 |
Changed in juju: | |
milestone: | 3.2.3 → 3.2.4 |
Changed in juju: | |
milestone: | 3.2.4 → 3.2.5 |
tags: | added: k8s network |
Changed in juju: | |
milestone: | 3.2.5 → none |
Thanks for the report. We chose to stop working on this issue a few months ago, this is definitely a high priority for the sidecar charms, but we wanted to get the modeling correct on this one.
I've marked it for 2.9.1 so its high on out list.