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

Implement namespaces for squash deployment

    XMLWordPrintable

    Details

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

      Description

      Namespaces are required to deploy development and production instances in the same cluster.

        Attachments

          Issue Links

            Activity

            Hide
            afausti Angelo Fausti added a comment - - edited

            The squash-deployment tool automates the creation of the development and production namespaces and set the appropriate context for the kubectl client to create the SQuaSH Pods, Services and Deployments.

            Example of output:

            $ NAMESPACE=development make context
            All previous Pods, Services, and Deployments in the "development" namespace will be destroyed. Are you sure? [y/n]:y
            namespace "development" deleted
            kubectl create -f kubernetes/namespace-development.yaml
            namespace "development" created
            kubectl config set-context development --namespace=development --cluster=minikube --user=minikube
            Context "development" modified.
            kubectl config use-context development
            Switched to context "development".
            

            Show
            afausti Angelo Fausti added a comment - - edited The squash-deployment tool automates the creation of the development and production namespaces and set the appropriate context for the kubectl client to create the SQuaSH Pods, Services and Deployments. Example of output: $ NAMESPACE=development make context All previous Pods, Services, and Deployments in the "development" namespace will be destroyed. Are you sure? [y/n]:y namespace "development" deleted kubectl create -f kubernetes/namespace-development.yaml namespace "development" created kubectl config set-context development --namespace=development --cluster=minikube --user=minikube Context "development" modified. kubectl config use-context development Switched to context "development" .
            Show
            afausti Angelo Fausti added a comment - See PR https://github.com/lsst-sqre/squash-deployment/pull/4
            Hide
            afausti Angelo Fausti added a comment -

            Joshua Hoblitt revision after discussions we had during the co-work yesterday:

            • Make sure we find the cluster and user names from the current context
            • Allow the creation of any namespace using a template configuration
            • Updated README.md to reflect those changes
            Show
            afausti Angelo Fausti added a comment - Joshua Hoblitt revision after discussions we had during the co-work yesterday: Make sure we find the cluster and user names from the current context Allow the creation of any namespace using a template configuration Updated README.md to reflect those changes
            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.