Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The workload is on https, but traefik still thinks it's http #533

Closed
sed-i opened this issue Sep 29, 2023 · 0 comments · Fixed by #534
Closed

The workload is on https, but traefik still thinks it's http #533

sed-i opened this issue Sep 29, 2023 · 0 comments · Fixed by #534

Comments

@sed-i
Copy link
Contributor

sed-i commented Sep 29, 2023

Bug Description

In a cos-lite bundle deployment, the workload is on https, but traefik still thinks it's http.

To Reproduce

Run integration tests from canonical/cos-lite-bundle#80.

Environment

Model             Controller  Cloud/Region        Version  SLA          Timestamp
test-bundle-wuya  microk8s    microk8s/localhost  3.1.5    unsupported  22:56:30-04:00

App           Version  Status  Scale  Charm                     Channel  Rev  Address         Exposed  Message
alertmanager  0.25.0   active      2  alertmanager-k8s          edge      91  10.152.183.20   no       
avalanche              active      2  avalanche-k8s             edge      35  10.152.183.105  no       
ca                     active      1  self-signed-certificates  edge      36  10.152.183.125  no       
catalogue              active      1  catalogue-k8s             edge      27  10.152.183.227  no       
external-ca            active      1  self-signed-certificates  edge      36  10.152.183.218  no       
grafana       9.2.1    active      1  grafana-k8s               edge      92  10.152.183.21   no       
loki          2.7.4    active      1  loki-k8s                  edge      99  10.152.183.129  no       
prometheus    2.46.0   active      1  prometheus-k8s            edge     149  10.152.183.159  no       
traefik       2.10.4   active      1  traefik-k8s               edge     155  10.43.8.206     no       

Relevant log output

$ ps aux | grep prometheus                                                                         
root      764181  0.1  1.2 933536 91252 ?        Sl   22:03   0:04 /bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/var/lib/prometheus --web.enable-lifecycle --web.console.templates=/usr/share/prometheus/consoles --web.console.libraries=/usr/share/prometheus/console_libraries --web.config.file=/etc/prometheus/prometheus-web-config.yml --web.external-url=https://prometheus-0.prometheus-endpoints.test-bundle-wuya.svc.cluster.local:9090/test-bundle-wuya-prometheus-0 --web.route-prefix=/ --log.level=info --storage.tsdb.retention.time=15d --storage.tsdb.retention.size=0.8GB

$ jsshc traefik traefik/0 cat /opt/traefik/juju/juju_ingress_ingress-per-unit_8_prometheus.yaml
http:
  middlewares:
    juju-sidecar-noprefix-test-bundle-wuya-prometheus-0:
      stripPrefix:
        forceSlash: false
        prefixes:
        - /test-bundle-wuya-prometheus-0
  routers:
    juju-test-bundle-wuya-prometheus-0-router:
      entryPoints:
      - web
      middlewares:
      - juju-sidecar-noprefix-test-bundle-wuya-prometheus-0
      rule: PathPrefix(`/test-bundle-wuya-prometheus-0`)
      service: juju-test-bundle-wuya-prometheus-0-service
    juju-test-bundle-wuya-prometheus-0-router-tls:
      entryPoints:
      - websecure
      middlewares:
      - juju-sidecar-noprefix-test-bundle-wuya-prometheus-0
      rule: PathPrefix(`/test-bundle-wuya-prometheus-0`)
      service: juju-test-bundle-wuya-prometheus-0-service
      tls: {}
  services:
    juju-test-bundle-wuya-prometheus-0-service:
      loadBalancer:
        servers:
        - url: http://prometheus-0.prometheus-endpoints.test-bundle-wuya.svc.cluster.local:9090

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant