Skip to content

Commit

Permalink
chore: added kubernetes config files for http & gin servers
Browse files Browse the repository at this point in the history
  • Loading branch information
fatmaebrahim committed Oct 1, 2024
1 parent dd3d413 commit 9b7d9fd
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
36 changes: 36 additions & 0 deletions k8s/gin-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ginserver-deployment
labels:
app: ginserver
spec:
replicas: 1
selector:
matchLabels:
app: ginserver
template:
metadata:
labels:
app: ginserver
spec:
containers:
- name: ginserver
image: fatmaebrahim/ginserver:latest
ports:
- containerPort: 8080

---
apiVersion: v1
kind: Service
metadata:
name: ginserver-service
spec:
type: NodePort
selector:
app: ginserver
ports:
- protocol: TCP
port: 8080
targetPort: 8080
nodePort: 30000
36 changes: 36 additions & 0 deletions k8s/http-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: httpserver-deployment
labels:
app: httpserver
spec:
replicas: 1
selector:
matchLabels:
app: httpserver
template:
metadata:
labels:
app: httpserver
spec:
containers:
- name: httpserver
image: fatmaebrahim/httpserver:latest
ports:
- containerPort: 8000

---
apiVersion: v1
kind: Service
metadata:
name: httpserver-service
spec:
type: NodePort
selector:
app: httpserver
ports:
- protocol: TCP
port: 8000
targetPort: 8000
nodePort: 30100

0 comments on commit 9b7d9fd

Please sign in to comment.