AmpersandTarski / RAP

RAP is a tool that lets you analyse Ampersand models, generate functional specifications and make prototypes of information systems. It is the primary tool for students of the Open University of the Netherlands in the course Rule Based Design.
5 stars 3 forks source link

Configure domain names #239

Closed Michiel-s closed 1 year ago

Michiel-s commented 1 year ago

As discussed we'll have a couple of subdomains of tarski.nl available to route to the RAP / Ordina cluster.

@FreekOrdina, if you have the static IP address for the kube cluster please let us know in this issue.

@stefjoosten, you can then configure the following DNS records

Host Type record Value
a-team.tarski.nl A <IP address>
*.a-team.tarski.nl CNAME a-team.tarski.nl
rap.tarski.nl CNAME a-team.tarski.nl
*.rap.tarski.nl CNAME a-team.tarski.nl
*.student.rap.tarski.nl CNAME a-team.tarski.nl

I've introduced the subdomain a-team.tarski.nl for the A-team to experiment and/or host other services (next to RAP).

All configured (wildcard) domains point to the same IP address and are handled by the NGINX ingress controller in the A-team kube cluster.

Below an example of an ingress resource for a student prototype to be exposed on the domain.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: student123-ingress
  namespace: students
  annotations:
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
  ingressClassName: nginx
  rules:
  - host: student123.student.rap.tarski.nl
    http:
      paths:
      - pathType: ImplementationSpecific
        backend:
          service:
            name: student123-prototype-svc
            port:
              number: 80
  tls:
  - secretName: student123-student-rap-tarski-nl
    hosts:
    - student123.student.rap.tarski.nl
FreekOrdina commented 1 year ago

@stefjoosten I have setup the Kubernetes cluster on the Azure MTech environment and generated the static IP address to use:

13.94.199.199

stefjoosten commented 1 year ago

I have made the following DNS settings: afbeelding

stefjoosten commented 1 year ago

@Michiel-s wil jij nog even kijken of het screenshot naar jouw tevredenheid is? Ik heb alleen records toegevoegd. Dus alles wat je niet herkent stond er al (standaard ingesteld door de provider neem ik aan.)