|
| 1 | + |
| 2 | +### The first thing to check |
| 3 | + |
| 4 | +> Make sure you have JDK installed in your WSL system. Without this, the code is not generated! (with harness-application command). A bunch of errors that I had was solved by this step. In addition, test if you have all the basic requirements needed for the Cloud-Harness + other requirements needed to set up. |
| 5 | +
|
| 6 | +Please check if you are running **Kubernetes with Docker Desktop.** |
| 7 | + |
| 8 | +If you have Codecloud VS extension, make sure to check that you have docker-desktop ACTIVE. You can also check the namespace which by default is set to `default` |
| 9 | + |
| 10 | +### Setting namespaces and with `docker-desktop` context |
| 11 | + |
| 12 | +> The commands related to minikube from the tutorial are not needed in the case of docker-desktop. |
| 13 | +
|
| 14 | +We create namespaces inside docker-desktop… for our case of following the tutorial, it is azathoth |
| 15 | + |
| 16 | +``` |
| 17 | +kubectl create ns azathoth |
| 18 | +``` |
| 19 | + |
| 20 | +If want to change the namespace while keeping the context same (i.e. docker-desktop) then the following is the command. This is because the default namespace is `default` |
| 21 | + |
| 22 | +``` |
| 23 | +kubectl config set-context --current --namespace=azathoth |
| 24 | +``` |
| 25 | + |
| 26 | +### Deployment command distinction |
| 27 | + |
| 28 | +Use the following command when you want your application installed inside the cloud-harness directory (very less likely; that one would use this) |
| 29 | + |
| 30 | +``` |
| 31 | +harness-deployment . -u -dtls -l -d azathoth.local -e local -n azathoth |
| 32 | +``` |
| 33 | + |
| 34 | +Otherwise (mostly how we use it) |
| 35 | + |
| 36 | +``` |
| 37 | +harness-deployment cloud-harness . -u -dtls -l -d azathoth.local -e local -n azathoth |
| 38 | +``` |
| 39 | + |
| 40 | +### About host file issue |
| 41 | + |
| 42 | +To be able to visit links like - [http://clockdate.azathoth.local/](http://clockdate.azathoth.local/), or [http://clockdate.azathoth.local/api/ping](http://clockdate.azathoth.local/api/ping), we need to update the host file. Make note that the host file is of Windows (and not for the subsystem), which can be found here: |
| 43 | + |
| 44 | +``` |
| 45 | +C:\Windows\System32\drivers\etc\hosts |
| 46 | +``` |
| 47 | + |
| 48 | +(NOTE: We might be able to work with Linux hosts if we enable - *_Add the .docker.internal names to the host's etc/hosts file (Requires password)_ in the General settings of docker desktop. But I haven’t tested that. ) |
| 49 | + |
| 50 | +### If Running CLOUD HARNESS for the first time! |
| 51 | + |
| 52 | +There are certain scripts that need to be run when running the CloudHarness and its dependent applications for the first time in a system. These are `sc.yaml` and `cluster-init.sh` which can be found in the following path w.r.t. cloud-harness. |
| 53 | + |
| 54 | +``` |
| 55 | +kubectl apply -f cloudharness/deployment/sc.yaml |
| 56 | +``` |
| 57 | + |
| 58 | +``` |
| 59 | +cd cloud-harness/infrastructure/cluster-configuration && bash cluster-init.sh |
| 60 | +``` |
| 61 | + |
| 62 | +These are one-time setup scripts needed to be run. |
| 63 | + |
| 64 | +### About Frontend issues |
| 65 | + |
| 66 | +If the [clockdate.azathoth.local](http://clockdate.azathoth.local/) doesn’t return the frontend part! |
| 67 | + |
| 68 | +When the frontend is generated through the “harness-application”, the package-lock.json is required which is not mentioned in the docs. Therefore one must have to do the `npm i —legacy-peer-deps` before proceeding with the “scaffold run” command. |
| 69 | + |
| 70 | + |
0 commit comments