mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
Changing CentOS install of master and nodes
The testing repo now had updated packages for kubernetes Also adding some options to rsync task to work with different users ssh settings
This commit is contained in:
parent
52999cd292
commit
a0c312f224
@ -1,12 +1,16 @@
|
||||
---
|
||||
- name: place ssh public key so apiserver can push certs
|
||||
- name: place ssh public key on other nodes so apiserver can push certs
|
||||
authorized_key: user=root key="{{ item }}" state=present
|
||||
with_file:
|
||||
- '/tmp/id_rsa.pub'
|
||||
changed_when: false
|
||||
|
||||
- name: Copy certificates directly from the apiserver to nodes
|
||||
synchronize: src={{ kube_cert_dir }}/{{ item }} dest={{ kube_cert_dir }}/{{ item }}
|
||||
synchronize:
|
||||
src={{ kube_cert_dir }}/{{ item }}
|
||||
dest={{ kube_cert_dir }}/{{ item }}
|
||||
rsync_timeout=30
|
||||
set_remote_user=no
|
||||
delegate_to: "{{ groups['masters'][0] }}"
|
||||
with_items:
|
||||
- "ca.crt"
|
||||
|
@ -1,5 +1,8 @@
|
||||
---
|
||||
- name: CentOS | Install kubernetes CentOS style
|
||||
yum: pkg=kubernetes state=latest enablerepo=virt7-testing
|
||||
yum:
|
||||
pkg=kubernetes-master
|
||||
state=latest
|
||||
enablerepo=virt7-testing
|
||||
notify:
|
||||
- restart daemons
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: CentOS | Install kubernetes CentOS style
|
||||
yum: pkg=kubernetes state=latest enablerepo=virt7-testing
|
||||
yum: pkg=kubernetes-node state=latest enablerepo=virt7-testing
|
||||
notify:
|
||||
- restart daemons
|
||||
|
5
contrib/ansible/vagrant/Vagrantfile
vendored
5
contrib/ansible/vagrant/Vagrantfile
vendored
@ -20,11 +20,6 @@ Vagrant.configure(2) do |config|
|
||||
node.vm.hostname = "node-#{i}.vms.local"
|
||||
node.vm.network "private_network", ip: "192.168.1.1#{i}"
|
||||
node.vm.provision :ansible do |ansible|
|
||||
ansible.groups = {
|
||||
"masters" => ["master"],
|
||||
"nodes" => ["node-1", "node-2"],
|
||||
"etcd" => ["master"]
|
||||
}
|
||||
ansible.host_key_checking = false
|
||||
ansible.extra_vars = {
|
||||
ansible_ssh_user: 'vagrant',
|
||||
|
Loading…
Reference in New Issue
Block a user