aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/kubernetes/roles/sriov/templates/sriov-test-pod.yml
blob: 849aca8530e2153f59805b961bb94ec29c1d6829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright (C) 2018, ARM Limited and contributors.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
---
apiVersion: v1
kind: Pod
metadata:
  name: multus-test1
  annotations:
    networks: '[
      { "name": "flannel-conf" },
      { "name": "sriov-conf1" }
    ]'
spec:
  containers:
    - name: multus-test
      image: "busybox"
      command: ["top"]
      stdin: true
      tty: true
  nodeSelector:
    kubernetes.io/hostname: "host1"
  tolerations:
    - key: "node-role.kubernetes.io/master"
      operator: "Exists"
      effect: "NoSchedule"
---
apiVersion: v1
kind: Pod
metadata:
  name: multus-test2
  annotations:
    networks: '[
      { "name": "flannel-conf" },
      { "name": "sriov-conf2" }
    ]'
spec:
  containers:
    - name: multus-test
      image: "busybox"
      command: ["top"]
      stdin: true
      tty: true
  nodeSelector:
    kubernetes.io/hostname: "host2"
  tolerations:
    - key: "node-role.kubernetes.io/master"
      operator: "Exists"
      effect: "NoSchedule"