The 2.11 metre tall (6-foot-11) Opelka, who is ranked 556th in the world, registered his first win over a top 30 ATP opponent.
The 18-year-old American twice faced match point with the hard-serving South African serving at 5-4 in the third set. He got out of trouble both times and went on to win the final three games of the match.