Browse Source

add hostport, fix nodeselector

Grega Bremec 2 years ago
parent
commit
9d2ae8eca2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      deployment/exporter/base/daemonset.yml

+ 4 - 0
deployment/exporter/base/daemonset.yml

@@ -92,6 +92,8 @@ spec:
             - name: http
               protocol: TCP
               containerPort: 8080
+              # Need some host port because hostNetwork==true.
+              hostPort: 28080
           #livenessProbe: {}
           #   /q/metrics returning 200?
           #readinessProbe: {}
@@ -120,6 +122,8 @@ spec:
               - matchExpressions:
                   - key: node-role.kubernetes.io/worker
                     operator: Exists
+      # We have affinity settings.
+      nodeSelector: {}
       # VERY important, these three!
       hostIPC: true
       hostNetwork: true