增加service
parent
7b4f23a96e
commit
6d1aa0d913
16
21-应用日志收集.md
16
21-应用日志收集.md
|
@ -69,12 +69,28 @@ spec:
|
||||||
value: plain
|
value: plain
|
||||||
- image: sz-pg-oam-docker-hub-001.tendcloud.com/library/analytics-docker-test:Build_8
|
- image: sz-pg-oam-docker-hub-001.tendcloud.com/library/analytics-docker-test:Build_8
|
||||||
name : app
|
name : app
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: app-logs
|
- name: app-logs
|
||||||
mountPath: /usr/local/TalkingData/logs
|
mountPath: /usr/local/TalkingData/logs
|
||||||
volumes:
|
volumes:
|
||||||
- name: app-logs
|
- name: app-logs
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: logstash-test
|
||||||
|
labels:
|
||||||
|
app: logstash-test
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
|
selector:
|
||||||
|
run: logstash-test
|
||||||
```
|
```
|
||||||
|
|
||||||
**注意事项**
|
**注意事项**
|
||||||
|
|
Loading…
Reference in New Issue