kind: DaemonSet
apiVersion: apps/v1
metadata:
  name: gluster-healthz
  namespace: kube-system
  labels:
    app: gluster-healthz
spec:
  selector:
    matchLabels:
      app: gluster-healthz
  template:
    metadata:
      labels:
        app: gluster-healthz
      annotations:
        kismatic/version: "{{ kismatic_short_version }}"
    spec:
      containers:
        - name: tcp-healthz
          image: "{{ images.apprenda_tcp_healthz }}"
          command: ["/exechealthz"]
          args:
            - -port=8081
            - -cmd=/tcp-healthz-amd64 --ports 111,2049,38465,38466,38468,38469
          ports:
            - containerPort: 8081
              protocol: TCP
          readinessProbe:
            httpGet:
              path: /healthz
              port: 8081
            initialDelaySeconds: 5
            timeoutSeconds: 2
      hostNetwork: true
      nodeSelector:
        kismatic/storage: "true"
