def create_deployment(self, namespace, body):
        """
            https://github.com/kubernetes-incubator/client-python/blob/master/kubernetes/docs/
            ExtensionsV1beta1Api.md#create_namespaced_deployment
        """
        try:
            return self.client_appsv1api.create_namespaced_deployment(
                namespace=namespace,
                body=body,
            )
        except ApiException as e:
            self.logger.exception(e)
            raise

            https://github.com/kubernetes-incubator/client-python/blob/master/kubernetes/docs/
            ExtensionsV1beta1Api.md#create_namespaced_deployment
        
powerfulseal/k8s/k8s_client.py