Skip to content

Commit a2053de

Browse files
committed
Final charts tunning and allowing Linkerd Mesh to be used
1 parent 171ee62 commit a2053de

64 files changed

Lines changed: 399 additions & 1313 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

k8s/helm/apigwmm/configuration-mobile-marketing.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

k8s/helm/apigwmm/envoy.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
admin:
2+
access_log_path: "/dev/null"
3+
address:
4+
socket_address:
5+
address: 0.0.0.0
6+
port_value: 8001
7+
static_resources:
8+
listeners:
9+
- address:
10+
socket_address:
11+
address: 0.0.0.0
12+
port_value: 80
13+
filter_chains:
14+
- filters:
15+
- name: envoy.http_connection_manager
16+
config:
17+
codec_type: auto
18+
stat_prefix: ingress_http
19+
route_config:
20+
name: eshop_backend_route
21+
virtual_hosts:
22+
- name: eshop_backend
23+
domains:
24+
- "*"
25+
routes:
26+
- match:
27+
prefix: "/api/v1/m/"
28+
route:
29+
prefix_rewrite: "/api/v1/"
30+
cluster: marketing
31+
http_filters:
32+
- name: envoy.router
33+
clusters:
34+
- name: marketing
35+
connect_timeout: 0.25s
36+
type: logical_dns
37+
lb_policy: round_robin
38+
hosts:
39+
- socket_address:
40+
address: marketing-api
41+
port_value: 80
42+
- name: locations
43+
connect_timeout: 0.25s
44+
type: logical_dns
45+
lb_policy: round_robin
46+
hosts:
47+
- socket_address:
48+
address: locations-api
49+
port_value: 80

k8s/helm/apigwmm/templates/configmap.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

k8s/helm/apigwmm/templates/deployment.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- $name := include "apigwmm.fullname" . -}}
22
{{- $cfgname := printf "%s-%s" "cfg" $name -}}
3-
{{- $ocelotcfgname := printf "%s-%s" "ocelot" $name -}}
3+
{{- $envoycfgname := printf "%s-%s" "envoy" $name -}}
44
apiVersion: apps/v1beta2
55
kind: Deployment
66
metadata:
@@ -30,10 +30,10 @@ spec:
3030
volumes:
3131
- name: config
3232
configMap:
33-
name: {{ $ocelotcfgname }}
33+
name: {{ $envoycfgname }}
3434
items:
35-
- key: configuration-mobile-marketing.json
36-
path: configuration.json
35+
- key: envoy.yaml
36+
path: envoy.yaml
3737
containers:
3838
- name: {{ .Chart.Name }}
3939
{{ if .Values.probes -}}
@@ -58,10 +58,10 @@ spec:
5858
{{- end -}}
5959
{{- end }}
6060
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
61-
imagePullPolicy: {{ .Values.image.pullPolicy }}
61+
imagePullPolicy: IfNotPresent
6262
volumeMounts:
6363
- name: config
64-
mountPath: {{ .Values.ocelot.configPath }}
64+
mountPath: {{ .Values.envoy.configPath }}
6565
env:
6666
- name: PATH_BASE
6767
value: {{ include "pathBase" . }}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
apiVersion: v1
44
kind: ConfigMap
55
metadata:
6-
name: "ocelot-{{ $name }}"
6+
name: "envoy-{{ $name }}"
77
labels:
88
app: {{ template "apigwmm.name" . }}
99
chart: {{ template "apigwmm.chart" .}}
1010
release: {{ .Release.Name }}
1111
heritage: {{ .Release.Service }}
1212
data:
13-
{{ (.Files.Glob "configuration-mobile-marketing.json").AsConfig | indent 2 }}
13+
{{ (.Files.Glob "envoy.yaml").AsConfig | indent 2 }}
1414

k8s/helm/apigwmm/values.yaml

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ clusterName: eshop-aks
33
pathBase: /mobilemarketingapigw
44

55
image:
6-
repository: eshop/ocelotapigw
7-
tag: latest
8-
pullPolicy: IfNotPresent
6+
repository: envoyproxy/envoy
7+
tag: v1.11.1
98

109
service:
1110
type: ClusterIP
@@ -25,42 +24,7 @@ tolerations: []
2524

2625
affinity: {}
2726

28-
# env defines the environment variables that will be declared in the pod
29-
env:
30-
urls:
31-
# configmap declares variables which value is taken from the config map defined in template configmap.yaml (name is name of var and key the key in configmap).
32-
configmap:
33-
- name: IdentityUrl
34-
key: internalurls__identity
35-
- name: CatalogUrlHC
36-
key: internalurls__catalog__hc
37-
- name: BasketUrlHC
38-
key: internalurls__basket__hc
39-
- name: IdentityUrlHC
40-
key: internalurls__identity__hc
41-
- name: OrderingUrlHC
42-
key: internalurls__ordering__hc
43-
- name: MarketingUrlHC
44-
key: internalurls__marketing__hc
45-
- name: PaymentUrlHC
46-
key: internalurls__payment__hc
47-
- name: LocationUrlHC
48-
key: internalurls__location__hc
49-
# values define environment variables with a fixed value (no configmap involved) (name is name of var, and value is its value)
50-
values:
51-
- name: ASPNETCORE_ENVIRONMENT
52-
value: Development
53-
probes:
54-
liveness:
55-
path: /liveness
56-
initialDelaySeconds: 10
57-
periodSeconds: 15
58-
port: 80
59-
readiness:
60-
path: /hc
61-
timeoutSeconds: 5
62-
initialDelaySeconds: 90
63-
periodSeconds: 60
64-
port: 80
65-
ocelot:
66-
configPath: /app/configuration
27+
env: {}
28+
29+
envoy:
30+
configPath: /etc/envoy

k8s/helm/apigwms/configuration-mobile-shopping.json

Lines changed: 0 additions & 142 deletions
This file was deleted.

0 commit comments

Comments
 (0)