Skip to content

Commit

Permalink
Add kubernetes deployment for radioshash
Browse files Browse the repository at this point in the history
  • Loading branch information
marwansss authored Apr 18, 2024
1 parent 1ac716a commit 70c134e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Kubernetes-Radioshash/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: radioshash-deployment
labels:
name: radioshash
app: radioshash-app
spec:
replicas: 1
selector:
matchLabels:
app: radioshash-app
name: radioshash
template:
metadata:
labels:
app: radioshash-app
name: radioshash
spec:
containers:
- name: radioshash-container
image: maro4299311/radioshash:v1.0

ports:
- containerPort: 5000
15 changes: 15 additions & 0 deletions Kubernetes-Radioshash/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@


apiVersion: v1
kind: Service
metadata:
name: radioshash-service
spec:
type: NodePort
selector:
name: radioshash
app: radioshash-app
ports:
- port: 5000
targetPort: 5000
nodePort: 30007

0 comments on commit 70c134e

Please sign in to comment.