Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-wasabi committed Sep 30, 2020
1 parent cc16ecb commit c45feeb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
IMAGE_NAME = "ubuntu/bionic64"
N = 1
N = 2

Vagrant.configure("2") do |config|
config.ssh.insert_key = false

config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.memory = 2048
v.cpus = 2
end

Expand Down
15 changes: 14 additions & 1 deletion master-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
path: /etc/hosts
line: '{{ item }}'
with_items:
- '{{ node_ip }} master'
- '10.10.1.10 master'
- '10.10.1.11 node-1'
- '10.10.1.12 node-2'
- '10.10.1.13 node-3'
Expand All @@ -30,11 +30,21 @@
state: present
update_cache: yes

- name: Add an apt signing key for HELM
apt_key:
url: https://baltocdn.com/helm/signing.asc
state: present

- name: Add an apt signing key for Docker
apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
state: present

- name: Add apt repository for HELM version
apt_repository:
repo: deb https://baltocdn.com/helm/stable/debian/ all main
state: present

- name: Add apt repository for stable version
apt_repository:
repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
Expand Down Expand Up @@ -76,6 +86,8 @@
- kubelet
- kubeadm
- kubectl
- helm
- etcd-client
state: present
update_cache: yes
register: installed
Expand Down Expand Up @@ -113,6 +125,7 @@
path: /home/vagrant/.kube/config
owner: vagrant
group: vagrant
mode: 0400

- name: Install calico pod network
become: false
Expand Down
2 changes: 1 addition & 1 deletion node-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
path: /etc/hosts
line: '{{ item }}'
with_items:
- '{{ node_ip }} master'
- '10.10.1.10 master'
- '10.10.1.11 node-1'
- '10.10.1.12 node-2'
- '10.10.1.13 node-3'
Expand Down

0 comments on commit c45feeb

Please sign in to comment.