增加service
parent
7b4f23a96e
commit
6d1aa0d913
16
21-应用日志收集.md
16
21-应用日志收集.md
|
@ -69,12 +69,28 @@ spec:
|
|||
value: plain
|
||||
- image: sz-pg-oam-docker-hub-001.tendcloud.com/library/analytics-docker-test:Build_8
|
||||
name : app
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- name: app-logs
|
||||
mountPath: /usr/local/TalkingData/logs
|
||||
volumes:
|
||||
- name: app-logs
|
||||
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