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
b9ac078b
Commit
b9ac078b
authored
Aug 04, 2016
by
Matt Bruzek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating the util.sh script to work with latest version of juju.
parent
42a12a4c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
local.yaml.base
cluster/juju/bundles/local.yaml.base
+3
-3
metadata.yaml
cluster/juju/layers/kubernetes/metadata.yaml
+1
-1
util.sh
cluster/juju/util.sh
+6
-3
No files found.
cluster/juju/bundles/local.yaml
→
cluster/juju/bundles/local.yaml
.base
View file @
b9ac078b
services:
kubernetes:
charm
:
local:trusty
/kubernetes
charm:
__CHARM_DIR__/builds
/kubernetes
annotations:
"gui-x": "600"
"gui-y": "0"
expose: true
num_units: 2
etcd:
charm
:
cs:~containers/
trusty/
etcd
charm: cs:~containers/etcd
annotations:
"gui-x": "300"
"gui-y": "0"
...
...
@@ -15,4 +15,4 @@ services:
relations:
- - "kubernetes:etcd"
- "etcd:db"
series
:
trusty
series:
xenial
cluster/juju/layers/kubernetes/metadata.yaml
View file @
b9ac078b
...
...
@@ -16,4 +16,4 @@ requires:
etcd
:
interface
:
etcd
series
:
-
'
trusty'
-
xenial
cluster/juju/util.sh
View file @
b9ac078b
...
...
@@ -18,7 +18,7 @@
set
-o
errexit
set
-o
nounset
set
-o
pipefail
#
set -o xtrace
set
-o
xtrace
UTIL_SCRIPT
=
$(
readlink
-m
"
${
BASH_SOURCE
}
"
)
JUJU_PATH
=
$(
dirname
${
UTIL_SCRIPT
})
...
...
@@ -38,7 +38,7 @@ function build-local() {
# This used to build the kubernetes project. Now it rebuilds the charm(s)
# living in `cluster/juju/layers`
charm build
-o
$JUJU_REPOSITORY
-s
trusty
${
JUJU_PATH
}
/layers/kubernete
s
charm build
${
JUJU_PATH
}
/layers/kubernetes
-o
$JUJU_REPOSITORY
-r
--no-local-layer
s
}
function
detect-master
()
{
...
...
@@ -69,6 +69,9 @@ function detect-nodes() {
function
kube-up
()
{
build-local
# Replace the charm directory in the bundle.
sed
"s|__CHARM_DIR__|
${
JUJU_REPOSITORY
}
|"
<
${
KUBE_BUNDLE_PATH
}
.base
>
${
KUBE_BUNDLE_PATH
}
# The juju-deployer command will deploy the bundle and can be run
# multiple times to continue deploying the parts that fail.
juju deploy
${
KUBE_BUNDLE_PATH
}
...
...
@@ -117,7 +120,7 @@ function sleep-status() {
while
[[
$i
<
$maxtime
&&
-z
$jujustatus
]]
;
do
sleep
15
i
+
=
15
i
=
$((
i
+
15
))
jujustatus
=
$(${
JUJU_PATH
}
/identify-leaders.py
)
export
KUBE_MASTER_NAME
=
${
jujustatus
}
done
...
...
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