Skip to content

Commit 78ce5fb

Browse files
committed
Changed registry port to 5000
1 parent 4bb263b commit 78ce5fb

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# These can be overidden with env vars.
2-
REGISTRY ?= cluster-registry:32000
2+
REGISTRY ?= cluster-registry:5000
33
IMAGE_NAME ?= hitcounter
44
IMAGE_TAG ?= 1.0
55
IMAGE ?= $(REGISTRY)/$(IMAGE_NAME):$(IMAGE_TAG)
@@ -65,7 +65,7 @@ secret: ## Generate a secret hex key
6565
.PHONY: cluster
6666
cluster: ## Create a K3D Kubernetes cluster with load balancer and registry
6767
$(info Creating Kubernetes cluster with a registry and 1 worker node...)
68-
k3d cluster create nyu-devops --agents 1 --registry-create cluster-registry:0.0.0.0:32000 --port '8080:80@loadbalancer'
68+
k3d cluster create nyu-devops --agents 1 --registry-create cluster-registry:0.0.0.0:5000 --port '8080:80@loadbalancer'
6969

7070
.PHONY: cluster-rm
7171
cluster-rm: ## Remove a K3D Kubernetes cluster

k3d-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ registries:
1111
create:
1212
name: cluster-registry
1313
host: "0.0.0.0"
14-
hostPort: "32000"
14+
hostPort: "5000"
1515
config: |
1616
mirrors:
17-
"cluster-registry:32000":
17+
"cluster-registry:5000":
1818
endpoint:
19-
- http://cluster-registry:32000
19+
- http://cluster-registry:5000

k8s/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
restartPolicy: Always
2323
containers:
2424
- name: hitcounter
25-
image: cluster-registry:32000/hitcounter:1.0
25+
image: cluster-registry:5000/hitcounter:1.0
2626
# image: hitcounter
2727
imagePullPolicy: IfNotPresent
2828
ports:

skaffold.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SKAFFOLD_DEFAULT_REPO=cluster-registry:32000
1+
SKAFFOLD_DEFAULT_REPO=cluster-registry:5000

0 commit comments

Comments
 (0)