maj readme

This commit is contained in:
Grégory Lebreton 2023-11-09 21:12:54 +01:00
parent 34154426a1
commit b96355e939
2 changed files with 19 additions and 2 deletions

View File

@ -46,6 +46,7 @@ kubectl apply -f kubernetes/devops.yml
- commandes utiles:
```bash
kubectl get nodes -o wide
kubectl get svc
kubectl get all
```
@ -57,10 +58,15 @@ kubectl get all
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.7/config/manifests/metallb-native.yaml
```
- Appliquer les derniers déploiments:
- Appliquer les configs pour metallb:
```bash
kubectl apply -f kubernetes/ipaddresspool.yml
kubectl apply -f kubernetes/l2advertisement.yml
```
>> http://localhost/devops
- Modifier son fichier /etc/hosts:
```bash
echo '10.0.0.50 k8s.exemple' | sudo tee -a /etc/hosts
```
>> http://k8s-exemple

11
sudo Normal file
View File

@ -0,0 +1,11 @@
127.0.0.1 localhost k8s.exemple
127.0.1.1 lenovo
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
10.0.0.50 k8s.exemple
10.0.0.50 k8s.exemple /etc/hosts
10.0.0.50 k8s.exemple /etc/hosts