增加service

pull/10/head
Jimmy Song 2017-05-16 19:03:27 +08:00
parent 7b4f23a96e
commit 6d1aa0d913
1 changed files with 16 additions and 0 deletions

View File

@ -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
```
**注意事项**