43 lines
644 B
YAML
43 lines
644 B
YAML
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Namespace
|
||
|
metadata:
|
||
|
name: ollama
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: ollama
|
||
|
namespace: ollama
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
name: ollama
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
name: ollama
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: ollama
|
||
|
image: ollama/ollama:latest
|
||
|
ports:
|
||
|
- name: http
|
||
|
containerPort: 11434
|
||
|
protocol: TCP
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: ollama
|
||
|
namespace: ollama
|
||
|
spec:
|
||
|
type: ClusterIP
|
||
|
selector:
|
||
|
name: ollama
|
||
|
ports:
|
||
|
- port: 80
|
||
|
name: http
|
||
|
targetPort: http
|
||
|
protocol: TCP
|