Skip to content

Commit d7f3013

Browse files
committed
Kubernets cl
1 parent 0b74b40 commit d7f3013

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

manifest.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: sentiment-analysis
5+
labels:
6+
app: sentiment-analysis
7+
spec:
8+
replicas: 1
9+
selector:
10+
matchLabels:
11+
app: sentiment-analysis
12+
template:
13+
metadata:
14+
labels:
15+
app: sentiment-analysis
16+
spec:
17+
containers:
18+
- name: sentiment-analysis
19+
image: sameerrrrr/sentimentanalysis-streamlit:latest
20+
imagePullPolicy: Always
21+
ports:
22+
- containerPort: 8501
23+
# env:
24+
# - name:
25+
# value: sentimentanalysis
26+
# volumeMounts:
27+
# - name: workdir
28+
# mountPath: /app
29+
# volumes:
30+
# - name: workdir
31+
# emptyDir: {}
32+
---
33+
apiVersion: v1
34+
kind: Service
35+
metadata:
36+
name: sentiment-analysis-service
37+
labels:
38+
app: sentiment-analysis
39+
spec:
40+
type: NodePort
41+
selector:
42+
app: sentiment-analysis
43+
ports:
44+
- name: http
45+
port: 8501
46+
targetPort: 8501
47+
nodePort: 30088

0 commit comments

Comments
 (0)