minkms restart
minkms restart command is available in RELEASE.2025-11-12T19-14-51Z or later.
Restart one or more Key Manager servers in the cluster.
By default, the command restarts all servers in the cluster through RPC (Remote Procedure Call) coordination. The leader node coordinates the restart. Alternatively, you can specify one or more HOST[:PORT] arguments to restart only specific servers.
The following settings determine which remote Key Manager server the command runs against in order of priority:
- The
MINIO_KMS_SERVERenvironment variable. - The default value of
https://localhost:7373.
SYNTAX
minkms restart \
[HOST[:PORT]...] \
[-a | --api-key KEY] \
[-k | --insecure]
PARAMETERS
HOST[:PORT]
Optional
One or more server addresses to restart. If not specified, the command performs a cluster-wide restart of all servers using RPC.
Specify each server with the host address and the optional port if different from the default (7373), using a space (" ") delimiter between each additional host.
--api-key
Optional
Alias : -a
The API key of an identity the command uses to authenticate to the Key Manager cluster.
Defaults to the value of MINIO_KMS_API_KEY.
--insecure
Optional
Alias : -k
Skip server certificate verification.
Cluster-wide restart behavior
If you do not provide any HOST[:PORT] arguments, the restart command performs a coordinated cluster-wide restart:
- The command connects to a Key Manager server (typically the leader).
- The leader node sends restart requests to all peer nodes concurrently using RPC.
- The leader waits for all peer nodes to complete their restart (or timeout).
- The leader node restarts itself last.
- The entire restart operation has a 15-second timeout for coordination.
The cluster-wide restart uses the /v1/rpc/restart endpoint for inter-node communication.
Individual server restarts use the /v1/debug/restart?self endpoint.
Configuration reload
Restarting a Key Manager server causes it to reload its configuration from the environment and configuration files. This makes the restart command useful for applying configuration changes without requiring a full redeployment.
Examples
Restart entire cluster
The following example restarts all servers in the cluster using coordinated RPC.
This uses the default port (7373) and the API key from the MINIO_KMS_API_KEY environment variable.
minkms restart
Restart specific servers with non-default port
This example restarts only the two specified servers on port 8443 without affecting other cluster members.
minkms restart kms1.example.com:8443 kms2.example.com:8443
Restart with specific API key
This example restarts all of the nodes on a cluster, but uses a specific API Key to do so.
Pass the -a flag to authenticate with a different API key instead of using the one stored in the MINIO_KMS_API_KEY environment variable.
minkms restart -a kes:v1:AKMVyFERw5Dqu3fv8Nw7Hm8gLEbdtVr5DPUj9GjMxKz3
Permissions
Restarting Key Manager servers requires SysAdmin privileges.