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

Auto-deploy templates, HA support now possible. #6

Merged
merged 21 commits into from
Jan 13, 2020

Conversation

xanmanning
Copy link
Member

This merge will bring auto-deploy templates (thanks to @nolte) and HA control nodes using a database backend or experimental dqlite.

Example playbook for HA Deployment:

- hosts: k3s_nodes
  become: true
  vars:
    molecule_is_test: true
    k3s_control_node_address: loadbalancer  # This is either DNS round-robin or a HA load balancer
    k3s_datastore_endpoint: "postgres://postgres:verybadpass@database:5432/postgres?sslmode=disable"  # This is meant to be a HA PostgreSQL database, can by MySQL or etcd.
  pre_tasks:
    # You would do this in inventory or host_vars/ however this will quickly set two nodes to a control node.
    - name: Set each node to be a control node
      set_fact:
        k3s_control_node: true
      when: inventory_hostname in ['node1', 'node3']
  roles:
    - role: xanmanning.k3s

xanmanning and others added 20 commits January 11, 2020 12:31
Co-Authored-By: Xan Manning <xan.manning@gmail.com>
Co-Authored-By: Xan Manning <xan.manning@gmail.com>
Co-Authored-By: Xan Manning <xan.manning@gmail.com>
Co-Authored-By: Xan Manning <xan.manning@gmail.com>
Co-Authored-By: Xan Manning <xan.manning@gmail.com>
Add Support for Auto-Deploying Manifests
@xanmanning xanmanning added the enhancement New feature or request label Jan 13, 2020
@xanmanning xanmanning self-assigned this Jan 13, 2020
@xanmanning xanmanning merged commit df253b5 into master Jan 13, 2020
@xanmanning xanmanning deleted the multi_master_support branch January 18, 2020 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants