Skip to content

Commit

Permalink
[feat]: Kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
PodssilDev committed Jun 11, 2023
1 parent 51504b5 commit 1a316db
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 13 deletions.

This file was deleted.

21 changes: 21 additions & 0 deletions pep2/frontend-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend-deployment
labels:
app: frontend-deployment
spec:
selector:
matchLabels:
app: frontend-deployment
replicas: 2
template:
metadata:
labels:
app: frontend-deployment
spec:
containers:
- name: frontend
image: johnserrano159/kubernetes-frontend
ports:
- containerPort: 3000
14 changes: 14 additions & 0 deletions pep2/frontend-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: frontend-service
labels:
app: frontend-service
spec:
selector:
app: frontend-deployment
ports:
- protocol: TCP
port: 3000
targetPort: 3000
type: LoadBalancer

0 comments on commit 1a316db

Please sign in to comment.