aboutsummaryrefslogtreecommitdiffstats
path: root/resources/templates/kubernetes/pods/contiv-vswitch.yaml
blob: e9873071950805a0cd83dd9d64e04b68c3e91091 (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
52
53
54
apiVersion: v1
kind: Pod
metadata:
  name: vswitch-vpp
  namespace: csit
spec:
  hostNetwork: true
  containers:
    - name: "vswitch"
      image: prod_vpp_agent
      imagePullPolicy: IfNotPresent
      securityContext:
        privileged: true
      ports:
        - containerPort: 5002
        - containerPort: 9191
      readinessProbe:
        httpGet:
          path: /readiness
          port: 9191
        periodSeconds: 1
      livenessProbe:
        httpGet:
          path: /liveness
          port: 9191
        periodSeconds: 1
        initialDelaySeconds: 15
      env:
        - name: MICROSERVICE_LABEL
          value: vswitch
        - name: INITIAL_LOGLVL
          value: debug
      volumeMounts:
        - name: vpp-config
          mountPath: /etc/vpp
        - name: agent-config
          mountPath: /opt/vpp-agent/dev
        - name: memif-sockets
          mountPath: /tmp
        - name: device-uio
          mountPath: /dev
  volumes:
  - name: vpp-config
    configMap:
      name: vswitch-vpp-cfg
  - name: agent-config
    configMap:
      name: vswitch-agent-cfg
  - name: memif-sockets
    hostPath:
      path: /tmp
  - name: device-uio
    hostPath:
      path: /dev