Skip to content

Commit

Permalink
feat: setup new user doc
Browse files Browse the repository at this point in the history
A how-to on getting a new JAAS user ready to deploy models/apps.
  • Loading branch information
kian99 committed Nov 27, 2024
1 parent 4e5ffb3 commit 21d0899
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ JSON
Juju
Kubeflow
Kubernetes
localhost
Launchpad
LTS
Makefile
Expand All @@ -41,6 +42,7 @@ NodePort
observability
OEM
OLM
Openstack
Permalink
performant
pre
Expand Down
18 changes: 9 additions & 9 deletions how-to/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ After JAAS has been deployed, you need to configure it with your Juju operated c
Add a controller to JAAS <add_controller>
Migrate models to JAAS <migrate_models>
Migrate models internally <migrate_models_internal>

Terraform
---------

.. toctree::
:maxdepth: 1

Use Terraform <use_terraform>
Use Terraform for configuration <use_terraform>

Observability
-------------
Expand All @@ -46,4 +39,11 @@ Juju Dashboard
.. toctree::
:maxdepth: 1

How to setup Juju Dashboard <setup_dashboard>
How to setup Juju Dashboard <setup_dashboard>

Access
------
.. toctree::
:maxdepth: 1

Setup new users <setup_new_users>
69 changes: 69 additions & 0 deletions how-to/setup_new_users.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
JAAS: Setup New Users
=====================

This how-to describes how a new user can begin to use JAAS to deploy applications.

Prerequisites
-------------

For this how-to you will need the following:

- A running JAAS environment, see :doc:`our tutorial <../tutorial/deploy_jaas_microk8s>`.
- A controller connected to JAAS, see :doc:`our how-to <./add_controller>`. This how-to assumes you have added an LXD controller.

Login to JAAS
-------------

Login to JAAS for the first time:

.. code:: bash
juju login test-jimm.localhost:443 -c jaas
Running ``juju controllers`` will now show you the ``jaas`` controller.
Commands like ``juju models`` will now work.

Cloud Credentials
-----------------

Before we can create a model, your user requires a set of cloud `credentials <https://juju.is/docs/juju/credential>`__.

View credentials available on your client:

.. code:: bash
juju credentials --client
The output should resemble the following

.. code:: bash
Client Credentials:
Cloud Credentials
localhost localhost*
microk8s microk8s*
We will upload credentials for LXD - the `localhost` credentials.

.. code:: bash
juju update-credentials localhost --controller jimm
.. hint::

For clouds like Openstack or public clouds, use the `juju add-credential` command to interactively
add credentials to your client and controller.

Credentials are now available on the controller for your user to deploy models on the LXD cloud.

Deploy
------

Now we can deploy a model and application:

.. code:: bash
juju add-model test-model
juju deploy ubuntu
We've successfully added a set of cloud-credentials and deployed an application into a model.
1 change: 1 addition & 0 deletions tutorial/deploy_jaas_microk8s.rst
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ Now that you have JIMM running you can browse our additional guides to setup an

- :doc:`Setup your initial JIMM admin and configure permissions<../how-to/bootstrap_permissions>`.
- :doc:`Learn how to add a new controller to JIMM.<../how-to/add_controller>`
- :doc:`Learn how to setup your new user.<../how-to/setup_new_users>`
- :doc:`Learn how to migrate models from existing controllers to JIMM <../how-to/migrate_models>`.
- :doc:`Understand the difference between the available CLI tools <../explanation/cli_tools>`.

Expand Down

0 comments on commit 21d0899

Please sign in to comment.