This commit is contained in:
lingxiao865
2026-02-10 08:22:09 +08:00
commit 0f38d49b66
71 changed files with 5494 additions and 0 deletions

44
k8s/auth-deployment.yaml Normal file
View File

@@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: auth-deployment
labels:
app: auth
spec:
replicas: 1
selector:
matchLabels:
app: auth
template:
metadata:
labels:
app: auth
spec:
containers:
- name: auth
image: 192.168.1.14:5000/auth:v33
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9000
volumeMounts:
- name: keys-secret
mountPath: keys
readOnly: true
volumes:
- name: keys-secret
secret:
secretName: app-keys
defaultMode: 0600
---
apiVersion: v1
kind: Service
metadata:
name: auth-service
spec:
selector:
app: auth
ports:
- protocol: TCP
port: 9000
targetPort: 9000
type: LoadBalancer