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
95ec9451
Commit
95ec9451
authored
Jul 18, 2014
by
Jeff Mendoza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename and move Azure scripts.
parent
0d618788
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
14 deletions
+16
-14
kube-down.sh
cluster/azure/kube-down.sh
+2
-2
kube-up.sh
cluster/azure/kube-up.sh
+6
-6
download-release.sh
cluster/azure/templates/download-release.sh
+0
-0
salt-master.sh
cluster/azure/templates/salt-master.sh
+0
-0
salt-minion.sh
cluster/azure/templates/salt-minion.sh
+0
-0
dev-build-and-up.sh
hack/azure/dev-build-and-up.sh
+4
-2
config.sh
release/azure/config.sh
+0
-0
release.sh
release/azure/release.sh
+4
-4
No files found.
cluster/
kube-down-azure
.sh
→
cluster/
azure/kube-down
.sh
View file @
95ec9451
...
...
@@ -16,8 +16,8 @@
# Tear down a Kubernetes cluster.
SCRIPT_DIR
=
$(
CDPATH
=
""
cd
$(
dirname
$0
)
;
pwd
)
source
$SCRIPT_DIR
/../
release/config-azure
.sh
source
$SCRIPT_DIR
/util.sh
source
$SCRIPT_DIR
/../
../release/azure/config
.sh
source
$SCRIPT_DIR
/
../
util.sh
echo
"Bringing down cluster"
azure vm delete
$MASTER_NAME
-b
-q
...
...
cluster/
kube-up-azure
.sh
→
cluster/
azure/kube-up
.sh
View file @
95ec9451
...
...
@@ -21,15 +21,15 @@ set -eu
set
-o
pipefail
SCRIPT_DIR
=
$(
CDPATH
=
""
cd
$(
dirname
$0
)
;
pwd
)
source
$SCRIPT_DIR
/../
release/config-azure
.sh
source
$SCRIPT_DIR
/util.sh
source
$SCRIPT_DIR
/../
../release/azure/config
.sh
source
$SCRIPT_DIR
/
../
util.sh
KUBE_TEMP
=
$(
mktemp
-d
-t
kubernetes.XXXXXX
)
trap
"rm -rf
${
KUBE_TEMP
}
"
EXIT
get-password
echo
"Using password:
$user
:
$passwd
"
python
$SCRIPT_DIR
/../third_party/htpasswd/htpasswd.py
-b
-c
\
python
$SCRIPT_DIR
/../
../
third_party/htpasswd/htpasswd.py
-b
-c
\
${
KUBE_TEMP
}
/htpasswd
$user
$passwd
HTPASSWD
=
$(
cat
${
KUBE_TEMP
}
/htpasswd
)
...
...
@@ -39,8 +39,8 @@ HTPASSWD=$(cat ${KUBE_TEMP}/htpasswd)
echo
"MASTER_NAME=
${
MASTER_NAME
}
"
echo
"MASTER_RELEASE_TAR=
${
FULL_URL
}
"
echo
"MASTER_HTPASSWD='
${
HTPASSWD
}
'"
grep
-v
"^#"
$SCRIPT_DIR
/templates/download-release
-azure
.sh
grep
-v
"^#"
$SCRIPT_DIR
/templates/salt-master
-azure
.sh
grep
-v
"^#"
$SCRIPT_DIR
/templates/download-release.sh
grep
-v
"^#"
$SCRIPT_DIR
/templates/salt-master.sh
)
>
${
KUBE_TEMP
}
/master-start.sh
echo
"Starting VMs"
...
...
@@ -81,7 +81,7 @@ for (( i=0; i<${#MINION_NAMES[@]}; i++)); do
echo
"#!/bin/bash"
echo
"MASTER_NAME=
${
MASTER_NAME
}
"
echo
"MINION_IP_RANGE=
${
MINION_IP_RANGES
[
$i
]
}
"
grep
-v
"^#"
$SCRIPT_DIR
/templates/salt-minion
-azure
.sh
grep
-v
"^#"
$SCRIPT_DIR
/templates/salt-minion.sh
)
>
${
KUBE_TEMP
}
/minion-start-
${
i
}
.sh
azure vm create
\
...
...
cluster/
templates/download-release-azur
e.sh
→
cluster/
azure/templates/download-releas
e.sh
View file @
95ec9451
File moved
cluster/
templates/salt-master-azure
.sh
→
cluster/
azure/templates/salt-master
.sh
View file @
95ec9451
File moved
cluster/
templates/salt-minion-azure
.sh
→
cluster/
azure/templates/salt-minion
.sh
View file @
95ec9451
File moved
hack/
dev-build-and-up-azure
.sh
→
hack/
azure/dev-build-and-up
.sh
View file @
95ec9451
...
...
@@ -17,8 +17,10 @@
# This script will build a dev release and bring up a new cluster with that
# release.
SCRIPT_DIR
=
$(
CDPATH
=
""
cd
$(
dirname
$0
)
;
pwd
)
# First build a release
$
(
dirname
$0
)
/../release/release-azur
e.sh
$
SCRIPT_DIR
/../../release/azure/releas
e.sh
# Now bring a new cluster up with that release.
$
(
dirname
$0
)
/../cluster/kube-up-azure
.sh
$
SCRIPT_DIR
/../../cluster/azure/kube-up
.sh
release/
config-azure
.sh
→
release/
azure/config
.sh
View file @
95ec9451
File moved
release/
release-azur
e.sh
→
release/
azure/releas
e.sh
View file @
95ec9451
...
...
@@ -25,10 +25,10 @@ function json_val () {
python
-c
'import json,sys;obj=json.load(sys.stdin);print obj'
$1
''
;
}
source
$SCRIPT_DIR
/config
-azure
.sh
source
$SCRIPT_DIR
/../cluster/
${
KUBE_CONFIG_FILE
-
"config-default.sh"
}
source
$SCRIPT_DIR
/config.sh
source
$SCRIPT_DIR
/../
../
cluster/
${
KUBE_CONFIG_FILE
-
"config-default.sh"
}
$SCRIPT_DIR
/build-release.sh
$INSTANCE_PREFIX
$SCRIPT_DIR
/
../
build-release.sh
$INSTANCE_PREFIX
if
[
-z
"
$(
azure storage account show
$STG_ACCOUNT
2>/dev/null |
\
grep
data
)
"
]
;
then
...
...
@@ -59,6 +59,6 @@ fi
azure storage blob upload
\
-a
$STG_ACCOUNT
\
-k
"
$stg_key
"
\
$SCRIPT_DIR
/../output/release/master-release.tgz
\
$SCRIPT_DIR
/../
../
output/release/master-release.tgz
\
$CONTAINER
\
master-release.tgz
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