https://github.com/bitxon/java-spring-k8s-probes
Playground for spring and k8s probes
https://github.com/bitxon/java-spring-k8s-probes
Last synced: 4 months ago
JSON representation
Playground for spring and k8s probes
- Host: GitHub
- URL: https://github.com/bitxon/java-spring-k8s-probes
- Owner: bitxon
- Created: 2023-02-18T20:00:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-20T21:44:56.000Z (over 3 years ago)
- Last Synced: 2024-12-30T22:14:53.602Z (over 1 year ago)
- Language: Java
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring & k8s probes
1. Build Java app
```bash
mvn clean install
```
2. Build Docker image and Push
```bash
docker build -t bitxon/app-long-start:latest .
docker push bitxon/app-long-start:latest
```
3. Deploy to Kubernetes
```bash
kubectl apply -f k8s/app.yaml
```
4. Test your setup
```bash
curl --request GET 'http://localhost:8080/hello'
```
5. Cleanup
```bash
kubectl delete -f k8s/app.yaml
```
# Useful links
[Kubernetes Probes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)