File size: 910 Bytes
bbef364 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
apiVersion: v1
kind: Namespace
metadata:
name: chatbot-ollama
---
apiVersion: v1
kind: Secret
metadata:
namespace: chatbot-ollama
name: chatbot-ollama
type: Opaque
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: chatbot-ollama
name: chatbot-ollama
labels:
app: chatbot-ollama
spec:
replicas: 1
selector:
matchLabels:
app: chatbot-ollama
template:
metadata:
labels:
app: chatbot-ollama
spec:
containers:
- name: chatbot-ollama
image: <docker user>/chatbot-ollama:latest
resources: {}
ports:
- containerPort: 3000
---
kind: Service
apiVersion: v1
metadata:
namespace: chatbot-ollama
name: chatbot-ollama
labels:
app: chatbot-ollama
spec:
ports:
- name: http
protocol: TCP
port: 3000
targetPort: 3000
selector:
app: chatbot-ollama
type: ClusterIP
|