aboutsummaryrefslogtreecommitdiffstats
path: root/example/ovn4nfv-deployment-replica-2-withannotation.yaml
blob: fc8834972f81d665213df4af375a6945a89f511a (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
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.plugin.opnfv.org/nfn-network: '{ "type": "ovn4nfv", "interface": [{ "name": "ovn-port-net", "interface": "net0" , "defaultGateway": "false"},
                      { "name": "ovn-priv-net", "interface": "net1" , "defaultGateway": "false"}]}'
    spec:
      containers:
      - name: ovn4nfv-deployment-2-annotation
        image: "busybox"
        command: ["top"]
        stdin: true
        tty: true