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
5bacc483
Commit
5bacc483
authored
Jun 17, 2016
by
Colin Hom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Federation e2e supports aws
parent
9122e745
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
util.sh
cluster/aws/util.sh
+1
-1
common.sh
federation/cluster/common.sh
+24
-0
federation-apiserver-deployment.yaml
federation/manifests/federation-apiserver-deployment.yaml
+4
-0
No files found.
cluster/aws/util.sh
View file @
5bacc483
...
@@ -1491,7 +1491,7 @@ function test-build-release {
...
@@ -1491,7 +1491,7 @@ function test-build-release {
# Assumed vars:
# Assumed vars:
# Variables from config.sh
# Variables from config.sh
function
test-setup
{
function
test-setup
{
"
${
KUBE_ROOT
}
/cluster/kube-up.sh"
.
"
${
KUBE_ROOT
}
/cluster/kube-up.sh"
VPC_ID
=
$(
get_vpc_id
)
VPC_ID
=
$(
get_vpc_id
)
detect-security-groups
detect-security-groups
...
...
federation/cluster/common.sh
View file @
5bacc483
...
@@ -135,6 +135,30 @@ function create-federation-api-objects {
...
@@ -135,6 +135,30 @@ function create-federation-api-objects {
fi
fi
sleep
5
sleep
5
done
done
# Poll until DNS record for federation-apiserver is propagated
# TODO(colhom): REQUIREMENT for any other providers which use a DNS name for routing to loadbalancers
# right now it's just AWS that does this.
which nslookup
set
+o errexit
if
[[
"
$KUBERNETES_PROVIDER
"
==
"aws"
]]
;
then
for
i
in
{
1..60
}
;
do
echo
"attempting to nslookup
${
FEDERATION_API_HOST
}
(
$i
/ 60)"
nslookup
"
${
FEDERATION_API_HOST
}
"
if
[[
$?
-eq
0
]]
;
then
echo
"Lookup for
${
FEDERATION_API_HOST
}
successful!"
break
fi
sleep
10
done
if
[[
$i
-eq
60
]]
;
then
echo
"Failed to resolve A record for
${
FEDERATION_API_HOST
}
. Will exit"
exit
1
fi
fi
set
-o
errexit
KUBE_MASTER_IP
=
"
${
FEDERATION_API_HOST
}
:443"
KUBE_MASTER_IP
=
"
${
FEDERATION_API_HOST
}
:443"
else
else
echo
"provider
${
KUBERNETES_PROVIDER
}
is not (yet) supported for e2e testing"
echo
"provider
${
KUBERNETES_PROVIDER
}
is not (yet) supported for e2e testing"
...
...
federation/manifests/federation-apiserver-deployment.yaml
View file @
5bacc483
...
@@ -22,7 +22,11 @@ spec:
...
@@ -22,7 +22,11 @@ spec:
-
--etcd-servers=http://localhost:2379
-
--etcd-servers=http://localhost:2379
-
--service-cluster-ip-range={{.FEDERATION_SERVICE_CIDR}}
-
--service-cluster-ip-range={{.FEDERATION_SERVICE_CIDR}}
-
--secure-port=443
-
--secure-port=443
{{
if eq .KUBERNETES_PROVIDER "aws"
}}
-
--external-hostname={{.FEDERATION_API_HOST}}
{{
else
}}
-
--advertise-address={{.FEDERATION_API_HOST}}
-
--advertise-address={{.FEDERATION_API_HOST}}
{{
end
}}
# TODO: --admission-control values must be set when support is added for each type of control.
# TODO: --admission-control values must be set when support is added for each type of control.
-
--token-auth-file=/srv/kubernetes/known-tokens.csv
-
--token-auth-file=/srv/kubernetes/known-tokens.csv
ports
:
ports
:
...
...
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