pjfanning opened a new pull request, #732:
URL: https://github.com/apache/pekko-management/pull/732

   Akka Management 1.3.0 changes are now available under the Apache License 
v2.0.
   https://github.com/akka/akka-management/releases/tag/v1.3.0
   
   Ports the `rolling-update-kubernetes` module from 
[akka/akka-management#1113](https://github.com/akka/akka-management/pull/1113) 
and 
[akka/akka-management#1123](https://github.com/akka/akka-management/pull/1123). 
Provides a `PodDeletionCost` Pekko extension that automatically annotates pods 
with 
[`controller.kubernetes.io/pod-deletion-cost`](https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#pod-deletion-cost)
 so Kubernetes v1.22+ preferentially removes younger pods, keeping cluster 
singletons stable during rolling updates.
   
   ## New module: `rolling-update-kubernetes`
   
   - **`CostStrategy` / `OlderCostsMore`** — ranks members by age; oldest gets 
cost 10000, stepping down by 100 per position
   - **`ApiRequests`** — builds the `PATCH /api/v1/namespaces/{ns}/pods/{name}` 
request with `application/merge-patch+json`
   - **`KubernetesSettings`** — reads config from 
`pekko.rollingupdate.kubernetes`
   - **`PodDeletionCost`** — Pekko extension; start programmatically or via 
`pekko.extensions` autostart
   - **`PodDeletionCostAnnotator`** — actor that subscribes to 
`MemberUp`/`MemberRemoved` events, recalculates costs, patches the pod, and 
retries on transient failures with configurable backoff
   
   ## Usage
   
   ```scala
   // programmatic
   PodDeletionCost(system).start()
   ```
   ```hocon
   # or via autostart
   pekko.extensions = 
["org.apache.pekko.rollingupdate.kubernetes.PodDeletionCost"]
   ```
   
   Requires a Kubernetes `Role` with `patch` on `pods` bound to the service 
account.
   
   ## Build / docs changes
   
   - `build.sbt` — new `rollingUpdateKubernetes` project depending on 
`managementPki`
   - `project/Dependencies.scala` — deps: `pekko-actor`, `pekko-cluster`, 
`pekko-http`, `pekko-http-spray-json`; test: `pekko-testkit`, `scalatest`, 
`wiremock`
   - `project/project-info.conf` — new `rolling-update-kubernetes` entry
   - `docs/src/main/paradox/rolling-updates.md` — new page covering graceful 
shutdown, singleton stability, RBAC setup
   - Updated `index.md`, `bootstrap/recipes.md`, 
`kubernetes-deployment/forming-a-cluster.md` to cross-reference the new page


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to