Skip to content

aurianecodebien/auriane-k8s-projet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Projet Kubernetes – Auriane PUSEL

Ce projet déploie deux applications Flask sur Kubernetes :

  • hello-app : répond 200 OK sur /hello
  • health-app : appelle /hello et expose /health
    • Retourne 200 OK si /hello répond
    • Sinon 500

Images Docker (déployé sur DockerHub)

  • hello : aurianecodebien/hello-app
  • health : aurianecodebien/health-app

Déploiement

kubectl apply -f k8s/hello-deployment.yaml
kubectl apply -f k8s/health-deployment.yaml
kubectl port-forward svc/health-service 5000:5000
curl http://localhost:5000/health

Résultat

  • Healthy si tout fonctionne
  • Unhealthy si /hello est indisponible

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published