Open guidtz opened 5 years ago
Salut Guillaume,
Tu peux ajouter des nodes via le Vagrantfile dans la section boxes :
boxes = [ { :name => "k8smaster", :eth1 => "192.168.8.10", :mem => "2048", :cpu => "1", :is_master => true }, { :name => "k8sworker", :eth1 => "192.168.8.11", :mem => "4096", :cpu => "2" } ]
Pour un k8smaster il faut le flag is_master => True tu peux copier coller une des entree soit master ou worker et juste mettre un ip different dans le meme segment 192.168.8.0/24 J'ai commencer a .10 car vagrant utilise le .1 comme gateway.
Cordialement
-Pascal
On Mon., Sep. 24, 2018, 5:36 p.m. Chéramy Guillaume, < notifications@github.com> wrote:
Hello,
great works It's works very find on my Linux Mint installation. How can I add one or more k8sworker ?
And by extension a k8smaster
Thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/xbernpa/vagrant-kubernetes-lab/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ9I2Ci6gRqTshXvWPu8a0h88cc-I51pks5ueVBlgaJpZM4W3f-u .
Ok ça marche avec un worker, je testerais ce soir avec l'ajout d'un manager. Par contre il faut que je diminue la taille mémoire des vms, quelle est la taille mini pour un worker et un manager ? Sachant que c'est juste pour faire des tests et des demo. Merci pour ce travail.
Je viens d'essayer avec un second master et voici ce que j'obtiens
$ kubectl get nodes NAME STATUS ROLES AGE VERSION k8smaster-02 Ready master 26m v1.12.0
Alors que les machines sont déployées `$ vagrant status Current machine states:
k8smaster-01 running (virtualbox) k8smaster-02 running (virtualbox) k8sworker-01 running (virtualbox) k8sworker-02 running (virtualbox) `
Et ma conf `boxes = [ { :name => "k8smaster-01", :eth1 => "192.168.8.11", :mem => "1024", :cpu => "1", :is_master => true }, { :name => "k8smaster-02", :eth1 => "192.168.8.12", :mem => "1024", :cpu => "1", :is_master => true },
{
:name => "k8sworker-01",
:eth1 => "192.168.8.21",
:mem => "1048",
:cpu => "2"
},
{
:name => "k8sworker-02",
:eth1 => "192.168.8.22",
:mem => "2048",
:cpu => "2"
}
] `
J'ai loupé quelquechose ?
Hello,
great works It's works very find on my Linux Mint installation. How can I add one or more k8sworker ?
And by extension a k8smaster
Thanks