Skip to content

Commit 0214ded

Browse files
committed
fix typos, cleanup
Signed-off-by: Eric Pickard <piceri@github.com>
1 parent 0d5e129 commit 0214ded

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ cluster:
4242
@echo "Creating kind cluster: ${CLUSTER}"
4343
kind create cluster --name ${CLUSTER}
4444
@echo "Creating namespaces..."
45-
kubectl create namespace test1
46-
kubectl create namespace test2
47-
kubectl create namespace test3
45+
kubectl create namespace test1 --dry-run=client -o yaml | kubectl apply -f -
46+
kubectl create namespace test2 --dry-run=client -o yaml | kubectl apply -f -
47+
kubectl create namespace test3 --dry-run=client -o yaml | kubectl apply -f -
4848
@echo "Kind cluster '${CLUSTER}' created with namespaces: test1, test2, test3"
4949

5050
.PHONY: cluster-delete
@@ -57,8 +57,8 @@ cluster-delete:
5757
echo:
5858
@echo "Deploying echo server to artifact-registry namespace..."
5959
kubectl create namespace artifact-registry --dry-run=client -o yaml | kubectl apply -f -
60-
kubectl run artifact-registry --image=ealen/echo-server:latest --port=80 -n artifact-registry --restart=Always --labels="app=artifact-registry" || true
61-
kubectl expose pod artifact-registry --port=9090 --target-port=80 --name=artifact-registry -n artifact-registry --type=ClusterIP || true
60+
kubectl run artifact-registry --image=ealen/echo-server:latest --port=80 -n artifact-registry --restart=Always --labels="app=artifact-registry"
61+
kubectl expose pod artifact-registry --port=9090 --target-port=80 --name=artifact-registry -n artifact-registry --type=ClusterIP
6262
@echo "Echo server deployed and reachable at http://artifact-registry.artifact-registry.svc.cluster.local:9090"
6363

6464
.PHONY: echo-delete
@@ -67,4 +67,4 @@ echo-delete:
6767
kubectl delete service artifact-registry -n artifact-registry --ignore-not-found=true
6868
kubectl delete pod artifact-registry -n artifact-registry --ignore-not-found=true
6969
kubectl delete namespace artifact-registry --ignore-not-found=true
70-
@echo "Echo server deleted"
70+
@echo "Echo server deleted"

0 commit comments

Comments
 (0)