first commit

This commit is contained in:
hz
2026-05-18 13:00:55 -05:00
commit cbce1590f5
36 changed files with 3575 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: territory-autobattler-auth-config
namespace: territory-autobattler
data:
MongoDB__ConnectionString: mongodb://192.168.86.50:27017
MongoDB__DatabaseName: territory-autobattler
Jwt__Issuer: territory-autobattler
Jwt__Audience: territory-autobattler-auth-api
+34
View File
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: territory-autobattler-auth
namespace: territory-autobattler
labels:
app: territory-autobattler-auth
spec:
replicas: 2
selector:
matchLabels:
app: territory-autobattler-auth
template:
metadata:
labels:
app: territory-autobattler-auth
spec:
containers:
- name: territory-autobattler-auth
image: territory-autobattler-auth:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
envFrom:
- configMapRef:
name: territory-autobattler-auth-config
- secretRef:
name: territory-autobattler-auth-secrets
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
+4
View File
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: territory-autobattler
+8
View File
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Secret
metadata:
name: territory-autobattler-auth-secrets
namespace: territory-autobattler
type: Opaque
stringData:
Jwt__Key: SuperUltraSecureJwtKeyWithAtLeast32Chars!!
+16
View File
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: territory-autobattler-auth
namespace: territory-autobattler
labels:
app: territory-autobattler-auth
spec:
selector:
app: territory-autobattler-auth
type: NodePort
ports:
- name: http
port: 80
targetPort: 8080
nodePort: 30081