Skip to content

Commit 3a4e6e6

Browse files
committed
chore: Remove kube-proxy
1 parent 9007c65 commit 3a4e6e6

6 files changed

Lines changed: 1 addition & 237 deletions

File tree

cmd/kubesolo/main.go

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"github.com/portainer/kubesolo/pkg/kubernetes/apiserver"
2424
"github.com/portainer/kubesolo/pkg/kubernetes/controller"
2525
"github.com/portainer/kubesolo/pkg/kubernetes/kubelet"
26-
"github.com/portainer/kubesolo/pkg/kubernetes/kubeproxy"
2726
"github.com/portainer/kubesolo/pkg/runtime/containerd"
2827
"github.com/portainer/kubesolo/types"
2928
"github.com/rs/zerolog/log"
@@ -59,7 +58,6 @@ var (
5958
apiServerReadyCh = make(chan struct{})
6059
kubeletReadyCh = make(chan struct{})
6160
controllerReadyCh = make(chan struct{})
62-
kubeproxyReadyCh = make(chan struct{})
6361
)
6462

6563
// service creates a new kubesolo application
@@ -102,7 +100,7 @@ func main() {
102100
}
103101

104102
// run is the main function for the kubesolo application
105-
// the list of services; containerd, kine, apiserver, controller, kubelet, kubeproxy is started in the order of dependency
103+
// the list of services; containerd, kine, apiserver, controller, kubelet is started in the order of dependency
106104
// coredns and portainer edge agent (only when the portainer edge id and key are provided) are deployed last
107105
func (s *kubesolo) run() {
108106
ctx, cancel := context.WithCancel(context.Background())
@@ -188,16 +186,6 @@ func (s *kubesolo) run() {
188186
},
189187
readyCh: kubeletReadyCh,
190188
},
191-
{
192-
name: "kubeproxy",
193-
start: func() {
194-
kubeproxyService := kubeproxy.NewService(ctx, cancel, kubeproxyReadyCh, s.embedded.AdminKubeconfigFile)
195-
s.wg.Go(func() {
196-
kubeproxyService.Run(kubeletReadyCh)
197-
})
198-
},
199-
readyCh: kubeproxyReadyCh,
200-
},
201189
}
202190

203191
for _, svc := range services {

pkg/kubernetes/kubeproxy/executor.go

Lines changed: 0 additions & 69 deletions
This file was deleted.

pkg/kubernetes/kubeproxy/flags.go

Lines changed: 0 additions & 27 deletions
This file was deleted.

pkg/kubernetes/kubeproxy/health.go

Lines changed: 0 additions & 22 deletions
This file was deleted.

pkg/kubernetes/kubeproxy/rbac.go

Lines changed: 0 additions & 81 deletions
This file was deleted.

pkg/kubernetes/kubeproxy/service.go

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)