aboutsummaryrefslogtreecommitdiffstats
path: root/example/ovn4nfv-deployment-replica-2-with-multus-ovn4nfv-annotations.yaml
blob: 7beed49a6765a38c70da3b88bb7284a6a94ae429 (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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: ovn4nfv-deployment-2-annotation
  labels:
    app: ovn4nfv-2-annotation
spec:
  replicas: 2
  selector:
    matchLabels:
      app: ovn4nfv-2-annotation
  template:
    metadata:
      labels:
        app: ovn4nfv-2-annotation
      annotations:
        k8s.v1.cni.cncf.io/networks: '[
            { "name": "ovn4nfv-k8s-plugin",
              "interface": "net1"
            }]'
        k8s.v1.cni.cncf.io/networks: ovn4nfv-k8s-plugin
        k8s.plugin.opnfv.org/nfn-network: '{ "type": "ovn4nfv", "interface": [{ "name": "ovn-port-net", "interface": "net2" , "defaultGateway": "false"},
                      { "name": "ovn-priv-net", "interface": "net3" , "defaultGateway": "false"}]}'
    spec:
      containers:
      - name: ovn4nfv-deployment-2-annotation
        image: "busybox"
        command: ["top"]
        stdin: true
        tty: true