Kubernetes blog on subpath


#1

I’m looking to bring up a blog inside my kubernetes cluster. I’m using an nginx ingress and would like the blog on a subpath mysite.com/blog

snippet of Ingress config:

  • hosts:
  • host: mysite.com
    http:
    paths:
    • backend:
      serviceName: ghost
      servicePort: 2368
      path: /blog
    • backend:
      serviceName: ghost
      servicePort: 2368
      path: /blog/*

When setting url in the config to url: https://mysite.com/blog navigating to https://mysite.com/blog gives an error “Cannot GET /”. When unsetting the url variable the site loads but CSS is broken. Navigating to https://mysite.com/blog/ghost presents the login page, but logging in gives a 401 unauthorized and bounces me back to the login.

Has anyone brought up a ghost blog on kubernetes having the blog on a subpath?