- Notifications
You must be signed in to change notification settings - Fork0
Orchestration engine that enables the deployment, integration and lifecycle management of applications at any scale, on any infrastructure (Kubernetes or otherwise).
License
SimoneDutto/juju
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation

Juju is an open source application orchestration engine that enables any application operation (deployment, integration, lifecycle management) on any infrastructure (Kubernetes or otherwise) at any scale (development or production) in the same easy way (typically, one line of code), through special operators called ‘charms’.
Let's use Juju to deploy, configure, and integrate some Kubernetes charms:
You will need a cloud and Juju. The quickest way is to use a Multipass VM launched with thecharm-dev blueprint.
Install Multipass. On Linux:
sudo snap install multipassUse Multipass to launch an Ubuntu VM with thecharm-dev blueprint:
multipass launch --cpus 4 --memory 8G --disk 50G --name tutorial-vm charm-devOpen a shell into the VM:
multipass shell tutorial-vmVerify that you have Juju and two localhost clouds:
juju cloudsBootstrap a Juju controller into the MicroK8s cloud:
juju bootstrap microk8s tutorial-controllerAdd a workspace, or 'model':
juju add-model tutorial-modelDeploy Mattermost:
juju deploy mattermost-k8sSee more:Charmhub |
mattermost-k8s
Deploy PostgreSQL:
juju deploy postgresql-k8s --channel 14/stable --trustSee more:Charmhub |
postgresql-k8s
Enable security in your PostgreSQL deployment:
juju deploy tls-certificates-operatorjuju config tls-certificates-operator generate-self-signed-certificates="true" ca-common-name="Test CA"juju integrate postgresql-k8s tls-certificates-operatorIntegrate Mattermost with PostgreSQL:
juju integrate mattermost-k8s postgresql-k8s:dbWatch your deployment come to life:
watch -n 1 -c juju status --colorUse the--relations flag to view more information about your integrations.Use the--storage flag to view more information about your storages.
When everything is inactive oridle status, note the IP address and port of Mattermost and pass them tocurl:
curl <IP address>:<port>/api/v4/system/pingYou should see the output below:
{"AndroidLatestVersion":"","AndroidMinVersion":"","IosLatestVersion":"","IosMinVersion":"","status":"OK"}You now have a Kubernetes deployment consisting of a Mattermost backed by PosgreSQL with TLS-encrypted traffic!
Delete your Multipass VM:
multipass delete --purge tutorial-vmUninstall Multipass. On Linux:
snap remove multipass- Read thedocs.
- Read ourCode of conduct and join ourchat andforum oropen an issue.
- Read ourCONTRIBUTING guide and contribute!
About
Orchestration engine that enables the deployment, integration and lifecycle management of applications at any scale, on any infrastructure (Kubernetes or otherwise).
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Go98.5%
- Shell1.2%
- Python0.2%
- Makefile0.1%
- Inno Setup0.0%
- Dockerfile0.0%