From 09e67cd834f78b2c3553ce420249988d10f51c23 Mon Sep 17 00:00:00 2001 From: cat-shark <1716967236@qq.com> Date: Sun, 26 Jul 2026 21:35:51 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20remove=20k8s/=20=E2=80=94=20migrated?= =?UTF-8?q?=20to=20lpt-infra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/deployment.yaml | 73 --------------------------------------------- k8s/service.yaml | 16 ---------- 2 files changed, 89 deletions(-) delete mode 100644 k8s/deployment.yaml delete mode 100644 k8s/service.yaml diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml deleted file mode 100644 index 797a064..0000000 --- a/k8s/deployment.yaml +++ /dev/null @@ -1,73 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: lpt-be - namespace: lpt-dev - labels: - app: lpt-be -spec: - replicas: 1 - selector: - matchLabels: - app: lpt-be - strategy: - type: RollingUpdate - rollingUpdate: - maxSurge: 25% - maxUnavailable: 25% - template: - metadata: - labels: - app: lpt-be - spec: - imagePullSecrets: - - name: regcred - containers: - - name: lpt-be - image: 192.168.123.199:5000/lpt-be:dev - imagePullPolicy: IfNotPresent - ports: - - containerPort: 8888 - env: - - name: SPRING_PROFILES_ACTIVE - value: dev - - name: SPRING_DATASOURCE_URL - valueFrom: - configMapKeyRef: - name: lpt-config - key: SPRING_DATASOURCE_URL - - name: SPRING_DATASOURCE_USERNAME - value: root - - name: SPRING_DATASOURCE_PASSWORD - valueFrom: - secretKeyRef: - name: lpt-secrets - key: mysql-root-password - - name: LPT_AI-SERVICE_URL - valueFrom: - configMapKeyRef: - name: lpt-config - key: LPT_AI-SERVICE_URL - resources: - requests: - cpu: 250m - memory: 512Mi - limits: - cpu: "1" - memory: 1Gi - livenessProbe: - httpGet: - path: /actuator/health - port: 8888 - initialDelaySeconds: 60 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 3 - readinessProbe: - httpGet: - path: /actuator/health - port: 8888 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 3 diff --git a/k8s/service.yaml b/k8s/service.yaml deleted file mode 100644 index 7337332..0000000 --- a/k8s/service.yaml +++ /dev/null @@ -1,16 +0,0 @@ -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