增加service

pull/10/head
Jimmy Song 2017-05-16 19:01:25 +08:00
parent 51fd3c2326
commit 7b4f23a96e
1 changed files with 16 additions and 0 deletions

View File

@ -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