updated knative manifests

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2020-07-27 13:47:56 -07:00
parent ceff7a8412
commit cd2b45ab16
No known key found for this signature in database
GPG key ID: 441833503E604E2C

View file

@ -1,362 +1,386 @@
apiVersion: serving.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1
kind: Service kind: Service
metadata: metadata:
name: emailservice name: emailservice
labels: labels:
serving.knative.dev/visibility: cluster-local serving.knative.dev/visibility: cluster-local
spec: spec:
runLatest: template:
configuration: spec:
revisionTemplate: containers:
spec: - image: gcr.io/google-samples/microservices-demo/emailservice:v0.1.0
terminationGracePeriodSeconds: 5 ports:
container: - containerPort: 8080
image: gcr.io/google-samples/microservices-demo/emailservice:v0.1.0 name: h2c
ports: readinessProbe:
- containerPort: 8080 failureThreshold: 1
name: h2c periodSeconds: 5
readinessProbe: timeoutSeconds: 1
periodSeconds: 5 exec:
exec: command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] livenessProbe:
livenessProbe: failureThreshold: 1
periodSeconds: 5 periodSeconds: 5
exec: timeoutSeconds: 1
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] exec:
resources: command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
requests: resources:
cpu: 100m requests:
memory: 64Mi cpu: 100m
limits: memory: 64Mi
cpu: 200m limits:
memory: 128Mi cpu: 200m
memory: 128Mi
--- ---
apiVersion: serving.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1
kind: Service kind: Service
metadata: metadata:
name: checkoutservice name: checkoutservice
labels: labels:
serving.knative.dev/visibility: cluster-local serving.knative.dev/visibility: cluster-local
spec: spec:
runLatest: template:
configuration: spec:
revisionTemplate: containers:
spec: - image: gcr.io/google-samples/microservices-demo/checkoutservice:v0.1.0
container: ports:
image: gcr.io/google-samples/microservices-demo/checkoutservice:v0.1.0 - containerPort: 8080
ports: name: h2c
- containerPort: 8080 readinessProbe:
name: h2c failureThreshold: 1
readinessProbe: periodSeconds: 5
exec: timeoutSeconds: 1
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] exec:
livenessProbe: command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
exec: livenessProbe:
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] failureThreshold: 1
env: periodSeconds: 5
- name: PRODUCT_CATALOG_SERVICE_ADDR timeoutSeconds: 1
value: "productcatalogservice.default:80" exec:
- name: SHIPPING_SERVICE_ADDR command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
value: "shippingservice.default:80" env:
- name: PAYMENT_SERVICE_ADDR - name: PRODUCT_CATALOG_SERVICE_ADDR
value: "paymentservice.default:80" value: "productcatalogservice.default:80"
- name: EMAIL_SERVICE_ADDR - name: SHIPPING_SERVICE_ADDR
value: "emailservice.default:80" value: "shippingservice.default:80"
- name: CURRENCY_SERVICE_ADDR - name: PAYMENT_SERVICE_ADDR
value: "currencyservice.default:80" value: "paymentservice.default:80"
- name: CART_SERVICE_ADDR - name: EMAIL_SERVICE_ADDR
value: "cartservice.default:80" value: "emailservice.default:80"
resources: - name: CURRENCY_SERVICE_ADDR
requests: value: "currencyservice.default:80"
cpu: 100m - name: CART_SERVICE_ADDR
memory: 64Mi value: "cartservice.default:80"
limits: resources:
cpu: 200m requests:
memory: 128Mi cpu: 100m
memory: 64Mi
limits:
cpu: 200m
memory: 128Mi
--- ---
apiVersion: serving.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1
kind: Service kind: Service
metadata: metadata:
name: recommendationservice name: recommendationservice
labels: labels:
serving.knative.dev/visibility: cluster-local serving.knative.dev/visibility: cluster-local
spec: spec:
runLatest: template:
configuration: spec:
revisionTemplate: containers:
spec: - image: gcr.io/google-samples/microservices-demo/recommendationservice:v0.1.0
terminationGracePeriodSeconds: 5 ports:
container: - containerPort: 8080
image: gcr.io/google-samples/microservices-demo/recommendationservice:v0.1.0 name: h2c
ports: readinessProbe:
- containerPort: 8080 failureThreshold: 1
name: h2c periodSeconds: 5
readinessProbe: timeoutSeconds: 1
periodSeconds: 5 exec:
exec: command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] livenessProbe:
livenessProbe: failureThreshold: 1
periodSeconds: 5 periodSeconds: 5
exec: timeoutSeconds: 1
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] exec:
env: command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
- name: PRODUCT_CATALOG_SERVICE_ADDR env:
value: "productcatalogservice.default:80" - name: PRODUCT_CATALOG_SERVICE_ADDR
resources: value: "productcatalogservice.default:80"
requests: resources:
cpu: 100m requests:
memory: 220Mi cpu: 100m
limits: memory: 220Mi
cpu: 200m limits:
memory: 450Mi cpu: 200m
memory: 450Mi
--- ---
apiVersion: serving.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1
kind: Service kind: Service
metadata: metadata:
name: frontend name: frontend
spec: spec:
runLatest: template:
configuration: spec:
revisionTemplate: containers:
spec: - image: gcr.io/google-samples/microservices-demo/frontend:v0.1.0
container: readinessProbe:
image: gcr.io/google-samples/microservices-demo/frontend:v0.1.0 failureThreshold: 1
readinessProbe: periodSeconds: 5
initialDelaySeconds: 10 timeoutSeconds: 1
httpGet: initialDelaySeconds: 10
path: "/_healthz" httpGet:
httpHeaders: path: "/_healthz"
- name: "Cookie" httpHeaders:
value: "shop_session-id=x-readiness-probe" - name: "Cookie"
livenessProbe: value: "shop_session-id=x-readiness-probe"
initialDelaySeconds: 10 livenessProbe:
httpGet: failureThreshold: 1
path: "/_healthz" periodSeconds: 5
httpHeaders: timeoutSeconds: 1
- name: "Cookie" initialDelaySeconds: 10
value: "shop_session-id=x-liveness-probe" httpGet:
env: path: "/_healthz"
- name: PRODUCT_CATALOG_SERVICE_ADDR httpHeaders:
value: "productcatalogservice.default:80" - name: "Cookie"
- name: CURRENCY_SERVICE_ADDR value: "shop_session-id=x-liveness-probe"
value: "currencyservice.default:80" env:
- name: CART_SERVICE_ADDR - name: PRODUCT_CATALOG_SERVICE_ADDR
value: "cartservice.default:80" value: "productcatalogservice.default:80"
- name: RECOMMENDATION_SERVICE_ADDR - name: CURRENCY_SERVICE_ADDR
value: "recommendationservice.default:80" value: "currencyservice.default:80"
- name: SHIPPING_SERVICE_ADDR - name: CART_SERVICE_ADDR
value: "shippingservice.default:80" value: "cartservice.default:80"
- name: CHECKOUT_SERVICE_ADDR - name: RECOMMENDATION_SERVICE_ADDR
value: "checkoutservice.default:80" value: "recommendationservice.default:80"
- name: AD_SERVICE_ADDR - name: SHIPPING_SERVICE_ADDR
value: "adservice.default:80" value: "shippingservice.default:80"
resources: - name: CHECKOUT_SERVICE_ADDR
requests: value: "checkoutservice.default:80"
cpu: 100m - name: AD_SERVICE_ADDR
memory: 64Mi value: "adservice.default:80"
limits: resources:
cpu: 200m requests:
memory: 128Mi cpu: 100m
memory: 64Mi
limits:
cpu: 200m
memory: 128Mi
--- ---
apiVersion: serving.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1
kind: Service kind: Service
metadata: metadata:
name: paymentservice name: paymentservice
labels: labels:
serving.knative.dev/visibility: cluster-local serving.knative.dev/visibility: cluster-local
spec: spec:
runLatest: template:
configuration: spec:
revisionTemplate: containers:
spec: - image: gcr.io/google-samples/microservices-demo/paymentservice:v0.1.0
terminationGracePeriodSeconds: 5 ports:
container: - containerPort: 8080
image: gcr.io/google-samples/microservices-demo/paymentservice:v0.1.0 name: h2c
ports: readinessProbe:
- containerPort: 8080 failureThreshold: 1
name: h2c periodSeconds: 5
readinessProbe: timeoutSeconds: 1
exec: exec:
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
livenessProbe: livenessProbe:
exec: failureThreshold: 1
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] periodSeconds: 5
resources: timeoutSeconds: 1
requests: exec:
cpu: 100m command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
memory: 64Mi resources:
limits: requests:
cpu: 200m cpu: 100m
memory: 128Mi memory: 64Mi
limits:
cpu: 200m
memory: 128Mi
--- ---
apiVersion: serving.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1
kind: Service kind: Service
metadata: metadata:
name: productcatalogservice name: productcatalogservice
labels: labels:
serving.knative.dev/visibility: cluster-local serving.knative.dev/visibility: cluster-local
spec: spec:
runLatest: template:
configuration: spec:
revisionTemplate: containers:
spec: - image: gcr.io/google-samples/microservices-demo/productcatalogservice:v0.1.0
terminationGracePeriodSeconds: 5 ports:
container: - containerPort: 3550
image: gcr.io/google-samples/microservices-demo/productcatalogservice:v0.1.0 name: h2c
ports: readinessProbe:
- containerPort: 3550 failureThreshold: 1
name: h2c periodSeconds: 5
readinessProbe: timeoutSeconds: 1
exec: exec:
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
livenessProbe: livenessProbe:
exec: failureThreshold: 1
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] periodSeconds: 5
resources: timeoutSeconds: 1
requests: exec:
cpu: 100m command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
memory: 64Mi resources:
limits: requests:
cpu: 200m cpu: 100m
memory: 128Mi memory: 64Mi
limits:
cpu: 200m
memory: 128Mi
--- ---
apiVersion: serving.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1
kind: Service kind: Service
metadata: metadata:
name: cartservice name: cartservice
labels: labels:
serving.knative.dev/visibility: cluster-local serving.knative.dev/visibility: cluster-local
spec: spec:
runLatest: template:
configuration: spec:
revisionTemplate: containers:
spec: - image: gcr.io/google-samples/microservices-demo/cartservice:v0.1.0
terminationGracePeriodSeconds: 5 args: ["-p", "$(PORT)"]
container: ports:
image: gcr.io/google-samples/microservices-demo/cartservice:v0.1.0 - containerPort: 8080
args: ["-p", "$(PORT)"] name: h2c
ports: env:
- containerPort: 8080 - name: REDIS_ADDR
name: h2c value: "redis-cart:6379"
env: - name: LISTEN_ADDR
- name: REDIS_ADDR value: "0.0.0.0"
value: "redis-cart:6379" resources:
- name: PORT requests:
value: "7070" cpu: 200m
- name: LISTEN_ADDR memory: 64Mi
value: "0.0.0.0" limits:
resources: cpu: 300m
requests: memory: 128Mi
cpu: 200m readinessProbe:
memory: 64Mi failureThreshold: 1
limits: periodSeconds: 5
cpu: 300m timeoutSeconds: 1
memory: 128Mi initialDelaySeconds: 15
readinessProbe: exec:
initialDelaySeconds: 15 command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
exec: livenessProbe:
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] failureThreshold: 1
livenessProbe: periodSeconds: 5
initialDelaySeconds: 15 timeoutSeconds: 1
periodSeconds: 10 initialDelaySeconds: 15
exec: periodSeconds: 10
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] exec:
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
--- ---
apiVersion: serving.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1
kind: Service kind: Service
metadata: metadata:
name: currencyservice name: currencyservice
labels: labels:
serving.knative.dev/visibility: cluster-local serving.knative.dev/visibility: cluster-local
spec: spec:
runLatest: template:
configuration: spec:
revisionTemplate: containers:
metadata: - image: gcr.io/google-samples/microservices-demo/currencyservice:v0.1.0
annotations: ports:
spec: - containerPort: 7000
terminationGracePeriodSeconds: 5 name: h2c
container: readinessProbe:
image: gcr.io/google-samples/microservices-demo/currencyservice:v0.1.0 failureThreshold: 1
ports: periodSeconds: 5
- containerPort: 7000 timeoutSeconds: 1
name: h2c exec:
readinessProbe: command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
exec: livenessProbe:
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] failureThreshold: 1
livenessProbe: periodSeconds: 5
exec: timeoutSeconds: 1
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] exec:
resources: command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
requests: resources:
cpu: 100m requests:
memory: 64Mi cpu: 100m
limits: memory: 64Mi
cpu: 200m limits:
memory: 128Mi cpu: 200m
memory: 128Mi
--- ---
apiVersion: serving.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1
kind: Service kind: Service
metadata: metadata:
name: shippingservice name: shippingservice
labels: labels:
serving.knative.dev/visibility: cluster-local serving.knative.dev/visibility: cluster-local
spec: spec:
runLatest: template:
configuration: spec:
revisionTemplate: containers:
spec: - image: gcr.io/google-samples/microservices-demo/shippingservice:v0.1.0
container: ports:
image: gcr.io/google-samples/microservices-demo/shippingservice:v0.1.0 - containerPort: 50051
ports: name: h2c
- containerPort: 50051 readinessProbe:
name: h2c failureThreshold: 1
readinessProbe: periodSeconds: 5
periodSeconds: 5 timeoutSeconds: 1
exec: exec:
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
livenessProbe: livenessProbe:
exec: failureThreshold: 1
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] periodSeconds: 5
resources: timeoutSeconds: 1
requests: exec:
cpu: 100m command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
memory: 64Mi resources:
limits: requests:
cpu: 200m cpu: 100m
memory: 128Mi memory: 64Mi
limits:
cpu: 200m
memory: 128Mi
--- ---
apiVersion: serving.knative.dev/v1alpha1 apiVersion: serving.knative.dev/v1
kind: Service kind: Service
metadata: metadata:
name: adservice name: adservice
labels: labels:
serving.knative.dev/visibility: cluster-local serving.knative.dev/visibility: cluster-local
spec: spec:
runLatest: template:
configuration: spec:
revisionTemplate: containers:
spec: - image: gcr.io/google-samples/microservices-demo/adservice:v0.1.0
terminationGracePeriodSeconds: 5 ports:
container: - containerPort: 8080
image: gcr.io/google-samples/microservices-demo/adservice:v0.1.0 name: h2c
ports: resources:
- containerPort: 8080 requests:
name: h2c cpu: 200m
resources: memory: 180Mi
requests: limits:
cpu: 200m cpu: 300m
memory: 180Mi memory: 300Mi
limits: readinessProbe:
cpu: 300m failureThreshold: 1
memory: 300Mi periodSeconds: 5
readinessProbe: timeoutSeconds: 1
initialDelaySeconds: 20 initialDelaySeconds: 20
periodSeconds: 15 periodSeconds: 15
exec: exec:
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]
livenessProbe: livenessProbe:
initialDelaySeconds: 20 failureThreshold: 1
periodSeconds: 15 periodSeconds: 5
exec: timeoutSeconds: 1
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"] initialDelaySeconds: 20
periodSeconds: 15
exec:
command: ["/bin/grpc_health_probe", "-addr=:$(PORT)"]