AI分析中心服务 add 配置文件
This commit is contained in:
82
ai-analytic-center-biz/deployment.yaml
Normal file
82
ai-analytic-center-biz/deployment.yaml
Normal file
@@ -0,0 +1,82 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
namespace: uat-aicenter
|
||||
name: ai-analytic-center
|
||||
labels:
|
||||
app: ai-analytic-center
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: ai-analytic-center
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: ai-analytic-center
|
||||
spec:
|
||||
nodeSelector:
|
||||
newbie-business: uat-aicenter
|
||||
imagePullSecrets:
|
||||
- name: nexus-key
|
||||
containers:
|
||||
- name: ai-analytic-center
|
||||
image: "devops.digitalvolvo.com/nexus/repository/newbie-yongyou-docker-registry/uat/ai-analytic-center:202412181717"
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
limits:
|
||||
cpu: 1000m
|
||||
memory: 1024Mi
|
||||
requests:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: ai-analytic-center
|
||||
env:
|
||||
- name: JAVA_OPTS
|
||||
value: >-
|
||||
-Dspring.cloud.nacos.config.server-addr=http://124.71.146.29:8848
|
||||
-Dspring.cloud.nacos.config.namespace=dev-nacos-tech
|
||||
-Dspring.cloud.nacos.config.group=dev
|
||||
- name: SW_AGENT_NAME
|
||||
value: ai-analytic-center
|
||||
- name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: SW_AGENT_COLLECTOR_BACKEND_SERVICES
|
||||
name: skywalking-config-full
|
||||
- name: SPRING_ACTIVE_ENV
|
||||
value: 'uat'
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: 8080
|
||||
initialDelaySeconds: 600
|
||||
periodSeconds: 30
|
||||
failureThreshold: 2
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: 8080
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
failureThreshold: 1
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 10
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: newbie-java-ai-analytic-center-svc
|
||||
labels:
|
||||
app: newbie-java-ai-analytic-center-svc
|
||||
spec:
|
||||
ports:
|
||||
- port: 8080
|
||||
name: newbie-java-ai-analytic-center-svc
|
||||
selector:
|
||||
app: ai-analytic-center
|
||||
Reference in New Issue
Block a user