Skip to content

deploy k8s master and worker nodes automatically.

Notifications You must be signed in to change notification settings

luckydogxf/ansible-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

ansible-k8s

deploy k8s master and worker nodes automatically.

how to run it ?

  1. create your own site.yml like:
---
- name: testing...
  hosts: k8s
  gather_facts: yes
  ignore_errors: yes
  remote_user: ubuntu
  become: yes
  roles:
    - k8s-setup
    - .... <Other roles>
  environment:
    http_proxy: http://172.16.232.21:8088
    https_proxy: http://172.16.232.21:8088
    no_proxy: no_proxy=10.96.0.0/12,172.16.232.234,172.16.232.21,172.16.215.0/24,172.16.215.81,.xyz.com,10.244.0.0/16,127.0.0.1
    
  1. Build your own inventory accordingly.
[all:vars]
# comment out if you use SSH Keypair.
ansible_ssh_pass='XXXXXX'

[pacemaker]
172.16.215.41
172.16.215.63
172.16.215.155

[k8s]
172.16.215.79
172.16.215.77
  1. run it
ansible-playbook -i hosts site.yml -b -u ubuntu
  1. Note User ubuntu must exist in target hosts and has sudo privileges.

About

deploy k8s master and worker nodes automatically.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages