Skip to content

Commit 69bdfda

Browse files
author
Alan Christie
committed
docs: Refinements matching the job operator
1 parent 07d7788 commit 69bdfda

File tree

3 files changed

+23
-14
lines changed

3 files changed

+23
-14
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,21 @@ current health of your clone with: -
6161
The operator container, residing in the `operator` directory,
6262
is automatically built and pushed to Docker Hub using GitHub Actions.
6363

64-
You can build the image yourself using docker-compose.
65-
The following will build an operator image with the tag `19.0.0-alpha.1`: -
64+
You can build and push the image yourself using docker-compose.
65+
The following will build an operator image with the tag `19.2.0-alpha.1`: -
6666

67-
export IMAGE_TAG=19.0.0-alpha.1
67+
export IMAGE_TAG=19.2.0-alpha.1
6868
docker-compose build
69+
dcoker-compose push
6970

7071
## Deploying into the Data Manager API
7172
We use [Ansible] 3 and community modules in [Ansible Galaxy] as the deployment
7273
mechanism, using the `operator` Ansible role in this repository and a
7374
Kubernetes config (KUBECONFIG). All of this is done via a suitable Python
7475
environment using the requirements in the root of the project...
7576

76-
python -m venv ~/.venv/data-manager-jupyter-operator
77-
source ~/.venv/data-manager-jupyter-operator/bin/activate
77+
python -m venv venv
78+
source venv/bin/activate
7879
pip install --upgrade pip
7980
pip install -r requirements.txt
8081
ansible-galaxy install -r requirements.yaml

doc/LOCAL-DEPLOYMENT.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ You will now need: -
99

1010
- This repository (but you'll have that already)
1111
- Python 3
12-
- [lens]
12+
- A [kubectl] that matches your cluster
1313

1414
## Create an environment for the Ansible playbooks
1515
You will need a Python virtual environment for ansible playbook execution.
@@ -18,17 +18,16 @@ this one.
1818

1919
You must use Python 3: -
2020

21-
python -m venv ~/.venv/ansible
21+
python -m venv venv
2222

23-
source ~/.venv/ansible/bin/activate
24-
pip install wheel
23+
source venv/bin/activate
2524
pip install -r requirements.txt
2625

2726
## Deploy the Jupyter Operator
2827
From the root of your clone of the `data-manager-jupyter-operator` repository,
2928
and within the Ansible environment you created in the previous step,
30-
create a suitable Ansible parameter file called `parameters.yaml` using the
31-
`parameters-template.yaml` file as a guide, replacing the `SetMe` lines.
29+
copy the `local-parameters.yaml` file to `parameters.yaml` and change the variables
30+
to suit your local cluster.
3231

3332
> You will need a KUBECONFIG file, and refer to it using the `jo_kubeconfig`
3433
variable and make sure `kubectl get no` returns nodes you expect.
@@ -37,10 +36,18 @@ Now deploy the Job Operator: -
3736

3837
ansible-playbook site.yaml -e @parameters.yaml
3938

40-
> You can check the deployment progress using [Lens].
39+
The operator should deploy to the namespace `data-manager-jupyter-operator`.
40+
Run: -
41+
42+
kubectl get po -n data-manager-jupyter-operator
43+
44+
To see something like this...
45+
46+
NAME READY STATUS RESTARTS AGE
47+
jupyter-operator-6895bc77f9-9pg44 1/1 Running 0 35s
4148

4249
---
4350

4451
[docker desktop]: https://www.docker.com/products/docker-desktop
45-
[lens]: https://k8slens.dev
46-
[minikube]: https://minikube.sigs.k8s.io/docs/start/
52+
[kubectl]: https://kubernetes.io/docs/tasks/tools
53+
[minikube]: https://minikube.sigs.k8s.io/docs/start

local-parameters.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22

33
jo_image_tag: 19.2.0
4+
jo_ingress_domain: kubernetes.docker.internal
45
jo_dmapi_namespace: data-manager-api
56

67
# The Kubernetes config file

0 commit comments

Comments
 (0)