Skip to content

Commit

Permalink
fix: add k8s config
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypyles committed Dec 24, 2024
1 parent 18fc41d commit c38c416
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- master
- main

jobs:
build:
Expand Down
40 changes: 40 additions & 0 deletions manifests/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: spaceify-frontend
namespace: spaceify
spec:
replicas: 1
selector:
matchLabels:
app: spaceify-frontend
template:
metadata:
labels:
app: spaceify-frontend
spec:
containers:
- name: spaceify-frontend
image: jpyles0524/spaceify-frontend:latest
ports:
- containerPort: 3000
resources:
limits:
memory: "512Mi"
cpu: "500m"

---
apiVersion: v1
kind: Service
metadata:
name: spaceify-frontend
namespace: spaceify
spec:
selector:
app: spaceify-frontend
ports:
- protocol: TCP
port: 3000
targetPort: 3000
nodePort: 30124
type: NodePort
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function App() {
};

const res = await fetch(
"http://space.spaceify.co/api/spotify/playlist",
"/api/spotify/playlist",
options,
);

Expand Down

0 comments on commit c38c416

Please sign in to comment.