Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-11485

Implement DNS for squash microservices

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If DNS needs to be managed external to k8s, here is an example:
      https://github.com/lsst-sqre/deploy-eups-redirect/blob/master/terraform/dns/main.tf

        Attachments

          Issue Links

            Activity

            Hide
            afausti Angelo Fausti added a comment - - edited

            Creates AWS route53 resource for squash services.

            After the service deployment the external IP is discovered and a DNS record following this pattern

            ${var.service_name}.${var.namespace_name}.${var.domain_name}
            

            is created.

            $ SQUASH_SERVICE=squash-bokeh make dns
             
            source terraform/tf_env.sh squash-bokeh squash-dev 35.203.172.87; 
            	./terraform/bin/terraform apply -state=terraform/squash-bokeh.tfstate terraform/dns
            aws_route53_record.squash-www: Creating...
              fqdn:              "" => "<computed>"
              name:              "" => "squash-bokeh.squash-dev.lsst.codes"
              records.#:         "" => "1"
              records.547640452: "" => "35.203.172.87"
              ttl:               "" => "300"
              type:              "" => "A"
              zone_id:           "" => "Z3TH0HRSNU67AM"
            aws_route53_record.squash-www: Still creating... (10s elapsed)
            aws_route53_record.squash-www: Still creating... (20s elapsed)
            aws_route53_record.squash-www: Still creating... (30s elapsed)
            aws_route53_record.squash-www: Still creating... (40s elapsed)
            aws_route53_record.squash-www: Creation complete (ID: Z3TH0HRSNU67AM_squash-bokeh.squash-dev.lsst.codes_A)
             
            Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
            

            Show
            afausti Angelo Fausti added a comment - - edited Creates AWS route53 resource for squash services. After the service deployment the external IP is discovered and a DNS record following this pattern ${var.service_name}.${var.namespace_name}.${var.domain_name} is created. $ SQUASH_SERVICE=squash-bokeh make dns   source terraform/tf_env.sh squash-bokeh squash-dev 35.203 . 172.87 ; ./terraform/bin/terraform apply -state=terraform/squash-bokeh.tfstate terraform/dns aws_route53_record.squash-www: Creating... fqdn: "" => "<computed>" name: "" => "squash-bokeh.squash-dev.lsst.codes" records.#: "" => "1" records. 547640452 : "" => "35.203.172.87" ttl: "" => "300" type: "" => "A" zone_id: "" => "Z3TH0HRSNU67AM" aws_route53_record.squash-www: Still creating... (10s elapsed) aws_route53_record.squash-www: Still creating... (20s elapsed) aws_route53_record.squash-www: Still creating... (30s elapsed) aws_route53_record.squash-www: Still creating... (40s elapsed) aws_route53_record.squash-www: Creation complete (ID: Z3TH0HRSNU67AM_squash-bokeh.squash-dev.lsst.codes_A)   Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
            Show
            afausti Angelo Fausti added a comment - See PR: https://github.com/lsst-sqre/squash-deployment/pull/5
            Hide
            afausti Angelo Fausti added a comment -

            NOTE: the NAMESPACE used here is implemented in another PR https://github.com/lsst-sqre/squash-deployment/pull/4

            Show
            afausti Angelo Fausti added a comment - NOTE: the NAMESPACE used here is implemented in another PR https://github.com/lsst-sqre/squash-deployment/pull/4
            Hide
            afausti Angelo Fausti added a comment -

            Addressed PR comments

            Show
            afausti Angelo Fausti added a comment - Addressed PR comments

              People

              Assignee:
              afausti Angelo Fausti
              Reporter:
              afausti Angelo Fausti
              Reviewers:
              Adam Thornton, Joshua Hoblitt
              Watchers:
              Angelo Fausti, Joshua Hoblitt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.