...

Text file src/github.com/linkerd/linkerd2/test/integration/viz/serviceprofiles/testdata/hello_world.yaml

Documentation: github.com/linkerd/linkerd2/test/integration/viz/serviceprofiles/testdata

     1apiVersion: apps/v1
     2kind: Deployment
     3metadata:
     4  name: hello
     5spec:
     6  replicas: 1
     7  selector:
     8    matchLabels:
     9      app: hello
    10  template:
    11    metadata:
    12      labels:
    13        app: hello
    14    spec:
    15      containers:
    16      - name: hello
    17        image: buoyantio/helloworld:0.1.7
    18        args:
    19        - "-addr=:8888"
    20        - "-text=Hello"
    21        - "-target=world-svc:8889/testpath"
    22        ports:
    23        - name: service
    24          containerPort: 8888
    25---
    26apiVersion: v1
    27kind: Service
    28metadata:
    29  name: hello-svc
    30spec:
    31  selector:
    32    app: hello
    33  ports:
    34  - name: http
    35    port: 8888
    36    targetPort: 8888
    37---
    38apiVersion: apps/v1
    39kind: Deployment
    40metadata:
    41  name: world
    42spec:
    43  replicas: 1
    44  selector:
    45    matchLabels:
    46      app: world
    47  template:
    48    metadata:
    49      labels:
    50        app: world
    51    spec:
    52      containers:
    53      - name: world
    54        image: buoyantio/helloworld:0.1.7
    55        args:
    56        - "-addr=:8889"
    57        - "-text=World"
    58        - "-failure-rate=0.5"
    59        ports:
    60        - name: service
    61          containerPort: 8889
    62---
    63apiVersion: v1
    64kind: Service
    65metadata:
    66  name: world-svc
    67spec:
    68  selector:
    69    app: world
    70  ports:
    71  - name: http
    72    port: 8889
    73    targetPort: 8889
    74---
    75apiVersion: batch/v1
    76kind: Job
    77metadata:
    78  name: hello-slow-cooker
    79spec:
    80  template:
    81    metadata:
    82      labels:
    83        app: hello-slow-cooker
    84    spec:
    85      containers:
    86      - name: hello-slow-cooker
    87        image: buoyantio/slow_cooker:1.3.0
    88        command:
    89        - "/bin/sh"
    90        args:
    91        - "-c"
    92        - |
    93          sleep 15 # wait for pods to start
    94          /slow_cooker/slow_cooker -metric-addr 0.0.0.0:9998 http://hello-svc:8888/testpath
    95      restartPolicy: OnFailure

View as plain text