# Your Kubernetes control-plane has initialized successfully! # To start using your cluster, you need to run the following as a regular user: # mkdir -p $HOME/.kube # sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config # sudo chown $(id -u):$(id -g) $HOME/.kube/config # Alternatively, if you are the root user, you can run: # export KUBECONFIG=/etc/kubernetes/admin.conf # You should now deploy a pod network to the cluster. # Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at: # https://kubernetes.io/docs/concepts/cluster-administration/addons/ # Then you can join any number of worker nodes by running the following on each as root: # kubeadm join 172.17.0.220:6443 --token 22tkpm.0eetw95la7mtv6qm \ # --discovery-token-ca-cert-hash sha256:****************************************************************
import time from typing importAny, Callable import grpc import grpc.experimental.gevent as grpc_gevent from grpc_interceptor import ClientInterceptor from locust import User from locust.exception import LocustError
# patch grpc so that it uses gevent instead of asyncio grpc_gevent.init_gevent()
def__init__(self, environment): super().__init__(environment) for attr_value, attr_name in ((self.host, "host"), (self.stub_class, "stub_class")): if attr_value isNone: raise LocustError(f"You must specify the {attr_name}.")