Combine the corn kernels with all the remaining ingredients in a large saucepan. Bring to a boil, then reduce the heat and simmer until the mixture thickens slightly, 40 minutes. Set aside to cool, then transfer the relish to storage jars and refrigerate until ready to serve, but no longer than 1 week.