2023-07-20 11:56:10 +02:00
|
|
|
# DOCKER-COMPOSE
|
|
|
|
|
|
|
|
Build
|
|
|
|
```
|
|
|
|
make dockercomposebuild
|
|
|
|
```
|
|
|
|
|
|
|
|
Up
|
|
|
|
```
|
|
|
|
make dockercomposeup
|
|
|
|
```
|
|
|
|
|
2023-07-20 14:53:57 +02:00
|
|
|
Init
|
2023-07-20 11:56:10 +02:00
|
|
|
```
|
2023-07-20 14:53:57 +02:00
|
|
|
make dockercomposeinit
|
2023-07-20 11:56:10 +02:00
|
|
|
```
|
|
|
|
|
2023-07-20 14:53:57 +02:00
|
|
|
Down
|
|
|
|
```
|
|
|
|
make dockercomposedown
|
|
|
|
```
|
|
|
|
|
|
|
|
Sh
|
|
|
|
```
|
|
|
|
make dockercomposesh
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2023-07-20 11:56:10 +02:00
|
|
|
# KUBERNETES
|
|
|
|
|
|
|
|
Suppression Cluster
|
|
|
|
```
|
|
|
|
make deletecluster
|
|
|
|
```
|
|
|
|
|
|
|
|
Création Cluster
|
|
|
|
```
|
|
|
|
make createcluster
|
|
|
|
```
|
|
|
|
|
|
|
|
Rattachement du cluster aux secrets
|
|
|
|
```
|
|
|
|
make atachcluster
|
|
|
|
```
|
|
|
|
|
|
|
|
Deployer le cluster
|
|
|
|
**Attention** en fin de job l'ip du cluster est indiqué
|
|
|
|
Il est nécessaire d'ajuster le reseau dans ipaddresspoool.yaml si besoin
|
|
|
|
```
|
|
|
|
make applycluster
|
|
|
|
```
|
|
|
|
|
|
|
|
Déployer le stockage
|
|
|
|
**Attention** attendre une dizaine de seconde après le déploiement du cluster
|
|
|
|
```
|
|
|
|
make applylbcluster
|
|
|
|
```
|
|
|
|
|
|
|
|
Lancer le déployement en mode watch
|
|
|
|
```
|
|
|
|
make watchcluster:
|
|
|
|
```
|
|
|
|
|
|
|
|
Ouvrir un terminal sur la premiere instance de l'apps
|
|
|
|
```
|
|
|
|
make sh:
|
|
|
|
```
|
|
|
|
|
|
|
|
Suppression de l'ensemble du namespace
|
|
|
|
```
|
|
|
|
make deletenamespace
|
|
|
|
```
|
|
|
|
|
|
|
|
Lister les pods
|
|
|
|
```
|
|
|
|
make getpods
|
|
|
|
```
|
|
|
|
|
|
|
|
Lister les services
|
|
|
|
```
|
|
|
|
make getservices
|
|
|
|
```
|