Skip to content

Commit

Permalink
kubeadm
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jan 5, 2018
1 parent da04460 commit efab51c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion ansible/ansible-kubeadm-cluster
Submodule ansible-kubeadm-cluster deleted from 24f8d1
4 changes: 3 additions & 1 deletion ansible/cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@
tags:
- token

- hosts: master
- hosts: cluster
become: true
roles:
- role: kubeadm_install
tags:
- repo
- master
- nodes

- hosts: cluster
tasks:
# Implements Step 2 of http://kubernetes.io/docs/getting-started-guides/kubeadm/
- name: Initialize master
Expand Down
3 changes: 3 additions & 0 deletions ansible/roles/kubeadm_install/tasks/CentOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
- name: disable swap
command: swapoff -a

- name: enable iptables briding
shell: echo '1' > /proc/sys/net/bridge/bridge-nf-call-iptables

- name: checkmaster
command: hostname {{ master }}
when: ansible_default_ipv4.address == "{{ master_ip }}"
Expand Down

0 comments on commit efab51c

Please sign in to comment.