Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory example #5

Open
metabsd opened this issue Feb 12, 2021 · 6 comments
Open

Inventory example #5

metabsd opened this issue Feb 12, 2021 · 6 comments

Comments

@metabsd
Copy link

metabsd commented Feb 12, 2021

Hi, can you share an example of your inventory please to better understand the HA section.
Good job👍

@istvano
Copy link
Owner

istvano commented Feb 12, 2021

Hi,

@eshikhov Do you think you could add an example section to the README how you set up your own HA?

btw: Thanks for adding that feature!

@eshikhov
Copy link
Contributor

enable the parameter

microk8s_enable_HA: true

add a group with hosts to the inventory file

[microk8s_HA]
node1
node2
node3

if you don't like the name of the group microk8s_HA, you can redefine it in the variable microk8s_group_HA for example microk8s_group_HA: "k8s_HA"
[k8s_HA]
node1
node2
node3

@metabsd
Copy link
Author

metabsd commented Feb 12, 2021

Would be great to support pod code, service cidr custom. Using an external load balancer. Etc...

@istvano
Copy link
Owner

istvano commented Feb 22, 2021

Thanks for adding your example

@istvano
Copy link
Owner

istvano commented Feb 22, 2021

@metabsd Do you think you could add something like that?

@terala
Copy link

terala commented Jul 19, 2024

This inventory.yaml works for me:

all:
    multinode_cluster:
      children:
        microk8s_HA:
          hosts:
            node3:
            node4:
            node5:
        microk8s_WORKERS:
          hosts:
            node1:
            node2:

    k8s:
      children:
        single_node_clusters:
        multinode_cluster:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants