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

[Infra] Deploy CKAN + Aircan-connector to DX #47

Closed
11 tasks done
hannelita opened this issue Jul 6, 2020 · 8 comments
Closed
11 tasks done

[Infra] Deploy CKAN + Aircan-connector to DX #47

hannelita opened this issue Jul 6, 2020 · 8 comments
Assignees
Milestone

Comments

@hannelita
Copy link
Contributor

hannelita commented Jul 6, 2020

Acceptance

Tasks

Note The docs for DX are still under development and the steps here may need adjustments/clarification

Following https://gitlab.com/datopian/tech/devops/-/blob/master/dx-rfc-dx-approach.md and https://gitlab.com/datopian/tech/devops/-/issues/163, @Irio helped us to come up with the following list:

  • List the services you want to deploy -- DONE -- using this repo without datapusher
    • CKAN
    • Solr
    • PostgreSQL
  • Fork dx-helm-national-grid -- DONE -- dx-helm-ckan-aircan
  • Delete unused files in /templates
  • Get access to the Google Cloud project datopian-dx (ask Irio or Irakli) -- DONE -- got the access to datopian-dx
  • Connect kubectl with your Google Cloud credentials
gcloud auth login
gcloud container clusters get-credentials
  • Create Argo CD project
    • Install argocd cli locally -- cli_installation
    • Run argocd proj create [project name] pointing to remote argo cd -- created project aircan
  • Push dx-helm-national-grid fork to Gitlab/GitHub -- dx-helm-ckan-aircan
  • Create Argo CD application inside this new project (pointing to the Git repo) -- created app aircan-dev

Before deploying, use Terraform (repo dx-terraform) to create a new PSQL instance -- @Irio we need to add documentation about this step.

@mbeilin
Copy link
Contributor

mbeilin commented Jul 14, 2020

Currently, we have 2 new repos:

  1. dx-helm-ckan-aircan

  2. cloud-ckan-aircan

We have aircan-dev app deployed in ArgoCD and the portal up and running ckan-aircan-dev. -- not relevant (deployed to old cluster), will be deleted.
There were some blockers, like adding secrets to helm registry, that's fixed now.
The last thing, that I'm currently working on is to seal (encrypt) the secret keys that we are using.

@mbeilin
Copy link
Contributor

mbeilin commented Jul 15, 2020

Quick update - to get your app deployed to new cluster take a look at last task here about Cloudflare

@mbeilin
Copy link
Contributor

mbeilin commented Jul 16, 2020

Update - you have to create a PostgresQL instance for your app in GC under datopian-dx project,
there are 2 possible ways for doing that:

  1. Create PostgresQl instance in GC GUI - my choice.

  2. Via dx-terraform

@hannelita
Copy link
Contributor Author

@mbeilin Shall we give it a try with the newest versions of aircan / aircan-connector? I think if we do that, we'll be able to successfully close this issue

@mbeilin
Copy link
Contributor

mbeilin commented Jul 19, 2020

@mbeilin Shall we give it a try with the newest versions of aircan / aircan-connector? I think if we do that, we'll be able to successfully close this issue

@hannelita yes, we can close this issue. There is still the problem with the certificate we created for this site.
I opened a new issue in DevOps.

@mbeilin mbeilin closed this as completed Jul 19, 2020
@hannelita hannelita reopened this Jul 21, 2020
@hannelita
Copy link
Contributor Author

hannelita commented Jul 21, 2020

Reopening the issue; we'll be able to close it when #66 is completed. We still need to have a summary of how to use DX with Aircan

@leomrocha
Copy link
Contributor

@hannelita

Reopening the issue; we'll be able to close it when #66 is completed. We still need to have a summary of how to use DX with Aircan

#66 is now closed, shall we close this one too then?

@hannelita
Copy link
Contributor Author

Yes, we can close this issue. Note that several integration tests are broken on Cypress @leomrocha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants