Hi Jaejong

You can login to the control node from the Cloudstack management server

http://docs.cloudstack.apache.org/en/4.19.0.0/plugins/cloudstack-kubernetes-service.html#kubernetes-clusters


Example

ssh -i /var/cloudstack/management/.ssh/id_rsa -p 2223 
cloud@<mailto:cloud@10.0.54.133><Public ip address of the virtual router>

cloud@gh-node-18eea9a312c:~$ sudo su -

root@gh-node-18eea9a312c:~# find / -name kubeadm
/opt/bin/kubeadm

root@gh-node-18eea9a312c:~# kubeadm


The kubeadm tool is present at /opt/bin

Regards
Kiran

From: jaejong <cb...@naver.com>
Date: Wednesday, 17 April 2024 at 7:40 AM
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: Re: How to kcs cluster name with supplied name?
Thank you Kiran Chavala.

Now I changed cluster name.
For users, I get Hint at  kubernetes manual.
using kubeadm kubeconfig user command

But I can't find kubeadm command from acs control panel or kcs control vm.

Where can I use the kubeadm?


 


-----Original Message-----
From: "Kiran Chavala"<kiran.chav...@shapeblue.com>
To: "users@cloudstack.apache.org"<users@cloudstack.apache.org>;
Cc:
Sent: 2024-04-15 (월) 16:06:20 (GMT+09:00)
Subject: Re: How to kcs cluster name with supplied name?

Hi Jaejong

The kuberneres/cks cluster created in Cloudstack are created via Kubeadm tool 
which always creates with the default name as kubernetes

You can rename the cluster  as per your requirement by following this article


https://medium.com/@manumv1/how-to-rename-a-kubernetes-cluster-c10db35d92aa


From kubectl perspective your kubernetes cluster can be named totally 
differently than in kubeadm-config ConfigMap. They are configured 
independently. Actually in .kube/config file you can refer to your cluster by 
any name you want, but you need to make the change both in clusters as well as 
in contexts sections.


Also you can reach out to the kubeadm community to cross check if they can 
support specifying a name during k8s cluster creation

https://github.com/kubernetes/kubeadm/issues/416



Regards
Kiran

From: jaejong <cb...@naver.com>
Date: Monday, 15 April 2024 at 5:53 AM
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: How to kcs cluster name with supplied name?
I create kcs community iso 1.28.4 on acs 4.19.0.1.

I create two clusters. The cluster name is not populated to Config.
In cluster kubeconfig, cluster name is kubernetes  and user is kubernetes-admin.
So I can not merge two into one.

I remember it is possible in previous version.

kubeconfig is created with the name I supplied when  create kubernetes cluster 
such as:
apiVersion: v1
clusters:
- cluster:
   certificate-authority-data: ...
   server: https://x.x.x.x:6443
 name: supplied-name
contexts:
- context:
   cluster: supplied-name
   user: supplied-name-admin
 name: supplied-name-admin@kubernetes
kind: Config
preferences: {}
users:
- name: supplied-name-admin
 user:----
So I can distingush two clusters.

Is there any way I can change cluster name in  kubeconfig?


Reply via email to