Integrate paymentservice to skaffold/k8s
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
25dd31952c
commit
9f1bc5a69c
3 changed files with 42 additions and 9 deletions
|
@ -10,15 +10,19 @@ spec:
|
|||
app: checkoutservice
|
||||
spec:
|
||||
containers:
|
||||
- name: server
|
||||
image: checkoutservice
|
||||
ports:
|
||||
- containerPort: 5050
|
||||
env:
|
||||
- name: PRODUCT_CATALOG_SERVICE_ADDR
|
||||
value: "productcatalogservice:3550"
|
||||
- name: SHIPPING_SERVICE_ADDR
|
||||
value: "shippingservice:50051"
|
||||
- name: server
|
||||
image: checkoutservice
|
||||
ports:
|
||||
- containerPort: 5050
|
||||
env:
|
||||
- name: PRODUCT_CATALOG_SERVICE_ADDR
|
||||
value: "productcatalogservice:3550"
|
||||
- name: SHIPPING_SERVICE_ADDR
|
||||
value: "shippingservice:50051"
|
||||
- name: PAYMENT_SERVICE_ADDR
|
||||
value: "paymentservice:50051"
|
||||
- name: EMAIL_SERVICE_ADDR
|
||||
value: "emailservice:5000"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
|
27
kubernetes-manifests/paymentservice.yaml
Normal file
27
kubernetes-manifests/paymentservice.yaml
Normal 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
|
|
@ -12,6 +12,8 @@ build:
|
|||
workspace: src/shippingservice
|
||||
- imageName: checkoutservice
|
||||
workspace: src/checkoutservice
|
||||
- imageName: paymentservice
|
||||
workspace: src/paymentservice
|
||||
deploy:
|
||||
kubectl:
|
||||
manifests:
|
||||
|
|
Loading…
Reference in a new issue