feat : init
CI / verify (push) Successful in 45s
CI / build-and-deploy (push) Failing after 1m2s

This commit is contained in:
2026-09-09 17:58:37 +07:00 Unverified
parent f8680e2f4d
commit d120b5f787
51 changed files with 3337 additions and 101 deletions
+11
View File
@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: gcsim-config
data:
NODE_ENV: production
HOSTNAME: 0.0.0.0
PORT: "3000"
S3_PUBLIC_URL: https://buzz-cdn.astrxl.dev
DATABASE_POOL_SIZE: "10"
NEXT_DEPLOYMENT_ID: initial
+50
View File
@@ -0,0 +1,50 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: gcsim
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: gcsim
template:
metadata:
labels:
app.kubernetes.io/name: gcsim
spec:
containers:
- name: app
image: gcsim-image
ports:
- name: http
containerPort: 3000
envFrom:
- configMapRef:
name: gcsim-config
- secretRef:
name: gcsim-secrets
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 5
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 15
periodSeconds: 20
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: "1"
memory: 512Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: [ALL]
runAsNonRoot: true
runAsUser: 1001
runAsGroup: 1001
seccompProfile:
type: RuntimeDefault
+16
View File
@@ -0,0 +1,16 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gcsim
spec:
rules:
- host: gcsim.gunshiz.top
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: gcsim
port:
name: http
+13
View File
@@ -0,0 +1,13 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: gcsim
resources:
- namespace.yaml
- configmap.yaml
- deployment.yaml
- service.yaml
- ingress.yaml
images:
- name: gcsim-image
newName: registry.neko-piranha.ts.net/astral/gcsim
newTag: latest
+4
View File
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: gcsim
+11
View File
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: gcsim
spec:
selector:
app.kubernetes.io/name: gcsim
ports:
- name: http
port: 80
targetPort: http