Skip to content

Commit

Permalink
update: readme
Browse files Browse the repository at this point in the history
fix: yaml to create resources for old hostnames
  • Loading branch information
xgui3783 committed Jun 14, 2024
1 parent 780baab commit 8cf6bed
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 4 deletions.
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/

0 comments on commit 8cf6bed

Please sign in to comment.