Skip to content

Instantly share code, notes, and snippets.

View clement-joye's full-sized avatar

clement-joye

View GitHub Profile
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { DashboardGalleryComponent } from './dashboard-gallery/dashboard-gallery.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
@NgModule({
apiVersion: v1
kind: Service
metadata:
name: locust-server-service-connect
spec:
ports:
- port: 5557
protocol: TCP
targetPort: 5557
clusterIP: 10.96.0.2
FROM locustio/locust
RUN pip3 install beautifulsoup4
USER root
ENTRYPOINT ["locust"]
ENV PYTHONUNBUFFERED=1
...
env:
- name: LOCUST_MASTER_NODE_HOST
value: "10.96.0.2"
...
apiVersion: "apps/v1"
kind: Deployment
metadata:
name: locust-client-deployment
spec:
replicas: {replicas}
...
spec:
containers:
- image: {image}
{
"cluster":
{
"resourceGroup": "n/a",
"name": "your-cluster-name",
"nodeCount": 1,
"vmSize": "n/a",
"wait": true,
"isLocal": true
},