Skip to content

Commit c38c416

Browse files
committed
fix: add k8s config
1 parent 18fc41d commit c38c416

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
branches:
7-
- master
7+
- main
88

99
jobs:
1010
build:

manifests/deployment.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: spaceify-frontend
5+
namespace: spaceify
6+
spec:
7+
replicas: 1
8+
selector:
9+
matchLabels:
10+
app: spaceify-frontend
11+
template:
12+
metadata:
13+
labels:
14+
app: spaceify-frontend
15+
spec:
16+
containers:
17+
- name: spaceify-frontend
18+
image: jpyles0524/spaceify-frontend:latest
19+
ports:
20+
- containerPort: 3000
21+
resources:
22+
limits:
23+
memory: "512Mi"
24+
cpu: "500m"
25+
26+
---
27+
apiVersion: v1
28+
kind: Service
29+
metadata:
30+
name: spaceify-frontend
31+
namespace: spaceify
32+
spec:
33+
selector:
34+
app: spaceify-frontend
35+
ports:
36+
- protocol: TCP
37+
port: 3000
38+
targetPort: 3000
39+
nodePort: 30124
40+
type: NodePort

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default function App() {
101101
};
102102

103103
const res = await fetch(
104-
"http://space.spaceify.co/api/spotify/playlist",
104+
"/api/spotify/playlist",
105105
options,
106106
);
107107

0 commit comments

Comments
 (0)