File tree Expand file tree Collapse file tree 6 files changed +16
-10
lines changed
Expand file tree Collapse file tree 6 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,9 @@ echo "Installing Skaffold..."
3434echo " **********************************************************************"
3535curl -Lo skaffold " https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-$ARCH "
3636sudo install skaffold /usr/local/bin/
37+
38+ echo " **********************************************************************"
39+ echo " Installing DevSpace..."
40+ echo " **********************************************************************"
41+ curl -Lo devspace " https://github.com/loft-sh/devspace/releases/latest/download/devspace-linux-$ARCH "
42+ sudo install -c -m 0755 devspace /usr/local/bin
Original file line number Diff line number Diff line change 11# These can be overidden with env vars.
2- REGISTRY ?= cluster-registry:32000
2+ REGISTRY ?= cluster-registry:5000
33IMAGE_NAME ?= hitcounter
44IMAGE_TAG ?= 1.0
55IMAGE ?= $(REGISTRY ) /$(IMAGE_NAME ) :$(IMAGE_TAG )
@@ -65,7 +65,7 @@ secret: ## Generate a secret hex key
6565.PHONY : cluster
6666cluster : # # 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
7171cluster-rm : # # Remove a K3D Kubernetes cluster
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 :
3333 valueFrom :
3434 secretKeyRef :
3535 name : redis-creds
36- key : uri
36+ key : database- uri
3737 resources :
3838 limits :
3939 cpu : " 0.25"
Original file line number Diff line number Diff line change 11# These can also be created from the command line using environment variables
22#
3- # kubectl create secret generic redis-creds --from-literal=uri=$DATABASE_URI
3+ # kubectl create secret generic redis-creds --from-literal=database- uri=$DATABASE_URI
44#
55---
66apiVersion : v1
77kind : Secret
88metadata :
99 name : redis-creds
1010data :
11- uri : cmVkaXM6Ly86QHJlZGlzOjYzNzkvMA==
11+ database- uri : cmVkaXM6Ly86QHJlZGlzOjYzNzkvMA==
Original file line number Diff line number Diff line change 1- SKAFFOLD_DEFAULT_REPO = cluster-registry:32000
1+ SKAFFOLD_DEFAULT_REPO = cluster-registry:5000
You can’t perform that action at this time.
0 commit comments