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>
This commit is contained in:
2026-02-28 10:47:11 +00:00
parent 67ef516462
commit a26950c432
4 changed files with 152 additions and 273 deletions

View File

@@ -1,7 +1,26 @@
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:
@@ -14,19 +33,16 @@ spec:
spec:
containers:
- name: tori
image: tori:latest
image: registry.oci.euphon.net/tori:latest
ports:
- containerPort: 3000
volumeMounts:
- name: config
mountPath: /app/config.yaml
subPath: config.yaml
- name: data
mountPath: /app/tori.db
mountPath: /app/data
env:
- name: RUST_LOG
value: "info"
volumes:
- name: config
configMap:
name: tori-config
- name: data
persistentVolumeClaim:
claimName: tori-data
@@ -35,6 +51,7 @@ apiVersion: v1
kind: Service
metadata:
name: tori
namespace: tori
spec:
selector:
app: tori