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

update readme, add yaml to configure old hostnames #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .helm/adhoc/old-hostname.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: spatial-old-hostname-certificate
spec:
secretName: spatial-old-hostname-secret
renewBefore: 120h
commonName: hbp-spatial-backend.apps.hbp.eu
isCA: false
privateKey:
algorithm: RSA
encoding: PKCS1
size: 2048
usages:
- server auth
dnsNames:
# (CHANGE ME! same as `commonName`)
- hbp-spatial-backend.apps.hbp.eu
issuerRef:
name: letsencrypt-production-issuer-1
kind: ClusterIssuer
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: spatial-old-hostname-ingress
labels:
name: spatial-old-hostname-ingress
spec:
rules:
- host: hbp-spatial-backend.apps.hbp.eu
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: prod-hbp-spatial-backend
port:
number: 8080
tls:
- secretName: spatial-old-hostname-secret
hosts:
- hbp-spatial-backend.apps.hbp.eu
6 changes: 2 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Public deployments

A production deployment (following the ``master`` branch) is deployed on https://hbp-spatial-backend.apps.hbp.eu. |uptime-prod|

The ``dev`` branch is deployed on https://hbp-spatial-backend.apps-dev.hbp.eu. |uptime-dev|
A docker image is pushed to `docker-registry.ebrains.eu/hbp-spatial-backend/server:latest <https://docker-registry.ebrains.eu/harbor/projects/112/repositories/server>`_

The public deployments are managed by OpenShift clusters, the relevant configuration is described in `<openshift-deployment/>`_.
The public deployments are managed by helm and kubernetes, the relevant configuration is described in `<.helm/>`_.


Documentation
Expand Down Expand Up @@ -240,6 +240,4 @@ This repository uses `pre-commit`_ to ensure that all committed code follows min

.. |uptime-prod| image:: https://img.shields.io/uptimerobot/ratio/7/m783468831-04ba4c898048519b8c7b5a2f?style=flat-square
:alt: Weekly uptime ratio of the production instance
.. |uptime-dev| image:: https://img.shields.io/uptimerobot/ratio/7/m783468851-2872ab9d303cfa0973445798?style=flat-square
:alt: Weekly uptime ratio of the development instance
.. _pre-commit: https://pre-commit.com/
Loading