You've already forked DataMate
init datamate
This commit is contained in:
49
deployment/kubernetes/unstructured/deploy.yaml
Normal file
49
deployment/kubernetes/unstructured/deploy.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: unstructured
|
||||
labels:
|
||||
app: unstructured
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: unstructured
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: unstructured
|
||||
spec:
|
||||
containers:
|
||||
- name: unstructured
|
||||
image: unstructured
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- python
|
||||
args:
|
||||
- app.py
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
volumeMounts:
|
||||
- name: tmp
|
||||
mountPath: /tmp/data-mate
|
||||
volumes:
|
||||
- name: tmp
|
||||
hostPath:
|
||||
path: /tmp/data-mate
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: unstructured
|
||||
labels:
|
||||
app: unstructured
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 8000
|
||||
targetPort: 8000
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: unstructured
|
||||
Reference in New Issue
Block a user