Integrate paymentservice to skaffold/k8s

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-06-21 14:22:09 -07:00
parent 25dd31952c
commit 9f1bc5a69c
3 changed files with 42 additions and 9 deletions

View file

@ -19,6 +19,10 @@ spec:
value: "productcatalogservice:3550" value: "productcatalogservice:3550"
- name: SHIPPING_SERVICE_ADDR - name: SHIPPING_SERVICE_ADDR
value: "shippingservice:50051" value: "shippingservice:50051"
- name: PAYMENT_SERVICE_ADDR
value: "paymentservice:50051"
- name: EMAIL_SERVICE_ADDR
value: "emailservice:5000"
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service

View file

@ -0,0 +1,27 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: paymentservice
spec:
template:
metadata:
labels:
app: paymentservice
spec:
containers:
- name: server
image: paymentservice
ports:
- containerPort: 50051
---
apiVersion: v1
kind: Service
metadata:
name: paymentservice
spec:
type: ClusterIP
selector:
app: paymentservice
ports:
- port: 50051
targetPort: 50051

View file

@ -12,6 +12,8 @@ build:
workspace: src/shippingservice workspace: src/shippingservice
- imageName: checkoutservice - imageName: checkoutservice
workspace: src/checkoutservice workspace: src/checkoutservice
- imageName: paymentservice
workspace: src/paymentservice
deploy: deploy:
kubectl: kubectl:
manifests: manifests: