Skip to content

Commit

Permalink
fix:调整polaris-sidecar-init的 Dockerfile 依赖 alpine 版本,避免 iptables 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun authored Mar 19, 2024
1 parent 34d0fc4 commit 04fe683
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ORG = polarismesh
REPO = polaris-controller
SIDECAR_INIT_REPO = polaris-sidecar-init
ENVOY_SIDECAR_INIT_REPO = polaris-envoy-bootstrap-generator
IMAGE_TAG = v1.7.0-alpha.3
IMAGE_TAG = v1.7.1
PLATFORMS = linux/amd64,linux/arm64

.PHONY: all
Expand Down
2 changes: 2 additions & 0 deletions cmd/polaris-controller/app/polaris-controller-manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,8 @@ func registerController(c *options.KubeControllerManagerConfiguration, provider
req.Host = podIP
req.Port = int(c.Generic.Port)
req.SetTTL(5)
// 开启自动上报心跳
req.AutoHeartbeat = true

_, err := provider.RegisterInstance(req)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion sidecar/polaris-sidecar-init/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

FROM alpine:latest
FROM alpine:3.18.6

# Copy Startup Script
COPY start.sh /start.sh
Expand Down

0 comments on commit 04fe683

Please sign in to comment.