Release v0.2.0 (#331)
This commit is contained in:
parent
52fdde2e7f
commit
fda80607e8
2 changed files with 407 additions and 405 deletions
|
@ -16,20 +16,6 @@
|
||||||
# WARNING: This file is autogenerated. Do not manually edit.
|
# WARNING: This file is autogenerated. Do not manually edit.
|
||||||
# ----------------------------------------------------------
|
# ----------------------------------------------------------
|
||||||
|
|
||||||
apiVersion: networking.istio.io/v1alpha3
|
|
||||||
kind: VirtualService
|
|
||||||
metadata:
|
|
||||||
name: frontend
|
|
||||||
spec:
|
|
||||||
hosts:
|
|
||||||
- "frontend.default.svc.cluster.local"
|
|
||||||
http:
|
|
||||||
- route:
|
|
||||||
- destination:
|
|
||||||
host: frontend
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
---
|
|
||||||
apiVersion: networking.istio.io/v1alpha3
|
apiVersion: networking.istio.io/v1alpha3
|
||||||
kind: Gateway
|
kind: Gateway
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -62,6 +48,20 @@ spec:
|
||||||
number: 80
|
number: 80
|
||||||
---
|
---
|
||||||
apiVersion: networking.istio.io/v1alpha3
|
apiVersion: networking.istio.io/v1alpha3
|
||||||
|
kind: VirtualService
|
||||||
|
metadata:
|
||||||
|
name: frontend
|
||||||
|
spec:
|
||||||
|
hosts:
|
||||||
|
- "frontend.default.svc.cluster.local"
|
||||||
|
http:
|
||||||
|
- route:
|
||||||
|
- destination:
|
||||||
|
host: frontend
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
---
|
||||||
|
apiVersion: networking.istio.io/v1alpha3
|
||||||
kind: ServiceEntry
|
kind: ServiceEntry
|
||||||
metadata:
|
metadata:
|
||||||
name: whitelist-egress-googleapis
|
name: whitelist-egress-googleapis
|
||||||
|
|
|
@ -16,6 +16,188 @@
|
||||||
# WARNING: This file is autogenerated. Do not manually edit.
|
# WARNING: This file is autogenerated. Do not manually edit.
|
||||||
# ----------------------------------------------------------
|
# ----------------------------------------------------------
|
||||||
|
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: emailservice
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: emailservice
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: emailservice
|
||||||
|
spec:
|
||||||
|
terminationGracePeriodSeconds: 5
|
||||||
|
containers:
|
||||||
|
- name: server
|
||||||
|
image: gcr.io/google-samples/microservices-demo/emailservice:v0.2.0
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
env:
|
||||||
|
- name: PORT
|
||||||
|
value: "8080"
|
||||||
|
# - name: DISABLE_TRACING
|
||||||
|
# value: "1"
|
||||||
|
- name: DISABLE_PROFILER
|
||||||
|
value: "1"
|
||||||
|
readinessProbe:
|
||||||
|
periodSeconds: 5
|
||||||
|
exec:
|
||||||
|
command: ["/bin/grpc_health_probe", "-addr=:8080"]
|
||||||
|
livenessProbe:
|
||||||
|
periodSeconds: 5
|
||||||
|
exec:
|
||||||
|
command: ["/bin/grpc_health_probe", "-addr=:8080"]
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 128Mi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: emailservice
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: emailservice
|
||||||
|
ports:
|
||||||
|
- name: grpc
|
||||||
|
port: 5000
|
||||||
|
targetPort: 8080
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: checkoutservice
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: checkoutservice
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: checkoutservice
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: server
|
||||||
|
image: gcr.io/google-samples/microservices-demo/checkoutservice:v0.2.0
|
||||||
|
ports:
|
||||||
|
- containerPort: 5050
|
||||||
|
readinessProbe:
|
||||||
|
exec:
|
||||||
|
command: ["/bin/grpc_health_probe", "-addr=:5050"]
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command: ["/bin/grpc_health_probe", "-addr=:5050"]
|
||||||
|
env:
|
||||||
|
- name: PORT
|
||||||
|
value: "5050"
|
||||||
|
- 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"
|
||||||
|
- name: CURRENCY_SERVICE_ADDR
|
||||||
|
value: "currencyservice:7000"
|
||||||
|
- name: CART_SERVICE_ADDR
|
||||||
|
value: "cartservice:7070"
|
||||||
|
# - name: DISABLE_STATS
|
||||||
|
# value: "1"
|
||||||
|
# - name: DISABLE_TRACING
|
||||||
|
# value: "1"
|
||||||
|
# - name: DISABLE_PROFILER
|
||||||
|
# value: "1"
|
||||||
|
# - name: JAEGER_SERVICE_ADDR
|
||||||
|
# value: "jaeger-collector:14268"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 128Mi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: checkoutservice
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: checkoutservice
|
||||||
|
ports:
|
||||||
|
- name: grpc
|
||||||
|
port: 5050
|
||||||
|
targetPort: 5050
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: recommendationservice
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: recommendationservice
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: recommendationservice
|
||||||
|
spec:
|
||||||
|
terminationGracePeriodSeconds: 5
|
||||||
|
containers:
|
||||||
|
- name: server
|
||||||
|
image: gcr.io/google-samples/microservices-demo/recommendationservice:v0.2.0
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
readinessProbe:
|
||||||
|
periodSeconds: 5
|
||||||
|
exec:
|
||||||
|
command: ["/bin/grpc_health_probe", "-addr=:8080"]
|
||||||
|
livenessProbe:
|
||||||
|
periodSeconds: 5
|
||||||
|
exec:
|
||||||
|
command: ["/bin/grpc_health_probe", "-addr=:8080"]
|
||||||
|
env:
|
||||||
|
- name: PORT
|
||||||
|
value: "8080"
|
||||||
|
- name: PRODUCT_CATALOG_SERVICE_ADDR
|
||||||
|
value: "productcatalogservice:3550"
|
||||||
|
# - name: DISABLE_TRACING
|
||||||
|
# value: "1"
|
||||||
|
# - name: DISABLE_PROFILER
|
||||||
|
# value: "1"
|
||||||
|
# - name: DISABLE_DEBUGGER
|
||||||
|
# value: "1"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 220Mi
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 450Mi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: recommendationservice
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: recommendationservice
|
||||||
|
ports:
|
||||||
|
- name: grpc
|
||||||
|
port: 8080
|
||||||
|
targetPort: 8080
|
||||||
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -33,7 +215,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: server
|
- name: server
|
||||||
image: gcr.io/google-samples/microservices-demo/frontend:v0.1.5
|
image: gcr.io/google-samples/microservices-demo/frontend:v0.2.0
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
|
@ -69,6 +251,8 @@ spec:
|
||||||
value: "checkoutservice:5050"
|
value: "checkoutservice:5050"
|
||||||
- name: AD_SERVICE_ADDR
|
- name: AD_SERVICE_ADDR
|
||||||
value: "adservice:9555"
|
value: "adservice:9555"
|
||||||
|
- name: ENV_PLATFORM
|
||||||
|
value: "gcp"
|
||||||
# - name: DISABLE_TRACING
|
# - name: DISABLE_TRACING
|
||||||
# value: "1"
|
# value: "1"
|
||||||
# - name: DISABLE_PROFILER
|
# - name: DISABLE_PROFILER
|
||||||
|
@ -125,7 +309,7 @@ spec:
|
||||||
terminationGracePeriodSeconds: 5
|
terminationGracePeriodSeconds: 5
|
||||||
containers:
|
containers:
|
||||||
- name: server
|
- name: server
|
||||||
image: gcr.io/google-samples/microservices-demo/paymentservice:v0.1.5
|
image: gcr.io/google-samples/microservices-demo/paymentservice:v0.2.0
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 50051
|
- containerPort: 50051
|
||||||
env:
|
env:
|
||||||
|
@ -161,42 +345,25 @@ spec:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: checkoutservice
|
name: productcatalogservice
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: checkoutservice
|
app: productcatalogservice
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: checkoutservice
|
app: productcatalogservice
|
||||||
spec:
|
spec:
|
||||||
|
terminationGracePeriodSeconds: 5
|
||||||
containers:
|
containers:
|
||||||
- name: server
|
- name: server
|
||||||
image: gcr.io/google-samples/microservices-demo/checkoutservice:v0.1.5
|
image: gcr.io/google-samples/microservices-demo/productcatalogservice:v0.2.0
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5050
|
- containerPort: 3550
|
||||||
readinessProbe:
|
|
||||||
exec:
|
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:5050"]
|
|
||||||
livenessProbe:
|
|
||||||
exec:
|
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:5050"]
|
|
||||||
env:
|
env:
|
||||||
- name: PORT
|
- name: PORT
|
||||||
value: "5050"
|
value: "3550"
|
||||||
- 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"
|
|
||||||
- name: CURRENCY_SERVICE_ADDR
|
|
||||||
value: "currencyservice:7000"
|
|
||||||
- name: CART_SERVICE_ADDR
|
|
||||||
value: "cartservice:7070"
|
|
||||||
# - name: DISABLE_STATS
|
# - name: DISABLE_STATS
|
||||||
# value: "1"
|
# value: "1"
|
||||||
# - name: DISABLE_TRACING
|
# - name: DISABLE_TRACING
|
||||||
|
@ -205,6 +372,12 @@ spec:
|
||||||
# value: "1"
|
# value: "1"
|
||||||
# - name: JAEGER_SERVICE_ADDR
|
# - name: JAEGER_SERVICE_ADDR
|
||||||
# value: "jaeger-collector:14268"
|
# value: "jaeger-collector:14268"
|
||||||
|
readinessProbe:
|
||||||
|
exec:
|
||||||
|
command: ["/bin/grpc_health_probe", "-addr=:3550"]
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command: ["/bin/grpc_health_probe", "-addr=:3550"]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
@ -216,15 +389,71 @@ spec:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: checkoutservice
|
name: productcatalogservice
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
selector:
|
selector:
|
||||||
app: checkoutservice
|
app: productcatalogservice
|
||||||
ports:
|
ports:
|
||||||
- name: grpc
|
- name: grpc
|
||||||
port: 5050
|
port: 3550
|
||||||
targetPort: 5050
|
targetPort: 3550
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: cartservice
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: cartservice
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: cartservice
|
||||||
|
spec:
|
||||||
|
terminationGracePeriodSeconds: 5
|
||||||
|
containers:
|
||||||
|
- name: server
|
||||||
|
image: gcr.io/google-samples/microservices-demo/cartservice:v0.2.0
|
||||||
|
ports:
|
||||||
|
- containerPort: 7070
|
||||||
|
env:
|
||||||
|
- name: REDIS_ADDR
|
||||||
|
value: "redis-cart:6379"
|
||||||
|
- name: PORT
|
||||||
|
value: "7070"
|
||||||
|
- name: LISTEN_ADDR
|
||||||
|
value: "0.0.0.0"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
cpu: 300m
|
||||||
|
memory: 128Mi
|
||||||
|
readinessProbe:
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
exec:
|
||||||
|
command: ["/bin/grpc_health_probe", "-addr=:7070", "-rpc-timeout=5s"]
|
||||||
|
livenessProbe:
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
periodSeconds: 10
|
||||||
|
exec:
|
||||||
|
command: ["/bin/grpc_health_probe", "-addr=:7070", "-rpc-timeout=5s"]
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: cartservice
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: cartservice
|
||||||
|
ports:
|
||||||
|
- name: grpc
|
||||||
|
port: 7070
|
||||||
|
targetPort: 7070
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
@ -246,7 +475,7 @@ spec:
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
containers:
|
containers:
|
||||||
- name: main
|
- name: main
|
||||||
image: gcr.io/google-samples/microservices-demo/loadgenerator:v0.1.5
|
image: gcr.io/google-samples/microservices-demo/loadgenerator:v0.2.0
|
||||||
env:
|
env:
|
||||||
- name: FRONTEND_ADDR
|
- name: FRONTEND_ADDR
|
||||||
value: "frontend:80"
|
value: "frontend:80"
|
||||||
|
@ -262,6 +491,119 @@ spec:
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: currencyservice
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: currencyservice
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: currencyservice
|
||||||
|
spec:
|
||||||
|
terminationGracePeriodSeconds: 5
|
||||||
|
containers:
|
||||||
|
- name: server
|
||||||
|
image: gcr.io/google-samples/microservices-demo/currencyservice:v0.2.0
|
||||||
|
ports:
|
||||||
|
- name: grpc
|
||||||
|
containerPort: 7000
|
||||||
|
env:
|
||||||
|
- name: PORT
|
||||||
|
value: "7000"
|
||||||
|
# - name: DISABLE_TRACING
|
||||||
|
# value: "1"
|
||||||
|
# - name: DISABLE_PROFILER
|
||||||
|
# value: "1"
|
||||||
|
# - name: DISABLE_DEBUGGER
|
||||||
|
# value: "1"
|
||||||
|
readinessProbe:
|
||||||
|
exec:
|
||||||
|
command: ["/bin/grpc_health_probe", "-addr=:7000"]
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command: ["/bin/grpc_health_probe", "-addr=:7000"]
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 128Mi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: currencyservice
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: currencyservice
|
||||||
|
ports:
|
||||||
|
- name: grpc
|
||||||
|
port: 7000
|
||||||
|
targetPort: 7000
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: shippingservice
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: shippingservice
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: shippingservice
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: server
|
||||||
|
image: gcr.io/google-samples/microservices-demo/shippingservice:v0.2.0
|
||||||
|
ports:
|
||||||
|
- containerPort: 50051
|
||||||
|
env:
|
||||||
|
- name: PORT
|
||||||
|
value: "50051"
|
||||||
|
# - name: DISABLE_STATS
|
||||||
|
# value: "1"
|
||||||
|
# - name: DISABLE_TRACING
|
||||||
|
# value: "1"
|
||||||
|
# - name: DISABLE_PROFILER
|
||||||
|
# value: "1"
|
||||||
|
# - name: JAEGER_SERVICE_ADDR
|
||||||
|
# value: "jaeger-collector:14268"
|
||||||
|
readinessProbe:
|
||||||
|
periodSeconds: 5
|
||||||
|
exec:
|
||||||
|
command: ["/bin/grpc_health_probe", "-addr=:50051"]
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command: ["/bin/grpc_health_probe", "-addr=:50051"]
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 128Mi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: shippingservice
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: shippingservice
|
||||||
|
ports:
|
||||||
|
- name: grpc
|
||||||
|
port: 50051
|
||||||
|
targetPort: 50051
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: redis-cart
|
name: redis-cart
|
||||||
spec:
|
spec:
|
||||||
|
@ -315,120 +657,6 @@ spec:
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
|
||||||
name: productcatalogservice
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: productcatalogservice
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: productcatalogservice
|
|
||||||
spec:
|
|
||||||
terminationGracePeriodSeconds: 5
|
|
||||||
containers:
|
|
||||||
- name: server
|
|
||||||
image: gcr.io/google-samples/microservices-demo/productcatalogservice:v0.1.5
|
|
||||||
ports:
|
|
||||||
- containerPort: 3550
|
|
||||||
env:
|
|
||||||
- name: PORT
|
|
||||||
value: "3550"
|
|
||||||
# - name: DISABLE_STATS
|
|
||||||
# value: "1"
|
|
||||||
# - name: DISABLE_TRACING
|
|
||||||
# value: "1"
|
|
||||||
# - name: DISABLE_PROFILER
|
|
||||||
# value: "1"
|
|
||||||
# - name: JAEGER_SERVICE_ADDR
|
|
||||||
# value: "jaeger-collector:14268"
|
|
||||||
readinessProbe:
|
|
||||||
exec:
|
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:3550"]
|
|
||||||
livenessProbe:
|
|
||||||
exec:
|
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:3550"]
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 64Mi
|
|
||||||
limits:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 128Mi
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: productcatalogservice
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: productcatalogservice
|
|
||||||
ports:
|
|
||||||
- name: grpc
|
|
||||||
port: 3550
|
|
||||||
targetPort: 3550
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: shippingservice
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: shippingservice
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: shippingservice
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: server
|
|
||||||
image: gcr.io/google-samples/microservices-demo/shippingservice:v0.1.5
|
|
||||||
ports:
|
|
||||||
- containerPort: 50051
|
|
||||||
env:
|
|
||||||
- name: PORT
|
|
||||||
value: "50051"
|
|
||||||
# - name: DISABLE_STATS
|
|
||||||
# value: "1"
|
|
||||||
# - name: DISABLE_TRACING
|
|
||||||
# value: "1"
|
|
||||||
# - name: DISABLE_PROFILER
|
|
||||||
# value: "1"
|
|
||||||
# - name: JAEGER_SERVICE_ADDR
|
|
||||||
# value: "jaeger-collector:14268"
|
|
||||||
readinessProbe:
|
|
||||||
periodSeconds: 5
|
|
||||||
exec:
|
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:50051"]
|
|
||||||
livenessProbe:
|
|
||||||
exec:
|
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:50051"]
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 64Mi
|
|
||||||
limits:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 128Mi
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: shippingservice
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: shippingservice
|
|
||||||
ports:
|
|
||||||
- name: grpc
|
|
||||||
port: 50051
|
|
||||||
targetPort: 50051
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
metadata:
|
||||||
name: adservice
|
name: adservice
|
||||||
spec:
|
spec:
|
||||||
|
@ -443,7 +671,7 @@ spec:
|
||||||
terminationGracePeriodSeconds: 5
|
terminationGracePeriodSeconds: 5
|
||||||
containers:
|
containers:
|
||||||
- name: server
|
- name: server
|
||||||
image: gcr.io/google-samples/microservices-demo/adservice:v0.1.5
|
image: gcr.io/google-samples/microservices-demo/adservice:v0.2.0
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9555
|
- containerPort: 9555
|
||||||
env:
|
env:
|
||||||
|
@ -486,229 +714,3 @@ spec:
|
||||||
port: 9555
|
port: 9555
|
||||||
targetPort: 9555
|
targetPort: 9555
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: currencyservice
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: currencyservice
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: currencyservice
|
|
||||||
spec:
|
|
||||||
terminationGracePeriodSeconds: 5
|
|
||||||
containers:
|
|
||||||
- name: server
|
|
||||||
image: gcr.io/google-samples/microservices-demo/currencyservice:v0.1.5
|
|
||||||
ports:
|
|
||||||
- name: grpc
|
|
||||||
containerPort: 7000
|
|
||||||
env:
|
|
||||||
- name: PORT
|
|
||||||
value: "7000"
|
|
||||||
# - name: DISABLE_TRACING
|
|
||||||
# value: "1"
|
|
||||||
# - name: DISABLE_PROFILER
|
|
||||||
# value: "1"
|
|
||||||
# - name: DISABLE_DEBUGGER
|
|
||||||
# value: "1"
|
|
||||||
readinessProbe:
|
|
||||||
exec:
|
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:7000"]
|
|
||||||
livenessProbe:
|
|
||||||
exec:
|
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:7000"]
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 64Mi
|
|
||||||
limits:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 128Mi
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: currencyservice
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: currencyservice
|
|
||||||
ports:
|
|
||||||
- name: grpc
|
|
||||||
port: 7000
|
|
||||||
targetPort: 7000
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: recommendationservice
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: recommendationservice
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: recommendationservice
|
|
||||||
spec:
|
|
||||||
terminationGracePeriodSeconds: 5
|
|
||||||
containers:
|
|
||||||
- name: server
|
|
||||||
image: gcr.io/google-samples/microservices-demo/recommendationservice:v0.1.5
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
readinessProbe:
|
|
||||||
periodSeconds: 5
|
|
||||||
exec:
|
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:8080"]
|
|
||||||
livenessProbe:
|
|
||||||
periodSeconds: 5
|
|
||||||
exec:
|
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:8080"]
|
|
||||||
env:
|
|
||||||
- name: PORT
|
|
||||||
value: "8080"
|
|
||||||
- name: PRODUCT_CATALOG_SERVICE_ADDR
|
|
||||||
value: "productcatalogservice:3550"
|
|
||||||
# - name: DISABLE_TRACING
|
|
||||||
# value: "1"
|
|
||||||
# - name: DISABLE_PROFILER
|
|
||||||
# value: "1"
|
|
||||||
# - name: DISABLE_DEBUGGER
|
|
||||||
# value: "1"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 220Mi
|
|
||||||
limits:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 450Mi
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: recommendationservice
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: recommendationservice
|
|
||||||
ports:
|
|
||||||
- name: grpc
|
|
||||||
port: 8080
|
|
||||||
targetPort: 8080
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: cartservice
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: cartservice
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: cartservice
|
|
||||||
spec:
|
|
||||||
terminationGracePeriodSeconds: 5
|
|
||||||
containers:
|
|
||||||
- name: server
|
|
||||||
image: gcr.io/google-samples/microservices-demo/cartservice:v0.1.5
|
|
||||||
ports:
|
|
||||||
- containerPort: 7070
|
|
||||||
env:
|
|
||||||
- name: REDIS_ADDR
|
|
||||||
value: "redis-cart:6379"
|
|
||||||
- name: PORT
|
|
||||||
value: "7070"
|
|
||||||
- name: LISTEN_ADDR
|
|
||||||
value: "0.0.0.0"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 64Mi
|
|
||||||
limits:
|
|
||||||
cpu: 300m
|
|
||||||
memory: 128Mi
|
|
||||||
readinessProbe:
|
|
||||||
initialDelaySeconds: 15
|
|
||||||
exec:
|
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:7070", "-rpc-timeout=5s"]
|
|
||||||
livenessProbe:
|
|
||||||
initialDelaySeconds: 15
|
|
||||||
periodSeconds: 10
|
|
||||||
exec:
|
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:7070", "-rpc-timeout=5s"]
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: cartservice
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: cartservice
|
|
||||||
ports:
|
|
||||||
- name: grpc
|
|
||||||
port: 7070
|
|
||||||
targetPort: 7070
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: emailservice
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: emailservice
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: emailservice
|
|
||||||
spec:
|
|
||||||
terminationGracePeriodSeconds: 5
|
|
||||||
containers:
|
|
||||||
- name: server
|
|
||||||
image: gcr.io/google-samples/microservices-demo/emailservice:v0.1.5
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
env:
|
|
||||||
- name: PORT
|
|
||||||
value: "8080"
|
|
||||||
# - name: DISABLE_TRACING
|
|
||||||
# value: "1"
|
|
||||||
- name: DISABLE_PROFILER
|
|
||||||
value: "1"
|
|
||||||
readinessProbe:
|
|
||||||
periodSeconds: 5
|
|
||||||
exec:
|
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:8080"]
|
|
||||||
livenessProbe:
|
|
||||||
periodSeconds: 5
|
|
||||||
exec:
|
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:8080"]
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 64Mi
|
|
||||||
limits:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 128Mi
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: emailservice
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: emailservice
|
|
||||||
ports:
|
|
||||||
- name: grpc
|
|
||||||
port: 5000
|
|
||||||
targetPort: 8080
|
|
||||||
---
|
|
||||||
|
|
Loading…
Reference in a new issue