I answer here in the case of this discussion can be useful for others. In order to work with the newer version of Kubernetes is required that the metadata.name of master deployment is equal also in slave deployment and loadbalancer service. So the code becomes for example:
[master deployment] apiVersion: extensions/v1beta1 kind: Deployment metadata: name: locust-master-deployment spec: replicas: 1 template: metadata: labels: name: locust role: master ... [slave deployment] apiVersion: extensions/v1beta1 kind: Deployment metadata: name: locust-slave-deployment spec: replicas: 10 template: metadata: labels: name: locust role: slave spec: .... containers: - name: locust image: mylocust-image/locust:v0.8.1 env: - name: LOCUST_MODE value: slave - name: LOCUST_MASTER value: locust-master-deployment - name: LOCUST_LOCUSTFILE_PATH value: "/locust-tasks/basic.py" - name: LOCUST_TARGET_HOST value: "https://www.mysite.it" ... [load balancer service] apiVersion: v1 kind: Service metadata: name: locust-master-deployment labels: name: locust ... -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.