apiVersion: apps/v1
kind: Deployment
metadata:
  name: slow-cooker-opaque-service
spec:
  selector:
    matchLabels:
      app: slow-cooker-opaque-service
  template:
    metadata:
      annotations:
        linkerd.io/inject: "enabled"
      labels:
        app: slow-cooker-opaque-service
    spec:
      containers:
      - name: slow-cooker-opaque-service
        image: buoyantio/slow_cooker:1.3.0
        args:
        - -qps=1
        - -metric-addr=0.0.0.0:9999
        - http://{{ .ServiceCookerOpaqueServiceTargetHost}}:8080
        ports:
        - containerPort: 9999
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: slow-cooker-opaque-pod
spec:
  selector:
    matchLabels:
      app: slow-cooker-opaque-pod
  template:
    metadata:
      annotations:
        linkerd.io/inject: "enabled"
      labels:
        app: slow-cooker-opaque-pod
    spec:
      containers:
      - name: slow-cooker-opaque-pod
        image: buoyantio/slow_cooker:1.3.0
        args:
        - -qps=1
        - -metric-addr=0.0.0.0:9999
        - http://{{ .ServiceCookerOpaquePodTargetHost}}:8080
        ports:
        - containerPort: 9999
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: slow-cooker-opaque-unmeshed-svc
spec:
  selector:
    matchLabels:
      app: slow-cooker-opaque-unmeshed-svc
  template:
    metadata:
      annotations:
        linkerd.io/inject: "enabled"
      labels:
        app: slow-cooker-opaque-unmeshed-svc
    spec:
      containers:
      - name: slow-cooker-opaque-unmeshed-svc
        image: buoyantio/slow_cooker:1.3.0
        args:
        - -qps=1
        - -metric-addr=0.0.0.0:9999
        - http://{{ .ServiceCookerOpaqueUnmeshedSVCTargetHost}}:8080
        ports:
        - containerPort: 9999
