Skip to content

Commit 4e1ea81

Browse files
committed
Release v0.4.0
1 parent 80e7811 commit 4e1ea81

16 files changed

+1057
-920
lines changed

hack/make-release-artifacts.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ main() {
117117
mk_kubernetes_manifests > "${k8s_manifests_file}"
118118
log "Written ${k8s_manifests_file}"
119119

120-
cp ${k8s_manifests_file} ../kustomize/base
121-
122120
istio_manifests_file="${OUT_DIR}/istio-manifests.yaml"
123121
mk_istio_manifests > "${istio_manifests_file}"
124122
log "Written ${istio_manifests_file}"

kustomize/base/adservice.yaml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Copyright 2018 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
apiVersion: apps/v1
16+
kind: Deployment
17+
metadata:
18+
name: adservice
19+
spec:
20+
selector:
21+
matchLabels:
22+
app: adservice
23+
template:
24+
metadata:
25+
labels:
26+
app: adservice
27+
spec:
28+
serviceAccountName: default
29+
terminationGracePeriodSeconds: 5
30+
securityContext:
31+
fsGroup: 1000
32+
runAsGroup: 1000
33+
runAsNonRoot: true
34+
runAsUser: 1000
35+
containers:
36+
- name: server
37+
securityContext:
38+
allowPrivilegeEscalation: false
39+
capabilities:
40+
drop:
41+
- all
42+
privileged: false
43+
readOnlyRootFilesystem: true
44+
image: gcr.io/google-samples/microservices-demo/adservice:v0.4.0
45+
ports:
46+
- containerPort: 9555
47+
env:
48+
- name: PORT
49+
value: "9555"
50+
- name: DISABLE_STATS
51+
value: "1"
52+
- name: DISABLE_TRACING
53+
value: "1"
54+
resources:
55+
requests:
56+
cpu: 200m
57+
memory: 180Mi
58+
limits:
59+
cpu: 300m
60+
memory: 300Mi
61+
readinessProbe:
62+
initialDelaySeconds: 20
63+
periodSeconds: 15
64+
exec:
65+
command: ["/bin/grpc_health_probe", "-addr=:9555"]
66+
livenessProbe:
67+
initialDelaySeconds: 20
68+
periodSeconds: 15
69+
exec:
70+
command: ["/bin/grpc_health_probe", "-addr=:9555"]
71+
---
72+
apiVersion: v1
73+
kind: Service
74+
metadata:
75+
name: adservice
76+
spec:
77+
type: ClusterIP
78+
selector:
79+
app: adservice
80+
ports:
81+
- name: grpc
82+
port: 9555
83+
targetPort: 9555

kustomize/base/cartservice.yaml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Copyright 2018 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
apiVersion: apps/v1
16+
kind: Deployment
17+
metadata:
18+
name: cartservice
19+
spec:
20+
selector:
21+
matchLabels:
22+
app: cartservice
23+
template:
24+
metadata:
25+
labels:
26+
app: cartservice
27+
spec:
28+
serviceAccountName: default
29+
terminationGracePeriodSeconds: 5
30+
securityContext:
31+
fsGroup: 1000
32+
runAsGroup: 1000
33+
runAsNonRoot: true
34+
runAsUser: 1000
35+
containers:
36+
- name: server
37+
securityContext:
38+
allowPrivilegeEscalation: false
39+
capabilities:
40+
drop:
41+
- all
42+
privileged: false
43+
readOnlyRootFilesystem: true
44+
image: gcr.io/google-samples/microservices-demo/cartservice:v0.4.0
45+
ports:
46+
- containerPort: 7070
47+
env:
48+
- name: REDIS_ADDR
49+
value: "redis-cart:6379"
50+
resources:
51+
requests:
52+
cpu: 200m
53+
memory: 64Mi
54+
limits:
55+
cpu: 300m
56+
memory: 128Mi
57+
readinessProbe:
58+
initialDelaySeconds: 15
59+
exec:
60+
command: ["/bin/grpc_health_probe", "-addr=:7070", "-rpc-timeout=5s"]
61+
livenessProbe:
62+
initialDelaySeconds: 15
63+
periodSeconds: 10
64+
exec:
65+
command: ["/bin/grpc_health_probe", "-addr=:7070", "-rpc-timeout=5s"]
66+
---
67+
apiVersion: v1
68+
kind: Service
69+
metadata:
70+
name: cartservice
71+
spec:
72+
type: ClusterIP
73+
selector:
74+
app: cartservice
75+
ports:
76+
- name: grpc
77+
port: 7070
78+
targetPort: 7070
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# Copyright 2018 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
apiVersion: apps/v1
16+
kind: Deployment
17+
metadata:
18+
name: checkoutservice
19+
spec:
20+
selector:
21+
matchLabels:
22+
app: checkoutservice
23+
template:
24+
metadata:
25+
labels:
26+
app: checkoutservice
27+
spec:
28+
serviceAccountName: default
29+
securityContext:
30+
fsGroup: 1000
31+
runAsGroup: 1000
32+
runAsNonRoot: true
33+
runAsUser: 1000
34+
containers:
35+
- name: server
36+
securityContext:
37+
allowPrivilegeEscalation: false
38+
capabilities:
39+
drop:
40+
- all
41+
privileged: false
42+
readOnlyRootFilesystem: true
43+
image: gcr.io/google-samples/microservices-demo/checkoutservice:v0.4.0
44+
ports:
45+
- containerPort: 5050
46+
readinessProbe:
47+
exec:
48+
command: ["/bin/grpc_health_probe", "-addr=:5050"]
49+
livenessProbe:
50+
exec:
51+
command: ["/bin/grpc_health_probe", "-addr=:5050"]
52+
env:
53+
- name: PORT
54+
value: "5050"
55+
- name: PRODUCT_CATALOG_SERVICE_ADDR
56+
value: "productcatalogservice:3550"
57+
- name: SHIPPING_SERVICE_ADDR
58+
value: "shippingservice:50051"
59+
- name: PAYMENT_SERVICE_ADDR
60+
value: "paymentservice:50051"
61+
- name: EMAIL_SERVICE_ADDR
62+
value: "emailservice:5000"
63+
- name: CURRENCY_SERVICE_ADDR
64+
value: "currencyservice:7000"
65+
- name: CART_SERVICE_ADDR
66+
value: "cartservice:7070"
67+
- name: DISABLE_STATS
68+
value: "1"
69+
- name: DISABLE_TRACING
70+
value: "1"
71+
- name: DISABLE_PROFILER
72+
value: "1"
73+
resources:
74+
requests:
75+
cpu: 100m
76+
memory: 64Mi
77+
limits:
78+
cpu: 200m
79+
memory: 128Mi
80+
---
81+
apiVersion: v1
82+
kind: Service
83+
metadata:
84+
name: checkoutservice
85+
spec:
86+
type: ClusterIP
87+
selector:
88+
app: checkoutservice
89+
ports:
90+
- name: grpc
91+
port: 5050
92+
targetPort: 5050
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Copyright 2018 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
apiVersion: apps/v1
16+
kind: Deployment
17+
metadata:
18+
name: currencyservice
19+
spec:
20+
selector:
21+
matchLabels:
22+
app: currencyservice
23+
template:
24+
metadata:
25+
labels:
26+
app: currencyservice
27+
spec:
28+
serviceAccountName: default
29+
terminationGracePeriodSeconds: 5
30+
securityContext:
31+
fsGroup: 1000
32+
runAsGroup: 1000
33+
runAsNonRoot: true
34+
runAsUser: 1000
35+
containers:
36+
- name: server
37+
securityContext:
38+
allowPrivilegeEscalation: false
39+
capabilities:
40+
drop:
41+
- all
42+
privileged: false
43+
readOnlyRootFilesystem: true
44+
image: gcr.io/google-samples/microservices-demo/currencyservice:v0.4.0
45+
ports:
46+
- name: grpc
47+
containerPort: 7000
48+
env:
49+
- name: PORT
50+
value: "7000"
51+
- name: DISABLE_TRACING
52+
value: "1"
53+
- name: DISABLE_PROFILER
54+
value: "1"
55+
- name: DISABLE_DEBUGGER
56+
value: "1"
57+
readinessProbe:
58+
exec:
59+
command: ["/bin/grpc_health_probe", "-addr=:7000"]
60+
livenessProbe:
61+
exec:
62+
command: ["/bin/grpc_health_probe", "-addr=:7000"]
63+
resources:
64+
requests:
65+
cpu: 100m
66+
memory: 64Mi
67+
limits:
68+
cpu: 200m
69+
memory: 128Mi
70+
---
71+
apiVersion: v1
72+
kind: Service
73+
metadata:
74+
name: currencyservice
75+
spec:
76+
type: ClusterIP
77+
selector:
78+
app: currencyservice
79+
ports:
80+
- name: grpc
81+
port: 7000
82+
targetPort: 7000

0 commit comments

Comments
 (0)