Skip to content

FXC-ai/InceptionOfThings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inception-of-Things

p1

.env.example

SERVER_IP=192.168.56.110
WORKER_IP=192.168.56.111
SERVER_VM_NAME=wilS
WORKER_VM_NAME=wilSW
HCP_CLIENT_ID=your_hcp_client_id_here
HCP_CLIENT_SECRET=your_hcp_client_secret_here
BOX=your_box
BOX_VERSION=your_box_version

p2

.env.example

SERVER_IP=192.168.56.110
SERVER_VM_NAME=wilS
HCP_CLIENT_ID=your_hcp_client_id_here
HCP_CLIENT_SECRET=your_hcp_client_secret_here
BOX=your_box
BOX_VERSION=your_box_version

Commandes curl pour tester les différentes applications et nodes respectifs:

# expected output: <td>app1-deployment-[node id]-[pod id]</td>
curl -s -H "Host: app1.com" http://192.168.56.110 | grep app

# expected output: <td>app2-deployment-[node id]-[pod id]</td>
# the pod id should alternate between the 3 pods
curl -s -H "Host: app2.com" http://192.168.56.110 | grep app

# expected output: <td>app3-deployment-[node id]-[pod id]</td>
curl -s -H "Host: app3.com" http://192.168.56.110 | grep app

# expected output: <td>app3-deployment-[node id]-[pod id]</td>
# app3 is setup as the default deployment served
curl -s http://192.168.56.110 | grep app

p3

Use make install to install all dependencies for this part : docker, kubectl, k3d and the argocd CLI or to check if they are present and their versions.

Use make deploy_ingress to set up the k3d cluster, argocd and the application to be deployed using an Ingress for the routing.

Use make deploy_port_forward to set up the k3d cluster, argocd and the application to be deployed with ports forwarding between the service/argocd-server port 80 and service/wil42-playground port 8888 to your host. After a sync/update the original pod on which the port forward was done is no longer present. You need to redo a port forward with the same command: kubectl port-forward service/wil42-playground -n dev 8888:8888 > wil42-port-forward-8888.log 2>&1 &.

make update_app will update the tag for the wil42-playground image used in the remote repo that is deployed using argocd.

make clean to delete all k3d clusters.

You can use make uninstall_packages if you want to remove docker, kubectl, k3d and the argocd CLI and in order to check that make install works.

About

Projet 42 dont l'objectif pédagogique est l'utilisation de Kubernetes et Vagrant

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors