updated knative manifests
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
ceff7a8412
commit
cd2b45ab16
1 changed files with 319 additions and 295 deletions
|
@ -1,26 +1,27 @@
|
|||
apiVersion: serving.knative.dev/v1alpha1
|
||||
apiVersion: serving.knative.dev/v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: emailservice
|
||||
labels:
|
||||
serving.knative.dev/visibility: cluster-local
|
||||
spec:
|
||||
runLatest:
|
||||
configuration:
|
||||
revisionTemplate:
|
||||
template:
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 5
|
||||
container:
|
||||
image: gcr.io/google-samples/microservices-demo/emailservice:v0.1.0
|
||||
containers:
|
||||
- image: gcr.io/google-samples/microservices-demo/emailservice:v0.1.0
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: h2c
|
||||
readinessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
livenessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
resources:
|
||||
|
@ -31,26 +32,30 @@ spec:
|
|||
cpu: 200m
|
||||
memory: 128Mi
|
||||
---
|
||||
apiVersion: serving.knative.dev/v1alpha1
|
||||
apiVersion: serving.knative.dev/v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: checkoutservice
|
||||
labels:
|
||||
serving.knative.dev/visibility: cluster-local
|
||||
spec:
|
||||
runLatest:
|
||||
configuration:
|
||||
revisionTemplate:
|
||||
template:
|
||||
spec:
|
||||
container:
|
||||
image: gcr.io/google-samples/microservices-demo/checkoutservice:v0.1.0
|
||||
containers:
|
||||
- image: gcr.io/google-samples/microservices-demo/checkoutservice:v0.1.0
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: h2c
|
||||
readinessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
livenessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
env:
|
||||
|
@ -74,29 +79,30 @@ spec:
|
|||
cpu: 200m
|
||||
memory: 128Mi
|
||||
---
|
||||
apiVersion: serving.knative.dev/v1alpha1
|
||||
apiVersion: serving.knative.dev/v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: recommendationservice
|
||||
labels:
|
||||
serving.knative.dev/visibility: cluster-local
|
||||
spec:
|
||||
runLatest:
|
||||
configuration:
|
||||
revisionTemplate:
|
||||
template:
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 5
|
||||
container:
|
||||
image: gcr.io/google-samples/microservices-demo/recommendationservice:v0.1.0
|
||||
containers:
|
||||
- image: gcr.io/google-samples/microservices-demo/recommendationservice:v0.1.0
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: h2c
|
||||
readinessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
livenessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
env:
|
||||
|
@ -110,18 +116,19 @@ spec:
|
|||
cpu: 200m
|
||||
memory: 450Mi
|
||||
---
|
||||
apiVersion: serving.knative.dev/v1alpha1
|
||||
apiVersion: serving.knative.dev/v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: frontend
|
||||
spec:
|
||||
runLatest:
|
||||
configuration:
|
||||
revisionTemplate:
|
||||
template:
|
||||
spec:
|
||||
container:
|
||||
image: gcr.io/google-samples/microservices-demo/frontend:v0.1.0
|
||||
containers:
|
||||
- image: gcr.io/google-samples/microservices-demo/frontend:v0.1.0
|
||||
readinessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
initialDelaySeconds: 10
|
||||
httpGet:
|
||||
path: "/_healthz"
|
||||
|
@ -129,6 +136,9 @@ spec:
|
|||
- name: "Cookie"
|
||||
value: "shop_session-id=x-readiness-probe"
|
||||
livenessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
initialDelaySeconds: 10
|
||||
httpGet:
|
||||
path: "/_healthz"
|
||||
|
@ -158,27 +168,30 @@ spec:
|
|||
cpu: 200m
|
||||
memory: 128Mi
|
||||
---
|
||||
apiVersion: serving.knative.dev/v1alpha1
|
||||
apiVersion: serving.knative.dev/v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: paymentservice
|
||||
labels:
|
||||
serving.knative.dev/visibility: cluster-local
|
||||
spec:
|
||||
runLatest:
|
||||
configuration:
|
||||
revisionTemplate:
|
||||
template:
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 5
|
||||
container:
|
||||
image: gcr.io/google-samples/microservices-demo/paymentservice:v0.1.0
|
||||
containers:
|
||||
- image: gcr.io/google-samples/microservices-demo/paymentservice:v0.1.0
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: h2c
|
||||
readinessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
livenessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
resources:
|
||||
|
@ -189,27 +202,30 @@ spec:
|
|||
cpu: 200m
|
||||
memory: 128Mi
|
||||
---
|
||||
apiVersion: serving.knative.dev/v1alpha1
|
||||
apiVersion: serving.knative.dev/v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: productcatalogservice
|
||||
labels:
|
||||
serving.knative.dev/visibility: cluster-local
|
||||
spec:
|
||||
runLatest:
|
||||
configuration:
|
||||
revisionTemplate:
|
||||
template:
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 5
|
||||
container:
|
||||
image: gcr.io/google-samples/microservices-demo/productcatalogservice:v0.1.0
|
||||
containers:
|
||||
- image: gcr.io/google-samples/microservices-demo/productcatalogservice:v0.1.0
|
||||
ports:
|
||||
- containerPort: 3550
|
||||
name: h2c
|
||||
readinessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
livenessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
resources:
|
||||
|
@ -220,20 +236,17 @@ spec:
|
|||
cpu: 200m
|
||||
memory: 128Mi
|
||||
---
|
||||
apiVersion: serving.knative.dev/v1alpha1
|
||||
apiVersion: serving.knative.dev/v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: cartservice
|
||||
labels:
|
||||
serving.knative.dev/visibility: cluster-local
|
||||
spec:
|
||||
runLatest:
|
||||
configuration:
|
||||
revisionTemplate:
|
||||
template:
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 5
|
||||
container:
|
||||
image: gcr.io/google-samples/microservices-demo/cartservice:v0.1.0
|
||||
containers:
|
||||
- image: gcr.io/google-samples/microservices-demo/cartservice:v0.1.0
|
||||
args: ["-p", "$(PORT)"]
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
|
@ -241,8 +254,6 @@ spec:
|
|||
env:
|
||||
- name: REDIS_ADDR
|
||||
value: "redis-cart:6379"
|
||||
- name: PORT
|
||||
value: "7070"
|
||||
- name: LISTEN_ADDR
|
||||
value: "0.0.0.0"
|
||||
resources:
|
||||
|
@ -253,38 +264,45 @@ spec:
|
|||
cpu: 300m
|
||||
memory: 128Mi
|
||||
readinessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
initialDelaySeconds: 15
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
livenessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 10
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
---
|
||||
apiVersion: serving.knative.dev/v1alpha1
|
||||
apiVersion: serving.knative.dev/v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: currencyservice
|
||||
labels:
|
||||
serving.knative.dev/visibility: cluster-local
|
||||
spec:
|
||||
runLatest:
|
||||
configuration:
|
||||
revisionTemplate:
|
||||
metadata:
|
||||
annotations:
|
||||
template:
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 5
|
||||
container:
|
||||
image: gcr.io/google-samples/microservices-demo/currencyservice:v0.1.0
|
||||
containers:
|
||||
- image: gcr.io/google-samples/microservices-demo/currencyservice:v0.1.0
|
||||
ports:
|
||||
- containerPort: 7000
|
||||
name: h2c
|
||||
readinessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
livenessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
resources:
|
||||
|
@ -295,27 +313,30 @@ spec:
|
|||
cpu: 200m
|
||||
memory: 128Mi
|
||||
---
|
||||
apiVersion: serving.knative.dev/v1alpha1
|
||||
apiVersion: serving.knative.dev/v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: shippingservice
|
||||
labels:
|
||||
serving.knative.dev/visibility: cluster-local
|
||||
spec:
|
||||
runLatest:
|
||||
configuration:
|
||||
revisionTemplate:
|
||||
template:
|
||||
spec:
|
||||
container:
|
||||
image: gcr.io/google-samples/microservices-demo/shippingservice:v0.1.0
|
||||
containers:
|
||||
- image: gcr.io/google-samples/microservices-demo/shippingservice:v0.1.0
|
||||
ports:
|
||||
- containerPort: 50051
|
||||
name: h2c
|
||||
readinessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
livenessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
resources:
|
||||
|
@ -326,20 +347,17 @@ spec:
|
|||
cpu: 200m
|
||||
memory: 128Mi
|
||||
---
|
||||
apiVersion: serving.knative.dev/v1alpha1
|
||||
apiVersion: serving.knative.dev/v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: adservice
|
||||
labels:
|
||||
serving.knative.dev/visibility: cluster-local
|
||||
spec:
|
||||
runLatest:
|
||||
configuration:
|
||||
revisionTemplate:
|
||||
template:
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 5
|
||||
container:
|
||||
image: gcr.io/google-samples/microservices-demo/adservice:v0.1.0
|
||||
containers:
|
||||
- image: gcr.io/google-samples/microservices-demo/adservice:v0.1.0
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: h2c
|
||||
|
@ -351,11 +369,17 @@ spec:
|
|||
cpu: 300m
|
||||
memory: 300Mi
|
||||
readinessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 15
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
|
||||
livenessProbe:
|
||||
failureThreshold: 1
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 15
|
||||
exec:
|
||||
|
|
Loading…
Add table
Reference in a new issue