add auth redis manifest

This commit is contained in:
2026-07-02 01:43:41 +00:00
parent 87f6f46d3c
commit 14d3581900
4 changed files with 150 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
apiVersion: v1
kind: Service
metadata:
name: studio-auth-be
namespace: studio-system
spec:
selector:
app: studio-auth-be
ports:
- name: http
port: 4100
targetPort: 4100
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: studio-auth-be
namespace: studio-system
spec:
replicas: 1
selector:
matchLabels:
app: studio-auth-be
template:
metadata:
labels:
app: studio-auth-be
spec:
containers:
- name: studio-auth-be
image: localhost:5000/studio-auth-be:0.1.0
imagePullPolicy: Always
ports:
- containerPort: 4100
envFrom:
- secretRef:
name: studio-auth-be-env
+61
View File
@@ -0,0 +1,61 @@
apiVersion: v1
kind: Secret
metadata:
name: studio-auth-db-secret
namespace: studio-system
type: Opaque
stringData:
POSTGRES_USER: atnmy_auth
POSTGRES_PASSWORD: future1234!@
POSTGRES_DB: atnmy_auth
---
apiVersion: v1
kind: Service
metadata:
name: studio-auth-db
namespace: studio-system
spec:
selector:
app: studio-auth-db
ports:
- name: postgres
port: 5432
targetPort: 5432
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: studio-auth-db
namespace: studio-system
spec:
serviceName: studio-auth-db
replicas: 1
selector:
matchLabels:
app: studio-auth-db
template:
metadata:
labels:
app: studio-auth-db
spec:
containers:
- name: postgres
image: postgres:17
ports:
- containerPort: 5432
envFrom:
- secretRef:
name: studio-auth-db-secret
volumeMounts:
- name: data
mountPath: /var/lib/postgresql/data
subPath: postgres
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: local-path
resources:
requests:
storage: 3Gi
+19
View File
@@ -0,0 +1,19 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: studio-auth-ingress
namespace: studio-system
spec:
ingressClassName: traefik
rules:
- host: auth.autonomystudio.net
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: studio-auth-be
port:
number: 4100
+33
View File
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: studio-auth-redis
namespace: studio-system
spec:
replicas: 1
selector:
matchLabels:
app: studio-auth-redis
template:
metadata:
labels:
app: studio-auth-redis
spec:
containers:
- name: redis
image: redis:7-alpine
ports:
- containerPort: 6379
---
apiVersion: v1
kind: Service
metadata:
name: studio-auth-redis
namespace: studio-system
spec:
selector:
app: studio-auth-redis
ports:
- name: redis
port: 6379
targetPort: 6379