Skip to content

Commit

Permalink
Merge pull request #573 from Naresh-chandanbatve/main
Browse files Browse the repository at this point in the history
added k8s
  • Loading branch information
Naresh-chandanbatve committed Sep 15, 2023
2 parents 4903778 + 3c49afe commit 1eb512f
Show file tree
Hide file tree
Showing 11 changed files with 6,239 additions and 2,185 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/approve_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ on:
- submitted

permissions:
pull-requests: write

env:
ACCESS_TOKEN_MASTER: ${{ env.ACCESS_TOKEN_MASTER }}

pull-requests: write

jobs:
label-when-approved:
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ dist-ssr
*.ntvs*
*.njsproj
*.sln
*.sw?
*.sw?

#k8s files
secret.yml
2 changes: 1 addition & 1 deletion client/StichHub/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14
FROM node:18

WORKDIR /client

Expand Down
8,328 changes: 6,159 additions & 2,169 deletions client/StichHub/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client/StichHub/src/axios.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import axios from "axios";

const instance = axios.create({
baseURL: "https://stichhub-backend.vercel.app/",
// baseURL: "http://localhost:5000", //! For using local Development, use this URL to connect to your local server.
// baseURL: "https://stichhub-backend.vercel.app/",
baseURL: "http://localhost:5000", //! For using local Development, use this URL to connect to your local server.
});

instance.interceptors.request.use((req) => {
Expand Down
23 changes: 23 additions & 0 deletions deployment-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

apiVersion: apps/v1
kind: Deployment
metadata:
name: stichub-client
labels:
app: client
spec:
replicas: 2
selector:
matchLabels:
app: client
template:
metadata:
labels:
app: client
spec:
containers:
- name: client
image: nareshchandanbatve/stichhub:client
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5173
26 changes: 26 additions & 0 deletions deployment-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

apiVersion: apps/v1
kind: Deployment
metadata:
name: stichub-server
labels:
app: server
spec:
replicas: 2
selector:
matchLabels:
app: server
template:
metadata:
labels:
app: server
spec:
containers:
- name: server
image: nareshchandanbatve/stichhub:server
imagePullPolicy: IfNotPresent
envFrom:
- secretRef:
name: my-secret
ports:
- containerPort: 5000
6 changes: 0 additions & 6 deletions package-lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14
FROM node:16

WORKDIR /server

Expand Down
12 changes: 12 additions & 0 deletions service-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: service-client
spec:
type: NodePort
selector:
app: client
ports:
- port: 5173
targetPort: 5173
nodePort: 30007
10 changes: 10 additions & 0 deletions service-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: service-server
spec:
selector:
app: server
ports:
- port: 5000
targetPort: 5000

2 comments on commit 1eb512f

@vercel
Copy link

@vercel vercel bot commented on 1eb512f Sep 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

stichhub – ./client/StichHub

stichhub-git-main-stichhub.vercel.app
www.uba-gcoen.com
stichhub.vercel.app
stichhub-stichhub.vercel.app
uba-gcoen.com

@vercel
Copy link

@vercel vercel bot commented on 1eb512f Sep 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

stichhub-backend – ./server

stichhub-backend.vercel.app
stichhub-backend-stichhub.vercel.app
stichhub-backend-git-main-stichhub.vercel.app

Please sign in to comment.