Link to new Kubernetes deployment guide (#29187)

This commit is contained in:
Patrik Nordwall 2020-06-05 12:35:24 +02:00 committed by GitHub
parent 7a29543545
commit 9f05948f29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,24 @@ project.description: How to deploy Akka Cluster to Kubernetes and Docker.
---
# Deploying
## Deploying to Kubernetes
See the guide and example project for [Deploying Akka Cluster to Kubernetes](https://doc.akka.io/docs/akka-management/current/kubernetes-deployment/index.html).
### Cluster bootstrap
To take advantage of running inside Kubernetes while forming a cluster,
[Akka Cluster Bootstrap](https://doc.akka.io/docs/akka-management/current/bootstrap/) helps forming or joining a cluster using Akka Discovery to discover peer nodes.
with the Kubernetes API or Kubernetes via DNS.
You can look at the
@extref[Cluster with Kubernetes example project](samples:akka-sample-cluster-kubernetes-java)
to see what this looks like in practice.
### Resource limits
To avoid CFS scheduler limits, it is best not to use `resources.limits.cpu` limits, but use `resources.requests.cpu` configuration instead.
## Deploying to Docker containers
You can use both Akka remoting and Akka Cluster inside Docker containers. Note
@ -32,18 +50,3 @@ starved of CPU time, but your system appears idle.
For this reason, it is best to avoid `--cpus` and `--cpu-quota` entirely, and instead specify relative container weights using `--cpu-shares` instead.
## Deploying to Kubernetes
### Cluster bootstrap
To take advantage of running inside Kubernetes while forming a cluster,
[Akka Cluster Bootstrap](https://doc.akka.io/docs/akka-management/current/bootstrap/) helps forming or joining a cluster using Akka Discovery to discover peer nodes.
with the Kubernetes API or Kubernetes via DNS.
You can look at the
@extref[Cluster with Kubernetes example project](samples:akka-sample-cluster-kubernetes-java)
to see what this looks like in practice.
### Resource limits
To avoid CFS scheduler limits, it is best not to use `resources.limits.cpu` limits, but use `resources.requests.cpu` configuration instead.