tori/deploy/deployment.yaml
Fam Zheng a26950c432 Add OCI ARM64 deployment setup
- deploy.sh: local-to-OCI deploy script (rsync config, docker build, kubectl apply)
- deployment.yaml: namespace, PVC, Deployment with registry image, Service
- Dockerfile: COPY config.yaml directly into image, drop openssh-client

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 10:47:11 +00:00

62 lines
1.0 KiB
YAML

apiVersion: v1
kind: Namespace
metadata:
name: tori
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: tori-data
namespace: tori
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: tori
namespace: tori
spec:
replicas: 1
selector:
matchLabels:
app: tori
template:
metadata:
labels:
app: tori
spec:
containers:
- name: tori
image: registry.oci.euphon.net/tori:latest
ports:
- containerPort: 3000
volumeMounts:
- name: data
mountPath: /app/data
env:
- name: RUST_LOG
value: "info"
volumes:
- name: data
persistentVolumeClaim:
claimName: tori-data
---
apiVersion: v1
kind: Service
metadata:
name: tori
namespace: tori
spec:
selector:
app: tori
ports:
- port: 80
targetPort: 3000
type: ClusterIP