In summary:
First, with rare exceptions which Jason explains best you, generally should not have a ground rod for your pool or equipment.
Second, your pool, either its walls or the rebar inside the walls should be connected by listed pressure connectors to a number 8 bare copper wire that runs to all metal within five feet of the pool and all metal pool equipment wherever located.
Third the pool deck should have a rebar or copper mesh under it within 3 feet of the pool (there is argument as to whether this is required for other than concrete).
All of these items should be connected together.
You pump, heater and other electrical appliances should be grounded with green insulated solid copper wire to the local sub-panel.