Hi all, I'm using a pre-built k3s image that is pr...
# k3s
f
Hi all, I'm using a pre-built k3s image that is pre-packaged by a different vendor. And I want to disable some components to make it even more lightweight. But it doesn't look like it's taking effect. See:
Copy code
root@workstation:~/workspace# k3s server --disable=traefik --disable=servicelb --disable=metrics-server --disable-network-policy --disable-cloud-controller
INFO[0000] Starting k3s v1.27.1+k3s1 (bc5b42c2)         
INFO[0000] Configuring sqlite3 database connection pooling: maxIdleConns=2, maxOpenConns=0, connMaxLifetime=0s 
INFO[0000] Configuring database table schema and indexes, this may take a moment... 
INFO[0000] Database tables and indexes are up to date   
INFO[0000] Kine available at <unix://kine.sock>           
INFO[0000] Reconciling bootstrap data between datastore and disk 
FATA[0000] starting kubernetes: preparing server: init cluster datastore and https: listen tcp :6443: bind: address already in use 
root@workstation:~/workspace# kubectl get all -n kubernetes-dashboard 
NAME                                             READY   STATUS    RESTARTS   AGE
pod/dashboard-metrics-scraper-5bc754cb48-wj525   1/1     Running   0          29m
pod/kubernetes-dashboard-7fdd869bc4-hjqmw        1/1     Running   0          29m

NAME                                TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)    AGE
service/kubernetes-dashboard        ClusterIP   10.43.76.169   <none>        443/TCP    29m
service/dashboard-metrics-scraper   ClusterIP   10.43.69.238   <none>        8000/TCP   29m

NAME                                        READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/dashboard-metrics-scraper   1/1     1            1           29m
deployment.apps/kubernetes-dashboard        1/1     1            1           29m

NAME                                                   DESIRED   CURRENT   READY   AGE
replicaset.apps/dashboard-metrics-scraper-5bc754cb48   1         1         1       29m
replicaset.apps/kubernetes-dashboard-7fdd869bc4        1         1         1       29m
root@workstation:~/workspace# kubectl get all -A | grep metrics-server
kube-system                       pod/metrics-server-54dc485875-hqvck                        1/1     Running     0          29m
kube-system            service/metrics-server                           ClusterIP      10.43.3.187     <none>        443/TCP                      29m
kube-system                       deployment.apps/metrics-server                        1/1     1            1           29m
kube-system                       replicaset.apps/metrics-server-54dc485875                        1         1         1       29m
root@workstation:~/workspace#
Do you know what needs to be done to successfully disable the metrics-server component? I was following this doc.