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

odoo: consider implementing a maintenance page within the chart #30

Open
theangryangel opened this issue Sep 19, 2022 · 0 comments
Open
Labels

Comments

@theangryangel
Copy link
Member

It would be useful to optionally implement a maintenance page within the chart, so that if all workers are unavailable rather than getting the default ingress error page, that a maintenance page is displayed instead.

A good example would be something like this.

We should probably consider our own maintenance docker image.

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: maintenance-ingressroute
spec:
  entryPoints:
  - websecure
  routes:
  - kind: Rule
    priority: 5
    match: HOSTMATCHESHERE
    middlewares: []
    services:
    - name: maintenance
      port: 8080
  tls:
    secretName: CERTHERE

---

apiVersion: apps/v1
kind: Deployment
metadata:
  name: maintenance
  labels:
    app: maintenance
spec:
  selector:
    matchLabels:
      maintenance: maintenance
  replicas: 1
  strategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        maintenance: maintenance
    spec:
      containers:
        - name: nginx
          image: wickerlabs/maintenance
          env:
            - name: TEAM_NAME
              value: "COMPANYNAME"
            - name: TITLE
              value: "We're upgrading"
            - name: MAIL_ADDRESS
              value: "EMAILHERE"
            - name: LINK_COLOR
              value: "#DB375C"
            - name: THEME
              value: "Light"
            - name: PORT
              value: "8080"
            - name: RESPONSE_CODE
              value: "503 Service Unavailable"
            - name: CONTACT_LINK
              value: "contact us via email"
          ports:
            - name: http
              protocol: TCP
              containerPort: 8080

---

apiVersion: v1
kind: Service
metadata:
  name: maintenance
spec:
  ports:
  - name: http
    port: 8080
    protocol: TCP
    targetPort: 8080
  selector:
    maintenance: maintenance
@theangryangel theangryangel changed the title odoo: Implement maintenance page within the chart odoo: consider implementing a maintenance page within the chart Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant