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
d2284fee
Commit
d2284fee
authored
Apr 23, 2015
by
Lénaïc Huard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "libvirt-coreos cluster: Fix etcd versions incompatibility issue"
This reverts commit
11556dc9
.
parent
e0347124
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
47 deletions
+1
-47
.gitignore
cluster/libvirt-coreos/.gitignore
+0
-1
coreos.xml
cluster/libvirt-coreos/coreos.xml
+0
-5
user_data.yml
cluster/libvirt-coreos/user_data.yml
+1
-23
util.sh
cluster/libvirt-coreos/util.sh
+0
-18
No files found.
cluster/libvirt-coreos/.gitignore
View file @
d2284fee
/libvirt_storage_pool/
/libvirt_storage_pool/
/coreos_production_qemu_image.img.bz2
/coreos_production_qemu_image.img.bz2
/etcd-v2.0.9-linux-amd64.tar.gz
cluster/libvirt-coreos/coreos.xml
View file @
d2284fee
...
@@ -35,11 +35,6 @@
...
@@ -35,11 +35,6 @@
<target
dir=
'kubernetes'
/>
<target
dir=
'kubernetes'
/>
<readonly/>
<readonly/>
</filesystem>
</filesystem>
<filesystem
type=
'mount'
accessmode=
'squash'
>
<source
dir=
'${etcd_dir}'
/>
<target
dir=
'etcd'
/>
<readonly/>
</filesystem>
<interface
type=
'network'
>
<interface
type=
'network'
>
<mac
address=
'52:54:00:00:00:${i}'
/>
<mac
address=
'52:54:00:00:00:${i}'
/>
<source
network=
'kubernetes_global'
/>
<source
network=
'kubernetes_global'
/>
...
...
cluster/libvirt-coreos/user_data.yml
View file @
d2284fee
...
@@ -17,22 +17,11 @@ coreos:
...
@@ -17,22 +17,11 @@ coreos:
etcd
:
etcd
:
name
:
${name}
name
:
${name}
addr
:
${public_ip}:4001
addr
:
${public_ip}:4001
#
bind-addr: 0.0.0.0
bind-addr
:
0.0.0.0
peer-addr
:
${public_ip}:7001
peer-addr
:
${public_ip}:7001
# peers: {etcd_peers}
# peers: {etcd_peers}
discovery
:
${discovery}
discovery
:
${discovery}
units
:
units
:
-
name
:
etcd.service
drop-ins
:
-
name
:
opt-etcd2.conf
content
:
|
[Unit]
After=opt-etcd.mount
Requires=opt-etcd.mount
[Service]
ExecStart=
ExecStart=/opt/etcd/bin/etcd
-
name
:
static.network
-
name
:
static.network
command
:
start
command
:
start
content
:
|
content
:
|
...
@@ -114,17 +103,6 @@ coreos:
...
@@ -114,17 +103,6 @@ coreos:
Where=/opt/kubernetes
Where=/opt/kubernetes
Options=ro,trans=virtio,version=9p2000.L
Options=ro,trans=virtio,version=9p2000.L
Type=9p
Type=9p
-
name
:
opt-etcd.mount
command
:
start
content
:
|
[Unit]
ConditionVirtualization=|vm
[Mount]
What=etcd
Where=/opt/etcd
Options=ro,trans=virtio,version=9p2000.L
Type=9p
update
:
update
:
group
:
${COREOS_CHANNEL:-alpha}
group
:
${COREOS_CHANNEL:-alpha}
reboot-strategy
:
off
reboot-strategy
:
off
...
...
cluster/libvirt-coreos/util.sh
View file @
d2284fee
...
@@ -26,8 +26,6 @@ export LIBVIRT_DEFAULT_URI=qemu:///system
...
@@ -26,8 +26,6 @@ export LIBVIRT_DEFAULT_URI=qemu:///system
readonly
POOL
=
kubernetes
readonly
POOL
=
kubernetes
readonly
POOL_PATH
=
"
$(
cd
$ROOT
&&
pwd
)
/libvirt_storage_pool"
readonly
POOL_PATH
=
"
$(
cd
$ROOT
&&
pwd
)
/libvirt_storage_pool"
ETCD_VERSION
=
${
ETCD_VERSION
:-
v2
.0.9
}
# join <delim> <list...>
# join <delim> <list...>
# Concatenates the list elements with the delimiter passed as first parameter
# Concatenates the list elements with the delimiter passed as first parameter
#
#
...
@@ -96,9 +94,6 @@ function destroy-pool {
...
@@ -96,9 +94,6 @@ function destroy-pool {
virsh vol-delete
$vol
--pool
$POOL
virsh vol-delete
$vol
--pool
$POOL
done
done
rm
-rf
"
$POOL_PATH
"
/etcd/
*
virsh vol-delete etcd
--pool
$POOL
||
true
[[
"
$1
"
==
'keep_base_image'
]]
&&
return
[[
"
$1
"
==
'keep_base_image'
]]
&&
return
set
+e
set
+e
...
@@ -146,18 +141,6 @@ function initialize-pool {
...
@@ -146,18 +141,6 @@ function initialize-pool {
render-template
"
$ROOT
/skydns-rc.yaml"
>
"
$POOL_PATH
/kubernetes/addons/skydns-rc.yaml"
render-template
"
$ROOT
/skydns-rc.yaml"
>
"
$POOL_PATH
/kubernetes/addons/skydns-rc.yaml"
fi
fi
mkdir
-p
"
$POOL_PATH
/etcd"
if
[[
!
-f
"
$ROOT
/etcd-
${
ETCD_VERSION
}
-linux-amd64.tar.gz"
]]
;
then
wget
-P
"
$ROOT
"
https://github.com/coreos/etcd/releases/download/
${
ETCD_VERSION
}
/etcd-
${
ETCD_VERSION
}
-linux-amd64
.tar.gz
fi
if
[[
"
$ROOT
/etcd-
${
ETCD_VERSION
}
-linux-amd64.tar.gz"
-nt
"
$POOL_PATH
/etcd/etcd"
]]
;
then
tar
-x
-C
"
$POOL_PATH
/etcd"
-f
"
$ROOT
/etcd-
${
ETCD_VERSION
}
-linux-amd64.tar.gz"
etcd-
${
ETCD_VERSION
}
-linux-amd64
rm
-rf
"
$POOL_PATH
/etcd/bin/*"
mkdir
-p
"
$POOL_PATH
/etcd/bin"
mv
"
$POOL_PATH
"
/etcd/etcd-
${
ETCD_VERSION
}
-linux-amd64
/
{
etcd,etcdctl
}
"
$POOL_PATH
/etcd/bin"
rm
-rf
"
$POOL_PATH
/etcd/etcd-
${
ETCD_VERSION
}
-linux-amd64"
fi
virsh pool-refresh
$POOL
virsh pool-refresh
$POOL
}
}
...
@@ -205,7 +188,6 @@ function kube-up {
...
@@ -205,7 +188,6 @@ function kube-up {
readonly
ssh_keys
=
"
$(
cat
~/.ssh/id_
*
.pub |
sed
's/^/ - /'
)
"
readonly
ssh_keys
=
"
$(
cat
~/.ssh/id_
*
.pub |
sed
's/^/ - /'
)
"
readonly
kubernetes_dir
=
"
$POOL_PATH
/kubernetes"
readonly
kubernetes_dir
=
"
$POOL_PATH
/kubernetes"
readonly
etcd_dir
=
"
$POOL_PATH
/etcd"
readonly
discovery
=
$(
curl
-s
https://discovery.etcd.io/new
)
readonly
discovery
=
$(
curl
-s
https://discovery.etcd.io/new
)
readonly
machines
=
$(
join
,
"
${
KUBE_MINION_IP_ADDRESSES
[@]
}
"
)
readonly
machines
=
$(
join
,
"
${
KUBE_MINION_IP_ADDRESSES
[@]
}
"
)
...
...
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