websocket增加skywalking相关配置
This commit is contained in:
parent
03de7023dd
commit
fb4306cbb6
@ -21,10 +21,28 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: iot-box-websocket-api
|
app: iot-box-websocket-api
|
||||||
spec:
|
spec:
|
||||||
|
initContainers:
|
||||||
|
- name: agent-container
|
||||||
|
image: apache/skywalking-java-agent:9.0.0-java8
|
||||||
|
volumeMounts:
|
||||||
|
- name: skywalking-agent
|
||||||
|
mountPath: /agent
|
||||||
|
command: [ "/bin/sh" ]
|
||||||
|
args: [ "-c", "cp /skywalking/agent/optional-plugins/apm-nacos-client-2.x-plugin-9.0.0.jar /skywalking/agent/plugins/\n
|
||||||
|
cp /skywalking/agent/optional-plugins/apm-spring-cloud-gateway-3.x-plugin-9.0.0.jar /skywalking/agent/plugins/\n
|
||||||
|
cp /skywalking/agent/optional-plugins/apm-spring-webflux-5.x-plugin-9.0.0.jar /skywalking/agent/plugins/ \n
|
||||||
|
cp -R /skywalking/agent /agent/" ]
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: aliyun-hub-register #提前在项目下配置访问阿里云的账号密码
|
- name: aliyun-hub-register #提前在项目下配置访问阿里云的账号密码
|
||||||
containers:
|
containers:
|
||||||
- image: $REGISTRY/$DOCKERHUB_NAMESPACE/qiuguo-iot:iot-box-websocket-api-test-v$BUILD_NUMBER
|
- image: $REGISTRY/$DOCKERHUB_NAMESPACE/qiuguo-iot:iot-box-websocket-api-test-v$BUILD_NUMBER
|
||||||
|
env:
|
||||||
|
- name: JAVA_TOOL_OPTIONS
|
||||||
|
value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
|
||||||
|
- name: SW_AGENT_NAME
|
||||||
|
value: "iot-box-websocket-api"
|
||||||
|
- name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
|
||||||
|
value: "skywalking-oap.skywalking:11800"
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /actuator/health
|
path: /actuator/health
|
||||||
@ -47,6 +65,8 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /home/qiuguo/logs
|
- mountPath: /home/qiuguo/logs
|
||||||
name: iot-logs
|
name: iot-logs
|
||||||
|
- name: skywalking-agent
|
||||||
|
mountPath: /skywalking
|
||||||
terminationMessagePath: /nfs/data/qiuguo/iot/logs
|
terminationMessagePath: /nfs/data/qiuguo/iot/logs
|
||||||
terminationMessagePolicy: File
|
terminationMessagePolicy: File
|
||||||
dnsPolicy: ClusterFirst
|
dnsPolicy: ClusterFirst
|
||||||
@ -56,6 +76,8 @@ spec:
|
|||||||
- name: iot-logs
|
- name: iot-logs
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /nfs/data/qiuguo/iot/logs
|
path: /nfs/data/qiuguo/iot/logs
|
||||||
|
- name: skywalking-agent
|
||||||
|
emptyDir: { }
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user