github.com/cilium/cilium@v1.16.2/test/k8s/manifests/demo_bw.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: netperf-10
     5  spec:
     6    selector:
     7      matchLabels:
     8        run: netperf-10
     9    replicas: 1
    10    template:
    11      metadata:
    12        labels:
    13          run: netperf-10
    14        annotations:
    15          kubernetes.io/egress-bandwidth: "10M"
    16      spec:
    17        containers:
    18        - name: netperf-10
    19          image: cilium/netperf:0.0.2
    20          imagePullPolicy: IfNotPresent
    21          ports:
    22          - containerPort: 12865
    23        nodeSelector:
    24          "cilium.io/ci-node": k8s1
    25  ---
    26  apiVersion: apps/v1
    27  kind: Deployment
    28  metadata:
    29    name: netperf-25
    30  spec:
    31    selector:
    32      matchLabels:
    33        run: netperf-25
    34    replicas: 1
    35    template:
    36      metadata:
    37        labels:
    38          run: netperf-25
    39        annotations:
    40          kubernetes.io/egress-bandwidth: "25M"
    41      spec:
    42        containers:
    43        - name: netperf-25
    44          image: cilium/netperf:0.0.2
    45          imagePullPolicy: IfNotPresent
    46          ports:
    47          - containerPort: 12865
    48        nodeSelector:
    49          "cilium.io/ci-node": k8s1
    50  ---
    51  apiVersion: apps/v1
    52  kind: Deployment
    53  metadata:
    54    name: netperf-client-pod
    55  spec:
    56    selector:
    57      matchLabels:
    58        run: netperf-client-pod
    59    replicas: 1
    60    template:
    61      metadata:
    62        labels:
    63          run: netperf-client-pod
    64      spec:
    65        containers:
    66        - name: netperf-client
    67          image: cilium/netperf:0.0.2
    68          imagePullPolicy: IfNotPresent
    69          ports:
    70          - containerPort: 12865
    71        nodeSelector:
    72          "cilium.io/ci-node": k8s2
    73  ---
    74  apiVersion: apps/v1
    75  kind: Deployment
    76  metadata:
    77    name: netperf-client-host
    78  spec:
    79    selector:
    80      matchLabels:
    81        run: netperf-client-host
    82    replicas: 1
    83    template:
    84      metadata:
    85        labels:
    86          run: netperf-client-host
    87      spec:
    88        hostNetwork: true
    89        containers:
    90        - name: netperf-client
    91          image: cilium/netperf:0.0.2
    92          imagePullPolicy: IfNotPresent
    93          ports:
    94          - containerPort: 12865
    95        nodeSelector:
    96          "cilium.io/ci-node": k8s2