Add Kubernetes deployment configurations

- Add deployment.yaml with imagePullSecrets and env configuration
- Add service.yaml with NodePort configuration
- Configure Spring Boot environment variables from ConfigMap and Secrets
- Ensures proper image pull authentication from private registry

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-20 21:23:59 +08:00
parent d5d9b7aa99
commit 43580dd1fd
2 changed files with 89 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: lpt-be
namespace: lpt-dev
labels:
app: lpt-be
spec:
type: NodePort
selector:
app: lpt-be
ports:
- port: 8888
targetPort: 8888
nodePort: 30082
protocol: TCP