mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-20 20:56:26 +00:00
Merge pull request #154 from thockin-tmp/gcr-vanity
Convert registry to k8s.gcr.io
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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)
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
.PHONY: all build push
|
||||
|
||||
PROJ ?= gcr.io/google_containers
|
||||
PROJ ?= k8s.gcr.io
|
||||
TAG := 0.1
|
||||
|
||||
all: push
|
||||
|
||||
Reference in New Issue
Block a user