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
c7ee1a07
Commit
c7ee1a07
authored
Oct 07, 2016
by
Colin Hom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! set advertise address if not ip address
parent
5039d93c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
common.sh
federation/cluster/common.sh
+4
-4
federation-apiserver-deployment.yaml
federation/manifests/federation-apiserver-deployment.yaml
+3
-0
No files found.
federation/cluster/common.sh
View file @
c7ee1a07
...
...
@@ -109,7 +109,7 @@ function create-federation-api-objects {
export
FEDERATION_API_HOST
=
""
export
KUBE_MASTER_IP
=
""
local
is_dns_name
=
"false"
export
IS_DNS_NAME
=
"false"
if
[[
"
$KUBERNETES_PROVIDER
"
==
"vagrant"
]]
;
then
# The vagrant approach is to use a nodeport service, and point kubectl at one of the nodes
$template
"
${
manifests_root
}
/federation-apiserver-nodeport-service.yaml"
|
$host_kubectl
create
-f
-
...
...
@@ -121,7 +121,7 @@ function create-federation-api-objects {
# Any providers where ingress is a DNS name should tick this box.
# TODO(chom): attempt to do this automatically
if
[[
"
$KUBERNETES_PROVIDER
"
==
"aws"
]]
;
then
is_dns_name
=
"true"
IS_DNS_NAME
=
"true"
fi
# any capable providers should use a loadbalancer service
# we check for ingress.ip and ingress.hostname, so should work for any loadbalancer-providing provider
...
...
@@ -186,8 +186,8 @@ function create-federation-api-objects {
# Create server certificates.
ensure-temp-dir
echo
"Creating federation apiserver certs for federation api host:
${
FEDERATION_API_HOST
}
( is this a dns name?:
${
is_dns_name
}
)"
MASTER_NAME
=
"federation-apiserver"
IS_DNS_NAME
=
"
${
is_dns_name
}
"
create-federation-apiserver-certs
${
FEDERATION_API_HOST
}
echo
"Creating federation apiserver certs for federation api host:
${
FEDERATION_API_HOST
}
( is this a dns name?:
${
IS_DNS_NAME
}
)"
MASTER_NAME
=
"federation-apiserver"
create-federation-apiserver-certs
${
FEDERATION_API_HOST
}
export
FEDERATION_APISERVER_CA_CERT_BASE64
=
"
${
FEDERATION_APISERVER_CA_CERT_BASE64
}
"
export
FEDERATION_APISERVER_CERT_BASE64
=
"
${
FEDERATION_APISERVER_CERT_BASE64
}
"
export
FEDERATION_APISERVER_KEY_BASE64
=
"
${
FEDERATION_APISERVER_KEY_BASE64
}
"
...
...
federation/manifests/federation-apiserver-deployment.yaml
View file @
c7ee1a07
...
...
@@ -23,6 +23,9 @@ spec:
-
--etcd-servers=http://localhost:2379
-
--service-cluster-ip-range={{.FEDERATION_SERVICE_CIDR}}
-
--secure-port=443
{{
if eq .IS_DNS_NAME "false"
}}
-
--advertise-address={{.FEDERATION_API_HOST}}
{{
end
}}
-
--client-ca-file=/srv/kubernetes/ca.crt
-
--basic-auth-file=/srv/kubernetes/basic-auth.csv
-
--tls-cert-file=/srv/kubernetes/server.cert
...
...
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