apiVersion: apps/v1
kind: Deployment
metadata:
  name: load-generator
  labels:
    app: load-generator
spec:
  replicas: 15
  selector:
    matchLabels:
      app: load-generator
  template:
    metadata:
      labels:
        app: load-generator
    spec:
      containers:
      - name: load-generator
        image: gcr.io/cos-cloud/toolbox
        command: ["/bin/sh", "-c", "while true; do curl -s http://product-app-service.product-app.svc.cluster.local:5000/product-list/; sleep 1; done"]
