Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a0c312f2
Commit
a0c312f2
authored
Jun 25, 2015
by
Jeff Bean
Committed by
Jeffrey Bean
Jun 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
parent
52999cd2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
place_certs.yml
contrib/ansible/roles/kubernetes/tasks/place_certs.yml
+6
-2
centos.yml
contrib/ansible/roles/master/tasks/centos.yml
+4
-1
centos.yml
contrib/ansible/roles/node/tasks/centos.yml
+1
-1
Vagrantfile
contrib/ansible/vagrant/Vagrantfile
+0
-5
No files found.
contrib/ansible/roles/kubernetes/tasks/place_certs.yml
View file @
a0c312f2
---
-
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"
...
...
contrib/ansible/roles/master/tasks/centos.yml
View file @
a0c312f2
---
-
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
contrib/ansible/roles/node/tasks/centos.yml
View file @
a0c312f2
---
-
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
contrib/ansible/vagrant/Vagrantfile
View file @
a0c312f2
...
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment