Skip to content

Commit

Permalink
Merge pull request #47 from Sanghrakshit12/main
Browse files Browse the repository at this point in the history
Kubernetes Cluster
  • Loading branch information
Sanghrakshit12 authored Jun 20, 2024
2 parents 46a93a7 + 045a74f commit 91268a3
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clusters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
23 changes: 23 additions & 0 deletions deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cryptoxaideployment
spec:
replicas: 3
selector:
matchLabels:
app: cryptoxai
template:
metadata:
labels:
app: cryptoxai
spec:
containers:
- name: cryptoapp
image: sanghrakshit/cryptoxai
ports:
- containerPort: 30007
- name: pluginbackend
image: sanghrakshit/pluginbackend
ports:
- containerPort: 30008
14 changes: 14 additions & 0 deletions mainfest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Pod
metadata:
name: cryptoapp
spec:
containers:
- name: cryptoapp
image: sanghrakshit/cryptoxai
ports:
- containerPort: 3000
- name: pluginbackend
image: sanghrakshit/pluginbackend
ports:
- containerPort: 4000
19 changes: 19 additions & 0 deletions service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
name: cryptoxai-service
spec:
selector:
app: cryptoxai
ports:
- name: cryptoapp-port
protocol: TCP
port: 3000
targetPort: 3000
nodePort: 30007
- name: pluginbackend-port
protocol: TCP
port: 4000
targetPort: 4000
nodePort: 30008
type: NodePort

0 comments on commit 91268a3

Please sign in to comment.