The cup Jesus drank

What is the “cup” referred to in these verses?

Joshua renews the covenant