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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user