table of contents
- buster 1:4.2.0-2+deb10u2
OCF_HEARTBEAT_GCP-V(7) | OCF resource agents | OCF_HEARTBEAT_GCP-V(7) |
NAME¶
ocf_heartbeat_gcp-vpc-move-route - Move IP within a GCP VPCSYNOPSIS¶
gcp-vpc-move-route [start | stop | monitor | meta-data | validate-all]
DESCRIPTION¶
Resource Agent that can move a floating IP addresse within a GCP VPC by changing an entry in the routing table. This agent also configures the floating IP locally on the instance OS. Requirements :- IP forwarding must be enabled on all instances in order to be able to terminate the route
- The floating IP address must be chosen so that it is outside all existing subnets in the VPC network
- IAM permissions (see https://cloud.google.com/compute/docs/access/iam-permissions) : 1) compute.routes.delete, compute.routes.get and compute.routes.update on the route 2) compute.networks.updatePolicy on the network (to add a new route) 3) compute.networks.get on the network (to check the VPC network existence) 4) compute.routes.list on the project (to check conflicting routes)
SUPPORTED PARAMETERS¶
ip(unique, required, string, no default)
vpc_network
(required, string, default "default")
interface
(optional, string, default "eth0")
route_name
(unique, optional, string, default "ra-gcp-vpc-move-route")
stackdriver_logging
(optional, boolean, default false)
SUPPORTED ACTIONS¶
This resource agent supports the following actions (operations):start
stop
monitor
validate-all
meta-data
EXAMPLE CRM SHELL¶
The following is an example configuration for a gcp-vpc-move-route resource using the crm(8) shell:primitive p_gcp-vpc-move-route ocf:heartbeat:gcp-vpc-move-route \ params \ ip=string \ vpc_network="default" \ op monitor depth="0" timeout="30s" interval="60s"
EXAMPLE PCS¶
The following is an example configuration for a gcp-vpc-move-route resource using pcs(8)pcs resource create p_gcp-vpc-move-route ocf:heartbeat:gcp-vpc-move-route \ ip=string \ vpc_network="default" \ op monitor depth="0" timeout="30s" interval="60s"
SEE ALSO¶
http://clusterlabs.org/AUTHOR¶
ClusterLabs contributors (see the resource agent source for information about individual authors)06/27/2020 | resource-agents UNKNOWN |