-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from IQSS/143-solr-ip
143 solr ip
- Loading branch information
Showing
7 changed files
with
192 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
================== | ||
Initial Deployment | ||
================== | ||
|
||
Please familiarize yourself with the `architecture of Dataverse <http://guides.dataverse.org/en/latest/installation>`_ | ||
if not already done: it helps a lot knowing how things are connected in Dataverse | ||
to also understand using it as a Kubernetes application. | ||
|
||
The below UML sequence diagram shows all necessary steps by "you" (the user activity on the left) | ||
or (preferably) your deployment framework (like Kustomize.io, Helm or similar) | ||
on your behalf for a new deployment of Dataverse. It also explains what happens | ||
in the background on an overview level. | ||
|
||
When you are done with the initial deployment, you have to :doc:`bootstrap </day1/job-bootstrap>` | ||
and :doc:`configure </day1/config>`. | ||
|
||
Maybe you should just read :doc:`/get-started/index` and follow that before going into details. | ||
|
||
.. uml:: | ||
|
||
@startuml | ||
!includeurl "https://raw.githubusercontent.com/michiel/plantuml-kubernetes-sprites/master/resource/k8s-sprites-unlabeled-25pct.iuml" | ||
|
||
actor User | ||
participant "<color:#royalblue><$secret></color>\nSecrets" as S | ||
participant "<color:#royalblue><$cm></color>\nConfigMap" as CM | ||
participant "<color:#royalblue><$pod></color>\nPostgreSQL" as P | ||
participant "<color:#royalblue><$pod></color>\nDataverse" as D | ||
participant "<color:#royalblue><$pod></color>\nSolr" as Solr | ||
|
||
create S | ||
User -> S: Deploy Secrets | ||
create CM | ||
User -> CM: Deploy ConfigMap | ||
note over P: Optional! | ||
create P | ||
User -> P: Deploy PostgreSQL | ||
CM -> P: Pass username +\ndatabase name | ||
S -> P: Pass password | ||
P -> P: Init database | ||
|
||
create Solr | ||
User -> Solr: Deploy Solr from iqss/solr-k8s | ||
Solr -> Solr: Init container:\nFix volume permissions\nDeploy schemas | ||
|
||
create D | ||
User -> D: Deploy Dataverse from iqss/dataverse-k8s | ||
D -> D: Init container:\nFix volume permissions | ||
D <<-->> P: wait for | ||
D <<-->> Solr: wait for | ||
D -> D: Deploy app | ||
note right: see also in detail at\n"Container Startup" | ||
D -> P: Persistance Framework:\nCreate tables | ||
P --> D: Done | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
============= | ||
Bootstrap Job | ||
============= | ||
|
||
After deploying every components of Dataverse on Kubernetes for the first time | ||
(see :doc:`./init-deploy`), you will need to bootstrap your installation. | ||
That will create a superadmin user, root dataverse and block important API endpoints. | ||
|
||
It will also set the option ``:SolrHostColonPort``, configuring where Dataverse | ||
can find the Solr Search index. It will default to ``solr:8983``, but can be | ||
overridden by setting a hostname or IP in ``SOLR_K8S_HOST`` via ``ConfigMap`` | ||
(see :doc:`config`). | ||
|
||
.. uml:: | ||
|
||
@startuml | ||
!includeurl "https://raw.githubusercontent.com/michiel/plantuml-kubernetes-sprites/master/resource/k8s-sprites-unlabeled-25pct.iuml" | ||
|
||
actor User | ||
participant "<color:#royalblue><$secret></color>\nSecrets" as S | ||
participant "<color:#royalblue><$cm></color>\nConfigMap" as CM | ||
participant "<color:#royalblue><$pod></color>\nPostgreSQL" as P | ||
participant "<color:#royalblue><$pod></color>\nDataverse" as D | ||
participant "<color:#royalblue><$job></color>\nBootstrap Job" as BJ | ||
participant "<color:#royalblue><$pod></color>\nSolr" as Solr | ||
|
||
create BJ | ||
User -> BJ: Deploy Bootstrapping Job | ||
S -> BJ: Pass db password\n+API key | ||
CM -> BJ: Pass settings | ||
BJ <<-->> P: wait for | ||
BJ <<-->> Solr: wait for | ||
BJ <<-->> D: wait for | ||
|
||
... After Dataverse, Solr and PostgreSQL have been reached successfully... ... | ||
|
||
BJ -> P: Additional SQL init | ||
BJ -> D: Bootstrapping w/ setup-all.sh\n(Metadata, user, root dataverse, ...) | ||
activate D | ||
BJ -> D: Configure Solr location\n+ admin contact | ||
BJ -> D: Block API with unblock-key | ||
D -> P: Store settings | ||
return | ||
destroy BJ | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters