Skip to content

Commit

Permalink
Merge pull request #154 from thockin-tmp/gcr-vanity
Browse files Browse the repository at this point in the history
Convert registry to k8s.gcr.io
  • Loading branch information
Random-Liu committed Jan 3, 2018
2 parents c10c302 + 547c65e commit eab61e8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ VERSION:=$(shell git describe --tags --dirty)
TAG?=$(VERSION)

# PROJ is the image project.
PROJ?=gcr.io/google_containers
PROJ?=k8s.gcr.io

# UPLOAD_PATH is the cloud storage path to upload release tar.
UPLOAD_PATH?=gs://kubernetes-release
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Run `make` in the top directory. It will:

## Push Image
`make push` uploads the docker image to registry. By default, the image will be uploaded to
`gcr.io/google_containers`. It's easy to modify the `Makefile` to push the image
`k8s.gcr.io`. It's easy to modify the `Makefile` to push the image
to another registry.

## Start DaemonSet
Expand All @@ -102,7 +102,7 @@ spec:
spec:
containers:
- name: node-problem-detector
image: gcr.io/google_containers/node-problem-detector:v0.2
image: k8s.gcr.io/node-problem-detector:v0.2
imagePullPolicy: Always
securityContext:
privileged: true
Expand Down
2 changes: 1 addition & 1 deletion node-problem-detector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
- /node-problem-detector
- --logtostderr
- --kernel-monitor=/config/kernel-monitor.json
image: gcr.io/google_containers/node-problem-detector:v0.2
image: k8s.gcr.io/node-problem-detector:v0.2
imagePullPolicy: Always
securityContext:
privileged: true
Expand Down
8 changes: 4 additions & 4 deletions pkg/util/nethealth/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Makefile for the Docker image gcr.io/google_containers/kube-nethealth-<ARCH>
# Makefile for the Docker image k8s.gcr.io/kube-nethealth-<ARCH>
# MAINTAINER: Girish kalele <abshah@google.com>
# If you update this image please bump the tag value before pushing.
#
# Usage:
# [TAG=1.0] [REGISTRY=gcr.io/google_containers] make push
# [TAG=1.0] [REGISTRY=k8s.gcr.io] make push

# Default registry, arch and tag. This can be overwritten by arguments to make
TAG?=1.0
REGISTRY?=gcr.io/google_containers
REGISTRY?=k8s.gcr.io
ARCH?=amd64

all: build
Expand All @@ -33,7 +33,7 @@ build: nethealth
docker build -t $(REGISTRY)/kube-nethealth-$(ARCH):$(TAG) .

push: build
ifeq ($(REGISTRY),gcr.io/google_containers)
ifeq ($(REGISTRY),k8s.gcr.io)
gcloud docker push $(REGISTRY)/kube-nethealth-$(ARCH):$(TAG)
else
docker push $(REGISTRY)/kube-nethealth-$(ARCH):$(TAG)
Expand Down
2 changes: 1 addition & 1 deletion test/kernel_log_generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

.PHONY: all build push

PROJ ?= gcr.io/google_containers
PROJ ?= k8s.gcr.io
TAG := 0.1

all: push
Expand Down

0 comments on commit eab61e8

Please sign in to comment.