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
6c195a49
Commit
6c195a49
authored
Jun 01, 2016
by
Liyi Meng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the problem in building hyperkube for 3rd party registry
parent
9a4c2fee
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
11 deletions
+17
-11
Makefile
cluster/images/hyperkube/Makefile
+1
-0
kube-proxy.yaml
cluster/images/hyperkube/addons/kube-proxy.yaml
+1
-1
addon-manager.json
cluster/images/hyperkube/static-pods/addon-manager.json
+1
-1
master-multi.json
cluster/images/hyperkube/static-pods/master-multi.json
+4
-4
master.json
cluster/images/hyperkube/static-pods/master.json
+4
-4
dev-push-hyperkube.sh
hack/dev-push-hyperkube.sh
+6
-1
No files found.
cluster/images/hyperkube/Makefile
View file @
6c195a49
...
@@ -60,6 +60,7 @@ endif
...
@@ -60,6 +60,7 @@ endif
cp
../../../_output/dockerized/bin/linux/${ARCH}/hyperkube
${TEMP_DIR}
cp
../../../_output/dockerized/bin/linux/${ARCH}/hyperkube
${TEMP_DIR}
cd
${TEMP_DIR}
&&
sed
-i.back
"s|VERSION|${VERSION}|g"
addons/*.yaml
static-pods/*.json
cd
${TEMP_DIR}
&&
sed
-i.back
"s|VERSION|${VERSION}|g"
addons/*.yaml
static-pods/*.json
cd
${TEMP_DIR}
&&
sed
-i.back
"s|REGISTRY|${REGISTRY}|g"
addons/*.yaml
static-pods/*.json
cd
${TEMP_DIR}
&&
sed
-i.back
"s|ARCH|${ARCH}|g"
addons/*.yaml
static-pods/*.json
cd
${TEMP_DIR}
&&
sed
-i.back
"s|ARCH|${ARCH}|g"
addons/*.yaml
static-pods/*.json
cd
${TEMP_DIR}
&&
sed
-i.back
"s|ARCH|${QEMUARCH}|g"
Dockerfile
cd
${TEMP_DIR}
&&
sed
-i.back
"s|ARCH|${QEMUARCH}|g"
Dockerfile
cd
${TEMP_DIR}
&&
sed
-i.back
"s|BASEIMAGE|${BASEIMAGE}|g"
Dockerfile
cd
${TEMP_DIR}
&&
sed
-i.back
"s|BASEIMAGE|${BASEIMAGE}|g"
Dockerfile
...
...
cluster/images/hyperkube/addons/kube-proxy.yaml
View file @
6c195a49
...
@@ -32,7 +32,7 @@ spec:
...
@@ -32,7 +32,7 @@ spec:
hostNetwork
:
true
hostNetwork
:
true
containers
:
containers
:
-
name
:
kube-proxy
-
name
:
kube-proxy
image
:
gcr.io/google_containers
/hyperkube-ARCH:VERSION
image
:
REGISTRY
/hyperkube-ARCH:VERSION
command
:
command
:
-
/hyperkube
-
/hyperkube
-
proxy
-
proxy
...
...
cluster/images/hyperkube/static-pods/addon-manager.json
View file @
6c195a49
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
},
},
{
{
"name"
:
"kube-addon-manager-data"
,
"name"
:
"kube-addon-manager-data"
,
"image"
:
"
gcr.io/google_containers
/hyperkube-ARCH:VERSION"
,
"image"
:
"
REGISTRY
/hyperkube-ARCH:VERSION"
,
"command"
:
[
"command"
:
[
"/copy-addons.sh"
"/copy-addons.sh"
],
],
...
...
cluster/images/hyperkube/static-pods/master-multi.json
View file @
6c195a49
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
"containers"
:[
"containers"
:[
{
{
"name"
:
"controller-manager"
,
"name"
:
"controller-manager"
,
"image"
:
"
gcr.io/google_containers
/hyperkube-ARCH:VERSION"
,
"image"
:
"
REGISTRY
/hyperkube-ARCH:VERSION"
,
"command"
:
[
"command"
:
[
"/hyperkube"
,
"/hyperkube"
,
"controller-manager"
,
"controller-manager"
,
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
},
},
{
{
"name"
:
"apiserver"
,
"name"
:
"apiserver"
,
"image"
:
"
gcr.io/google_containers
/hyperkube-ARCH:VERSION"
,
"image"
:
"
REGISTRY
/hyperkube-ARCH:VERSION"
,
"command"
:
[
"command"
:
[
"/hyperkube"
,
"/hyperkube"
,
"apiserver"
,
"apiserver"
,
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
},
},
{
{
"name"
:
"scheduler"
,
"name"
:
"scheduler"
,
"image"
:
"
gcr.io/google_containers
/hyperkube-ARCH:VERSION"
,
"image"
:
"
REGISTRY
/hyperkube-ARCH:VERSION"
,
"command"
:
[
"command"
:
[
"/hyperkube"
,
"/hyperkube"
,
"scheduler"
,
"scheduler"
,
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
},
},
{
{
"name"
:
"setup"
,
"name"
:
"setup"
,
"image"
:
"
gcr.io/google_containers
/hyperkube-ARCH:VERSION"
,
"image"
:
"
REGISTRY
/hyperkube-ARCH:VERSION"
,
"command"
:
[
"command"
:
[
"/setup-files.sh"
,
"/setup-files.sh"
,
"IP:10.0.0.1,DNS:kubernetes,DNS:kubernetes.default,DNS:kubernetes.default.svc,DNS:kubernetes.default.svc.cluster.local"
"IP:10.0.0.1,DNS:kubernetes,DNS:kubernetes.default,DNS:kubernetes.default.svc,DNS:kubernetes.default.svc.cluster.local"
...
...
cluster/images/hyperkube/static-pods/master.json
View file @
6c195a49
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
"containers"
:[
"containers"
:[
{
{
"name"
:
"controller-manager"
,
"name"
:
"controller-manager"
,
"image"
:
"
gcr.io/google_containers
/hyperkube-ARCH:VERSION"
,
"image"
:
"
REGISTRY
/hyperkube-ARCH:VERSION"
,
"command"
:
[
"command"
:
[
"/hyperkube"
,
"/hyperkube"
,
"controller-manager"
,
"controller-manager"
,
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
},
},
{
{
"name"
:
"apiserver"
,
"name"
:
"apiserver"
,
"image"
:
"
gcr.io/google_containers
/hyperkube-ARCH:VERSION"
,
"image"
:
"
REGISTRY
/hyperkube-ARCH:VERSION"
,
"command"
:
[
"command"
:
[
"/hyperkube"
,
"/hyperkube"
,
"apiserver"
,
"apiserver"
,
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
},
},
{
{
"name"
:
"scheduler"
,
"name"
:
"scheduler"
,
"image"
:
"
gcr.io/google_containers
/hyperkube-ARCH:VERSION"
,
"image"
:
"
REGISTRY
/hyperkube-ARCH:VERSION"
,
"command"
:
[
"command"
:
[
"/hyperkube"
,
"/hyperkube"
,
"scheduler"
,
"scheduler"
,
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
},
},
{
{
"name"
:
"setup"
,
"name"
:
"setup"
,
"image"
:
"
gcr.io/google_containers
/hyperkube-ARCH:VERSION"
,
"image"
:
"
REGISTRY
/hyperkube-ARCH:VERSION"
,
"command"
:
[
"command"
:
[
"/setup-files.sh"
,
"/setup-files.sh"
,
"IP:10.0.0.1,DNS:kubernetes,DNS:kubernetes.default,DNS:kubernetes.default.svc,DNS:kubernetes.default.svc.cluster.local"
"IP:10.0.0.1,DNS:kubernetes,DNS:kubernetes.default,DNS:kubernetes.default.svc,DNS:kubernetes.default.svc.cluster.local"
...
...
hack/dev-push-hyperkube.sh
View file @
6c195a49
...
@@ -17,7 +17,12 @@
...
@@ -17,7 +17,12 @@
# This script will build the hyperkube image and push it to the repository
# This script will build the hyperkube image and push it to the repository
# referred to by KUBE_DOCKER_REGISTRY and KUBE_DOCKER_OWNER. The image will
# referred to by KUBE_DOCKER_REGISTRY and KUBE_DOCKER_OWNER. The image will
# be given a version tag with the value from KUBE_DOCKER_VERSION.
# be given a version tag with the value from KUBE_DOCKER_VERSION.
# e.g. run as:
# KUBE_DOCKER_REGISTRY=localhost:5000 KUBE_DOCKER_OWNER=liyi \
# KUBE_DOCKER_VERSION=1.3.0-dev ./hack/dev-push-hyperkube.sh
#
# will build image localhost:5000/liyi/hyperkube-amd64:1.3.0-dev
set
-o
errexit
set
-o
errexit
set
-o
nounset
set
-o
nounset
set
-o
pipefail
set
-o
pipefail
...
...
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