Commit f43bc07b authored by kaiyou's avatar kaiyou
Browse files

Properly convert the kubelet port

parent 06f3b35f
Pipeline #722 failed with stage
in 41 seconds
......@@ -8,6 +8,7 @@ import (
"path/filepath"
"strings"
"time"
"strconv"
"github.com/opencontainers/runc/libcontainer/system"
"github.com/rancher/k3s/pkg/daemons/config"
......@@ -58,7 +59,7 @@ func startKubeProxy(cfg *config.Agent) {
func startKubelet(cfg *config.Agent) {
argsMap := map[string]string{
"healthz-bind-address": "127.0.0.1",
"port": string(cfg.KubeletPort),
"port": strconv.Itoa(cfg.KubeletPort),
"read-only-port": "0",
"cluster-domain": cfg.ClusterDomain,
"kubeconfig": cfg.KubeConfigKubelet,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment