diff --git a/documentation/kubernetes-deployment.md b/documentation/kubernetes-deployment.md index 2ea8595..1361c99 100644 --- a/documentation/kubernetes-deployment.md +++ b/documentation/kubernetes-deployment.md @@ -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 ```