Skip to content

Commit 4d9f82a

Browse files
authored
Merge pull request #28 from nyu-devops/su24-updates
Updates for Summer 2024 Semester
2 parents 7b7d1b4 + 78fa1c7 commit 4d9f82a

File tree

6 files changed

+16
-10
lines changed

6 files changed

+16
-10
lines changed

.devcontainer/scripts/install-tools.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,9 @@ echo "Installing Skaffold..."
3434
echo "**********************************************************************"
3535
curl -Lo skaffold "https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-$ARCH"
3636
sudo 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

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: 2 additions & 2 deletions
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:
@@ -33,7 +33,7 @@ spec:
3333
valueFrom:
3434
secretKeyRef:
3535
name: redis-creds
36-
key: uri
36+
key: database-uri
3737
resources:
3838
limits:
3939
cpu: "0.25"

k8s/secret.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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
---
66
apiVersion: v1
77
kind: Secret
88
metadata:
99
name: redis-creds
1010
data:
11-
uri: cmVkaXM6Ly86QHJlZGlzOjYzNzkvMA==
11+
database-uri: cmVkaXM6Ly86QHJlZGlzOjYzNzkvMA==

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)