@classmethod
def from_url(cls, url, **kwargs):
    """
        Creates an instance of the KubeConfig class from a single URL (useful
        for interacting with kubectl proxy).
        """
    doc = {'clusters': [{'name': 'self', 'cluster': {'server': url}}],
        'contexts': [{'name': 'self', 'context': {'cluster': 'self'}}],
        'current-context': 'self'}
    self = cls(doc, **kwargs)
    return self
