summaryrefslogtreecommitdiffstats
path: root/roles/nuage_master/templates/nuage-infra-pod-config-daemonset.j2
blob: 534a1517f133073439b147822926a9ae1e81a9c2 (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
# This manifest installs Nuage Infra pod on
# each worker node in an Openshift cluster.
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
  name: nuage-infra-ds
  namespace: kube-system
  labels:
    k8s-app: nuage-infra-ds
spec:
  selector:
    matchLabels:
      k8s-app: nuage-infra-ds
  updateStrategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        k8s-app: nuage-infra-ds
    spec:
      tolerations:
        - key: node-role.kubernetes.io/master
          effect: NoSchedule
          operator: Exists
      containers:
        # This container spawns a Nuage Infra pod
        # on each worker node
        - name: install-nuage-infra
          image: nuage/infra:{{ nuage_infra_container_image_version }}
          command: ["/install-nuage-infra-pod.sh"]
          securityContext:
            privileged: true
          volumeMounts:
            - mountPath: /var/log
              name: log-dir
      volumes:
        - name: log-dir
          hostPath:
            path: /var/log