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
0ff81d04
Unverified
Commit
0ff81d04
authored
May 08, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
May 08, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76953 from Rand01ph/fix#69896
fix Remove hyperkube short aliases
parents
bace5054
f6bf44a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
28 deletions
+8
-28
main.go
cmd/hyperkube/main.go
+4
-24
local-up-cluster.sh
hack/local-up-cluster.sh
+4
-4
No files found.
cmd/hyperkube/main.go
View file @
0ff81d04
...
@@ -87,30 +87,10 @@ func commandFor(basename string, defaultCommand *cobra.Command, commands []func(
...
@@ -87,30 +87,10 @@ func commandFor(basename string, defaultCommand *cobra.Command, commands []func(
func
NewHyperKubeCommand
(
stopCh
<-
chan
struct
{})
(
*
cobra
.
Command
,
[]
func
()
*
cobra
.
Command
)
{
func
NewHyperKubeCommand
(
stopCh
<-
chan
struct
{})
(
*
cobra
.
Command
,
[]
func
()
*
cobra
.
Command
)
{
// these have to be functions since the command is polymorphic. Cobra wants you to be top level
// these have to be functions since the command is polymorphic. Cobra wants you to be top level
// command to get executed
// command to get executed
apiserver
:=
func
()
*
cobra
.
Command
{
apiserver
:=
func
()
*
cobra
.
Command
{
return
kubeapiserver
.
NewAPIServerCommand
(
stopCh
)
}
ret
:=
kubeapiserver
.
NewAPIServerCommand
(
stopCh
)
controller
:=
func
()
*
cobra
.
Command
{
return
kubecontrollermanager
.
NewControllerManagerCommand
()
}
// add back some unfortunate aliases that should be removed
proxy
:=
func
()
*
cobra
.
Command
{
return
kubeproxy
.
NewProxyCommand
()
}
ret
.
Aliases
=
[]
string
{
"apiserver"
}
scheduler
:=
func
()
*
cobra
.
Command
{
return
kubescheduler
.
NewSchedulerCommand
()
}
return
ret
}
controller
:=
func
()
*
cobra
.
Command
{
ret
:=
kubecontrollermanager
.
NewControllerManagerCommand
()
// add back some unfortunate aliases that should be removed
ret
.
Aliases
=
[]
string
{
"controller-manager"
}
return
ret
}
proxy
:=
func
()
*
cobra
.
Command
{
ret
:=
kubeproxy
.
NewProxyCommand
()
// add back some unfortunate aliases that should be removed
ret
.
Aliases
=
[]
string
{
"proxy"
}
return
ret
}
scheduler
:=
func
()
*
cobra
.
Command
{
ret
:=
kubescheduler
.
NewSchedulerCommand
()
// add back some unfortunate aliases that should be removed
ret
.
Aliases
=
[]
string
{
"scheduler"
}
return
ret
}
kubectlCmd
:=
func
()
*
cobra
.
Command
{
return
kubectl
.
NewDefaultKubectlCommand
()
}
kubectlCmd
:=
func
()
*
cobra
.
Command
{
return
kubectl
.
NewDefaultKubectlCommand
()
}
kubelet
:=
func
()
*
cobra
.
Command
{
return
kubelet
.
NewKubeletCommand
(
stopCh
)
}
kubelet
:=
func
()
*
cobra
.
Command
{
return
kubelet
.
NewKubeletCommand
(
stopCh
)
}
cloudController
:=
func
()
*
cobra
.
Command
{
return
cloudcontrollermanager
.
NewCloudControllerManagerCommand
()
}
cloudController
:=
func
()
*
cobra
.
Command
{
return
cloudcontrollermanager
.
NewCloudControllerManagerCommand
()
}
...
...
hack/local-up-cluster.sh
View file @
0ff81d04
...
@@ -553,7 +553,7 @@ EOF
...
@@ -553,7 +553,7 @@ EOF
fi
fi
APISERVER_LOG=${LOG_DIR}/kube-apiserver.log
APISERVER_LOG=${LOG_DIR}/kube-apiserver.log
${CONTROLPLANE_SUDO} "${GO_OUT}/hyperkube" apiserver "${authorizer_arg}" "${priv_arg}" ${runtime_config} \
${CONTROLPLANE_SUDO} "${GO_OUT}/hyperkube"
kube-
apiserver "${authorizer_arg}" "${priv_arg}" ${runtime_config} \
${cloud_config_arg} \
${cloud_config_arg} \
"${advertise_address}" \
"${advertise_address}" \
"${node_port_range}" \
"${node_port_range}" \
...
@@ -631,7 +631,7 @@ function start_controller_manager {
...
@@ -631,7 +631,7 @@ function start_controller_manager {
fi
fi
CTLRMGR_LOG=${LOG_DIR}/kube-controller-manager.log
CTLRMGR_LOG=${LOG_DIR}/kube-controller-manager.log
${CONTROLPLANE_SUDO} "${GO_OUT}/hyperkube" controller-manager \
${CONTROLPLANE_SUDO} "${GO_OUT}/hyperkube"
kube-
controller-manager \
--v="${LOG_LEVEL}" \
--v="${LOG_LEVEL}" \
--vmodule="${LOG_SPEC}" \
--vmodule="${LOG_SPEC}" \
--service-account-private-key-file="${SERVICE_ACCOUNT_KEY}" \
--service-account-private-key-file="${SERVICE_ACCOUNT_KEY}" \
...
@@ -825,7 +825,7 @@ EOF
...
@@ -825,7 +825,7 @@ EOF
fi
fi
# shellcheck disable=SC2024
# shellcheck disable=SC2024
sudo "
${
GO_OUT
}
/hyperkube
" proxy
\
sudo "
${
GO_OUT
}
/hyperkube
"
kube-
proxy
\
--v="
${
LOG_LEVEL
}
"
\
--v="
${
LOG_LEVEL
}
"
\
--config=/tmp/kube-proxy.yaml
\
--config=/tmp/kube-proxy.yaml
\
--master="
https
://
${
API_HOST
}
:
${
API_SECURE_PORT
}
" >"
${
PROXY_LOG
}
" 2>&1 &
--master="
https
://
${
API_HOST
}
:
${
API_SECURE_PORT
}
" >"
${
PROXY_LOG
}
" 2>&1 &
...
@@ -835,7 +835,7 @@ EOF
...
@@ -835,7 +835,7 @@ EOF
function start_kubescheduler {
function start_kubescheduler {
SCHEDULER_LOG=
${
LOG_DIR
}
/kube-scheduler.log
SCHEDULER_LOG=
${
LOG_DIR
}
/kube-scheduler.log
${
CONTROLPLANE_SUDO
}
"
${
GO_OUT
}
/hyperkube
" scheduler
\
${
CONTROLPLANE_SUDO
}
"
${
GO_OUT
}
/hyperkube
"
kube-
scheduler
\
--v="
${
LOG_LEVEL
}
"
\
--v="
${
LOG_LEVEL
}
"
\
--leader-elect=false
\
--leader-elect=false
\
--kubeconfig "
${
CERT_DIR
}
"/scheduler.kubeconfig
\
--kubeconfig "
${
CERT_DIR
}
"/scheduler.kubeconfig
\
...
...
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