k8s ok, ingress to find

This commit is contained in:
Grégory Lebreton 2023-11-09 18:10:12 +01:00
parent 3886b89750
commit a8de157052
3 changed files with 23 additions and 19 deletions

View File

@ -30,7 +30,7 @@ echo "* 0.0.0.0/0 ::/0" | sudo tee -a /etc/vbox/networks.conf
vagrant up
```
> :coffee: Laisser le temps à Vagrant de construire les machines :watch: 15 min approximativement
> :coffee: Laisser le temps à Vagrant de construire les machines :watch: 5 - 10 min approximativement
### Kube config
@ -41,7 +41,7 @@ cp configs/config ~/.kube/
### Déployer app :rocket:
```bash
kubectl apply -f devops.yml
kubectl apply -f kubernetes/devops.yml
```
- commandes utiles:

View File

@ -33,6 +33,26 @@ spec:
ports:
- port: 5678
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: devops-ingress
# annotations:
# nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
# - host: k8s.exemple
- http:
paths:
- pathType: Prefix
path: /devops
backend:
service:
name: devops-service
port:
number: 5678
---
apiVersion: v1
@ -50,19 +70,3 @@ spec:
protocol: TCP
targetPort: 5678
# ---
# apiVersion: networking.k8s.io/v1
# kind: Ingress
# metadata:
# name: devops-ingress
# spec:
# rules:
# - http:
# paths:
# - pathType: Prefix
# path: "/devops"
# backend:
# service:
# name: devops-service
# port:
# number: 5678

View File

@ -21,7 +21,7 @@ nodes:
cpu: 2
memory: 4096
workers:
count: 1
count: 2
cpu: 1
memory: 2048
# Mount additional shared folders from the host into each virtual machine.