Browse Source

container and host port must match

Grega Bremec 2 năm trước cách đây
mục cha
commit
6b3f07d2fb

+ 2 - 1
deployment/exporter/base/daemonset.yml

@@ -91,7 +91,8 @@ spec:
           ports:
           ports:
             - name: http
             - name: http
               protocol: TCP
               protocol: TCP
-              containerPort: 8080
+              # Must be the same as hostPort with hostNetwork==true.
+              containerPort: 28080
               # Need some host port because hostNetwork==true.
               # Need some host port because hostNetwork==true.
               hostPort: 28080
               hostPort: 28080
           #livenessProbe: {}
           #livenessProbe: {}