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

Charmed OCI Factory Workflow Engine #126

Merged
merged 46 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
3845b88
docs: update PS6 and charm docs
cjdcordeiro Jan 25, 2024
3dbdab4
feat: update the terraform configs
cjdcordeiro Feb 9, 2024
3ebe286
fix(temporal): remove unused script from python whl
cjdcordeiro Feb 9, 2024
6c98b90
docs: document the workflow-engine infra and charm deployment
cjdcordeiro Feb 9, 2024
2a5b102
Merge branch 'main' of github.com:canonical/oci-factory into ROCKS-54…
cjdcordeiro Feb 9, 2024
37cded1
fix: add grafana CVE to .trivyignore (#112)
observability-noctua-bot Jan 24, 2024
575a509
chore: Add new grafana-agent releases (#102)
observability-noctua-bot Jan 24, 2024
4695b71
ci: automatically update oci/grafana-agent/_releases.json, from https…
Jan 24, 2024
00b3463
ci: automatically update oci/grafana/_releases.json, from https://git…
Jan 24, 2024
0b142cd
chore(deps): update public.ecr.aws/ubuntu/ubuntu:jammy docker digest …
renovate[bot] Jan 25, 2024
7a9f43c
ci: automatically update oci/alertmanager/_releases.json, from https:…
Jan 25, 2024
d7ca4b8
ci: automatically update oci/prometheus/_releases.json, from https://…
Jan 25, 2024
a81e8a9
ci: automatically update oci/loki/_releases.json, from https://github…
Jan 25, 2024
d5bc945
ci: automatically update oci/grafana-agent/_releases.json, from https…
Jan 25, 2024
6e6974b
ci: automatically update oci/traefik/_releases.json, from https://git…
Jan 25, 2024
c5538cd
ci: automatically update oci/mimir/_releases.json, from https://githu…
Jan 25, 2024
7cd2df2
chore: Add new prometheus-pushgateway releases (#117)
observability-noctua-bot Jan 26, 2024
c22f778
chore: Add new loki releases (#115)
observability-noctua-bot Jan 26, 2024
77546d8
ci: automatically update oci/prometheus-pushgateway/_releases.json, f…
Jan 26, 2024
54d0581
ci: automatically update oci/loki/_releases.json, from https://github…
Jan 26, 2024
b0c19aa
chore: Add new grafana-agent releases (#116)
observability-noctua-bot Jan 26, 2024
2196246
chore: Add new grafana releases (#114)
observability-noctua-bot Jan 26, 2024
f6d9dff
ci: automatically update oci/grafana-agent/_releases.json, from https…
Jan 26, 2024
b97413a
ci: automatically update oci/grafana/_releases.json, from https://git…
Jan 26, 2024
93a8952
Update README.md with workflow diagram (#118)
linostar Jan 30, 2024
bd8155c
chore(deps): update public.ecr.aws/ubuntu/ubuntu:jammy docker digest …
renovate[bot] Feb 6, 2024
7a2a10f
ci: automatically update oci/prometheus-pushgateway/_releases.json, f…
Feb 6, 2024
7829d86
ci: automatically update oci/alertmanager/_releases.json, from https:…
Feb 6, 2024
a762645
ci: automatically update oci/loki/_releases.json, from https://github…
Feb 6, 2024
b2e7690
ci: automatically update oci/prometheus/_releases.json, from https://…
Feb 6, 2024
e6426b0
ci: automatically update oci/traefik/_releases.json, from https://git…
Feb 6, 2024
b06a5d1
ci: automatically update oci/mimir/_releases.json, from https://githu…
Feb 6, 2024
9929360
fix: typo in IMAGE_MAINTAINER_AGREEMENT.md
cjdcordeiro Feb 7, 2024
d2f6404
docs: document the workflow-engine infra and charm deployment
cjdcordeiro Feb 9, 2024
4d07002
Merge branch 'ROCKS-543_charmed-oci-factory-we' of github.com:canonic…
cjdcordeiro Feb 9, 2024
9fc28ca
ci: automatically update oci/mock-rock/_releases.json, from https://g…
Feb 9, 2024
0d3675e
fix(charm): use the stable Temporal worker charm
cjdcordeiro Feb 13, 2024
b91e18f
Merge branch 'ROCKS-543_charmed-oci-factory-we' of github.com:canonic…
cjdcordeiro Feb 13, 2024
a1b3ec7
ci: automatically update oci/mock-rock/_releases.json, from https://g…
Feb 13, 2024
ee1ff23
rebase
cjdcordeiro Feb 13, 2024
9740ec4
Merge branch 'ROCKS-543_charmed-oci-factory-we' of github.com:canonic…
cjdcordeiro Feb 13, 2024
0cf47e1
ci: automatically update oci/mock-rock/_releases.json, from https://g…
Feb 13, 2024
c919524
fix(docs): fix typos
cjdcordeiro Feb 14, 2024
897a75a
Merge branch 'ROCKS-543_charmed-oci-factory-we' of github.com:canonic…
cjdcordeiro Feb 14, 2024
24777b0
ci: automatically update oci/mock-rock/_releases.json, from https://g…
Feb 14, 2024
52445ea
Merge branch 'main' into ROCKS-543_charmed-oci-factory-we
linostar Feb 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions oci/mock-rock/_releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
},
"1.0-22.04": {
"candidate": {
"target": "173"
"target": "174"
},
"beta": {
"target": "173"
"target": "174"
},
"edge": {
"target": "173"
"target": "174"
}
},
"test": {
Expand Down
58 changes: 58 additions & 0 deletions src/workflow-engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,61 @@ microk8s/3 -- microk8s kubectl get nodes`. You'll see something like:

- the cluster nodes should also be accessible via SSH: `juju ssh microk8s/3` or
`ssh ubuntu@<ip>`.

### Deploy a dedicated VM for the microk8s' Juju Controller

In order to deploy Kubernetes charms to the above microk8s cluster, we'll need
to bootstrap a Juju controller for that cloud.
In theory, we could use PS6 Juju client for this, but it is better not to
pollute that environment. So let's create a dedicated VM,
`rocks-ps6-juju-client`:

```bash
# From inside the PS6 environment, with the openstack credentials loaded
openstack keypair list
# If there isn't a "rocks-ps6-keypair" entry, create one with:
# openstack keypair create --private-key .ssh/rocks-ps6-key rocks-ps6-keypair

openstack server create --flavor production-cpu2-ram4-disk20 \
--image <take-an-ID-from-openstack image list> \
--key-name rocks-ps6-keypair \
--security-group <same-as-one-of-microk8s-instances> \
rocks-ps6-juju-client

# Copy the microk8s KUBECONFIG file to the VM (we'll need it for Juju)
scp .kube/config ubuntu@<rocks-ps6-juju-client-ip>:/home/ubuntu/.kube/config

# SSH into the instance
ssh ubuntu@<rocks-ps6-juju-client-ip>

# Put the KUBECONFIG file in the right path and set up Juju
mkdir .kube
mv config .kube/
sudo snap install juju
mkdir -p ~/.local/share/juju

# You should now see microk8s listed in the Juju clouds
juju clouds

# Bootstrap the Juju controller for the microk8s cloud
# NOTE: we need to treat this as an external cloud, so follow this:
# https://juju.is/docs/juju/manage-clouds#heading--add-a-kubernetes-cloud
/snap/juju/current/bin/juju add-k8s microk8s-rocks-ps6
juju clouds
juju bootstrap microk8s-rocks-ps6 microk8s-rocks-ps6-controller --config controller-service-type=loadbalancer
juju controllers

# Add the Juju model
juju add-model microk8s-rocks-ps6-model

# NOTE: typically, we'll use Terraform to manage Juju charms, so install it too
sudo snap install terraform --classic

# We might also need poetry to build the wheel file for the charm, so...
sudo apt update
sudo apt install python3-virtualenv
virtualenv venv
. venv/bin/activate
# Drop the https_proxy is not running on PS6
https_proxy="http://squid.internal:3128" pip install poetry
```
Loading
Loading