Skip to content

Commit

Permalink
feat: add kubernets deployment and service yaml menifest files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj-kumar00 committed Feb 8, 2025
1 parent 1ea2c72 commit 2a21aea
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Kubernetes/backend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: qr-api
spec:
replicas: 2
selector:
matchLabels:
app: qr-api
template:
metadata:
labels:
app: qr-api
spec:
containers:
- name: qr-api
image: surajkumar00/devops-url2qr-api:latest

---
apiVersion: v1
kind: Service
metadata:
name: qr-api-service
spec:
type: ClusterIP
selector:
app: qr-api
ports:
- protocol: TCP
port: 80
targetPort: 8000
33 changes: 33 additions & 0 deletions Kubernetes/frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: qr-frontend
spec:
replicas: 2
selector:
matchLabels:
app: qr-frontend
template:
metadata:
labels:
app: qr-frontend
spec:
containers:
- name: qr-frontend
image: surajkumar00/devops-url2qr-frontend:latest
ports:
- containerPort: 3000

---
apiVersion: v1
kind: Service
metadata:
name: qr-frontend-service
spec:
type: LoadBalancer
selector:
app: qr-frontend
ports:
- protocol: TCP
port: 80
targetPort: 3000

0 comments on commit 2a21aea

Please sign in to comment.