Release v0.1.5 (#321)
This commit is contained in:
parent
c4daa1c260
commit
8e85c5bd79
3 changed files with 409 additions and 408 deletions
|
@ -40,12 +40,13 @@ fi
|
||||||
# update yaml
|
# update yaml
|
||||||
"${SCRIPTDIR}"/make-release-artifacts.sh
|
"${SCRIPTDIR}"/make-release-artifacts.sh
|
||||||
|
|
||||||
# create git release / push to master
|
# create git release / push to new branch
|
||||||
|
git checkout -b "release/${TAG}"
|
||||||
git add "${SCRIPTDIR}/../release/"
|
git add "${SCRIPTDIR}/../release/"
|
||||||
git commit --allow-empty -m "Release $TAG"
|
git commit --allow-empty -m "Release $TAG"
|
||||||
log "Pushing k8s manifests to master..."
|
log "Pushing k8s manifests to release/${TAG}..."
|
||||||
git tag "$TAG"
|
git tag "$TAG"
|
||||||
|
git push --set-upstream origin "release/${TAG}"
|
||||||
git push --tags
|
git push --tags
|
||||||
git push origin master
|
|
||||||
|
|
||||||
log "Successfully tagged release $TAG."
|
log "Successfully tagged release $TAG."
|
||||||
|
|
|
@ -16,6 +16,20 @@
|
||||||
# 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:
|
||||||
|
@ -48,20 +62,6 @@ 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,188 +16,6 @@
|
||||||
# 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.1.4
|
|
||||||
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.1.4
|
|
||||||
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.1.4
|
|
||||||
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:
|
||||||
|
@ -215,7 +33,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: server
|
- name: server
|
||||||
image: gcr.io/google-samples/microservices-demo/frontend:v0.1.4
|
image: gcr.io/google-samples/microservices-demo/frontend:v0.1.5
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
|
@ -307,7 +125,7 @@ spec:
|
||||||
terminationGracePeriodSeconds: 5
|
terminationGracePeriodSeconds: 5
|
||||||
containers:
|
containers:
|
||||||
- name: server
|
- name: server
|
||||||
image: gcr.io/google-samples/microservices-demo/paymentservice:v0.1.4
|
image: gcr.io/google-samples/microservices-demo/paymentservice:v0.1.5
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 50051
|
- containerPort: 50051
|
||||||
env:
|
env:
|
||||||
|
@ -343,115 +161,70 @@ spec:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: productcatalogservice
|
name: checkoutservice
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: productcatalogservice
|
app: checkoutservice
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: productcatalogservice
|
app: checkoutservice
|
||||||
spec:
|
spec:
|
||||||
terminationGracePeriodSeconds: 5
|
|
||||||
containers:
|
containers:
|
||||||
- name: server
|
- name: server
|
||||||
image: gcr.io/google-samples/microservices-demo/productcatalogservice:v0.1.4
|
image: gcr.io/google-samples/microservices-demo/checkoutservice:v0.1.5
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3550
|
- containerPort: 5050
|
||||||
env:
|
readinessProbe:
|
||||||
- name: PORT
|
exec:
|
||||||
value: "3550"
|
command: ["/bin/grpc_health_probe", "-addr=:5050"]
|
||||||
# - name: DISABLE_STATS
|
livenessProbe:
|
||||||
# value: "1"
|
exec:
|
||||||
# - name: DISABLE_TRACING
|
command: ["/bin/grpc_health_probe", "-addr=:5050"]
|
||||||
# value: "1"
|
env:
|
||||||
# - name: DISABLE_PROFILER
|
- name: PORT
|
||||||
# value: "1"
|
value: "5050"
|
||||||
# - name: JAEGER_SERVICE_ADDR
|
- name: PRODUCT_CATALOG_SERVICE_ADDR
|
||||||
# value: "jaeger-collector:14268"
|
value: "productcatalogservice:3550"
|
||||||
readinessProbe:
|
- name: SHIPPING_SERVICE_ADDR
|
||||||
exec:
|
value: "shippingservice:50051"
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:3550"]
|
- name: PAYMENT_SERVICE_ADDR
|
||||||
livenessProbe:
|
value: "paymentservice:50051"
|
||||||
exec:
|
- name: EMAIL_SERVICE_ADDR
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:3550"]
|
value: "emailservice:5000"
|
||||||
resources:
|
- name: CURRENCY_SERVICE_ADDR
|
||||||
requests:
|
value: "currencyservice:7000"
|
||||||
cpu: 100m
|
- name: CART_SERVICE_ADDR
|
||||||
memory: 64Mi
|
value: "cartservice:7070"
|
||||||
limits:
|
# - name: DISABLE_STATS
|
||||||
cpu: 200m
|
# value: "1"
|
||||||
memory: 128Mi
|
# - 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
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: productcatalogservice
|
name: checkoutservice
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
selector:
|
selector:
|
||||||
app: productcatalogservice
|
app: checkoutservice
|
||||||
ports:
|
ports:
|
||||||
- name: grpc
|
- name: grpc
|
||||||
port: 3550
|
port: 5050
|
||||||
targetPort: 3550
|
targetPort: 5050
|
||||||
---
|
|
||||||
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.4
|
|
||||||
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
|
||||||
|
@ -473,7 +246,7 @@ spec:
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
containers:
|
containers:
|
||||||
- name: main
|
- name: main
|
||||||
image: gcr.io/google-samples/microservices-demo/loadgenerator:v0.1.4
|
image: gcr.io/google-samples/microservices-demo/loadgenerator:v0.1.5
|
||||||
env:
|
env:
|
||||||
- name: FRONTEND_ADDR
|
- name: FRONTEND_ADDR
|
||||||
value: "frontend:80"
|
value: "frontend:80"
|
||||||
|
@ -489,119 +262,6 @@ 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.1.4
|
|
||||||
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.1.4
|
|
||||||
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:
|
||||||
|
@ -655,6 +315,120 @@ 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:
|
||||||
|
@ -669,7 +443,7 @@ spec:
|
||||||
terminationGracePeriodSeconds: 5
|
terminationGracePeriodSeconds: 5
|
||||||
containers:
|
containers:
|
||||||
- name: server
|
- name: server
|
||||||
image: gcr.io/google-samples/microservices-demo/adservice:v0.1.4
|
image: gcr.io/google-samples/microservices-demo/adservice:v0.1.5
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9555
|
- containerPort: 9555
|
||||||
env:
|
env:
|
||||||
|
@ -712,3 +486,229 @@ 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