forked from claw/flaskpaste
docs: add k1s quick deploy section
This commit is contained in:
@@ -4,6 +4,31 @@ Deploy FlaskPaste to a Kubernetes cluster using images from Harbor registry.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Quick Deploy (k1s)
|
||||||
|
|
||||||
|
Single-node k1s cluster deployment:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Restart deployment to pull latest image
|
||||||
|
ssh k1s "kubectl -n flaskpaste rollout restart deployment/flaskpaste"
|
||||||
|
|
||||||
|
# Watch rollout progress
|
||||||
|
ssh k1s "kubectl -n flaskpaste rollout status deployment/flaskpaste"
|
||||||
|
|
||||||
|
# Verify deployment
|
||||||
|
ssh k1s "kubectl -n flaskpaste get pods"
|
||||||
|
ssh k1s "curl -s http://\$(kubectl -n flaskpaste get pod -o jsonpath='{.items[0].status.podIP}'):5000/health"
|
||||||
|
```
|
||||||
|
|
||||||
|
| Property | Value |
|
||||||
|
|----------|-------|
|
||||||
|
| Host | k1s (192.168.122.241) |
|
||||||
|
| Namespace | flaskpaste |
|
||||||
|
| Image | harbor.mymx.me/library/flaskpaste:slim |
|
||||||
|
| Pull Policy | Always |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user