apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: kube-vip-ds
  namespace: kube-system
spec:
  selector:
    matchLabels:
      name: kube-vip-ds
  template:
    metadata:
      labels:
        name: kube-vip-ds
    spec:
      containers:
      - args:
        - start
        - -c
        - /etc/kube-vip/config.yaml
        image: harbor.apulis.cn:8443/aiarts_v1.5.0_rc8/plndr/kube-vip:0.1.8

        name: kube-vip
        securityContext:
          capabilities:
            add:
            - NET_ADMIN
            - SYS_TIME
        volumeMounts:
        - mountPath: /etc/kube-vip/
          name: config
      hostNetwork: true
      nodeSelector:
        kubernetes.io/role: master
      priorityClassName: system-node-critical
      volumes:
      - hostPath:
          path: /etc/kube-vip/
        name: config
