增加service
parent
51fd3c2326
commit
7b4f23a96e
|
@ -31,9 +31,25 @@ 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