Short answer: not in the game itself. Valve's built-in rental does not include knives or gloves. You can rent a knife only from a third-party service that owns the items and hands them to you for a term.
In February 2024, alongside the Kilowatt Case, CS2 got rentals: instead of opening a case with a key for one random item, you can get every weapon skin from that case for a week. The rare special items — knives and gloves — are not part of it. The key is still spent, and after seven days the skins disappear.
For comparison: knives like these sell for hundreds of dollars on the market. Renting for a weekend costs a few percent of the purchase price.
Pick a knife
Is renting CS2 skins safe
Guides to renting CS2 skins and accounts