-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathfrontend-v2.yaml.tplt
97 lines (96 loc) · 2.83 KB
/
frontend-v2.yaml.tplt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Copyright (c) 2021, Cisco Systems, Inc. and/or its affiliates. All rights reserved.
# Licensed under the Apache 2.0 license, see LICENSE file.
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend-v2
spec:
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
version: v2
annotations:
sidecar.istio.io/rewriteAppHTTPProbers: "true"
spec:
containers:
- name: server
image: docker.io/peolivei/boutique-appd-frontend:v1.0
ports:
- containerPort: 8080
readinessProbe:
initialDelaySeconds: 10
httpGet:
path: "/_healthz"
port: 8080
httpHeaders:
- name: "Cookie"
value: "shop_session-id=x-readiness-probe"
livenessProbe:
initialDelaySeconds: 10
httpGet:
path: "/_healthz"
port: 8080
httpHeaders:
- name: "Cookie"
value: "shop_session-id=x-liveness-probe"
env:
- name: PORT
value: "8080"
- name: PRODUCT_CATALOG_SERVICE_ADDR
value: "productcatalogservice:3550"
- name: CURRENCY_SERVICE_ADDR
value: "currencyservice:7000"
- name: CART_SERVICE_ADDR
value: "cartservice:7070"
- name: RECOMMENDATION_SERVICE_ADDR
value: "recommendationservice:8080"
- name: SHIPPING_SERVICE_ADDR
value: "shippingservice:50051"
- name: CHECKOUT_SERVICE_ADDR
value: "checkoutservice:5050"
- name: AD_SERVICE_ADDR
value: "adservice:9555"
- name: ENV_PLATFORM
value: "gcp"
######################## APPD CONTROLLER VARIABLES ########################
- name: APPD_CONTROLLER_HOST
value: "<appdynamics-controller-host>"
- name: APPD_CONTROLLER_PORT
value: "443"
- name: APPD_CONTROLLER_USE_SSL
value: "true"
- name: APPD_CONTROLLER_ACCOUNT
value: "<account-name>"
- name: APPD_CONTROLLER_ACCESS_KEY
value: "<access-key>"
######################## APPD CONTROLLER VARIABLES ########################
# - 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: frontend
spec:
type: ClusterIP
selector:
app: frontend
ports:
- name: http
port: 80
targetPort: 8080