apiVersion: apps/v1
kind: Deployment
metadata:
  name: fortio-pp
  namespace: fortio-asm
spec:
  replicas: 1
  selector:
    matchLabels:
      app: fortio-pp
  template:
    metadata:
      name: fortio-pp
      namespace: fortio-asm
      labels:
        app: fortio-pp
      annotations:
        sidecar.istio.io/logLevel: info
        sidecar.istio.io/componentLogLevel: token:debug
        sidecar.istio.io/proxyImage: gcr.io/wlhe-cr/proxyv2:asm
        sidecar.istio.io/proxyCPU: 10m
        sidecar.istio.io/proxyMemory: 200m
    spec:
      containers:
        - name: app
          image: costinm/fortio:latest
          args:
            - load
            - -allow-initial-errors
            - -t
            - "0"
            - -abort-on
            - "123"
            - -allow-initial-errors
            - -c
            - "1"
            - -qps
            - "2"
            - http://35.226.197.207/productpage
          env:
            - name: istio
              value: ${REV}
          resources:
            requests:
              cpu: 10m
            limits:
              cpu: 200m
