create namespace on the defined k8s cluster

def _create_secret(namespace, name, data, apiserver_url):
    ''' create namespace on the defined k8s cluster '''
    # Prepare URL
    url = "{0}/api/v1/namespaces/{1}/secrets".format(apiserver_url, namespace)
    # Prepare data
    request = {
        "apiVersion": "v1",
        "kind": "Secret",
        "metadata": {
            "name": name,
            "namespace": namespace,
        },
        "data": data
    }
    # Make request
    ret = _kpost(url, request)
    return ret