@@ -9,7 +9,7 @@ You will now need: -
9
9
10
10
- This repository (but you'll have that already)
11
11
- Python 3
12
- - [ lens ]
12
+ - A [ kubectl ] that matches your cluster
13
13
14
14
## Create an environment for the Ansible playbooks
15
15
You will need a Python virtual environment for ansible playbook execution.
@@ -18,17 +18,16 @@ this one.
18
18
19
19
You must use Python 3: -
20
20
21
- python -m venv ~/. venv/ansible
21
+ python -m venv venv
22
22
23
- source ~/.venv/ansible/bin/activate
24
- pip install wheel
23
+ source venv/bin/activate
25
24
pip install -r requirements.txt
26
25
27
26
## Deploy the Jupyter Operator
28
27
From the root of your clone of the ` data-manager-jupyter-operator ` repository,
29
28
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 .
32
31
33
32
> You will need a KUBECONFIG file, and refer to it using the ` jo_kubeconfig `
34
33
variable and make sure `kubectl get no` returns nodes you expect.
@@ -37,10 +36,18 @@ Now deploy the Job Operator: -
37
36
38
37
ansible-playbook site.yaml -e @parameters.yaml
39
38
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
41
48
42
49
---
43
50
44
51
[ 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
0 commit comments