Skip to content

Commit

Permalink
add k8s deploy files
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed Jun 1, 2023
1 parent f6392a3 commit 2a37697
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions minikube/deploy/k8s.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: local-devex-deploy
labels:
app: local-devex
spec:
replicas: 1
selector:
matchLabels:
app: local-devex
template:
metadata:
labels:
app: local-devex
spec:
containers:
- name: app
image: local/devex:v1
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /data
name: test-volume
volumes:
- name: test-volume
hostPath:
# directory location on host
path: /data
---
apiVersion: v1
kind: Service
metadata:
name: local-devex-svc
spec:
type: NodePort
selector:
app: local-devex
ports:
- name: local-devex-port
protocol: TCP
port: 8080
targetPort: 8080

0 comments on commit 2a37697

Please sign in to comment.