Skip to content

Commit 87828f9

Browse files
authored
Add basic overlays for AKS (canada-ca#1589)
This is the first draft of AKS support. More to follow.
1 parent eafca08 commit 87828f9

17 files changed

Lines changed: 5109 additions & 0 deletions

app/aks/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# AKS
2+
3+
The purpose of this overlay is to bring up Tracker on AKS. The config here is just a draft. We're just getting started!

app/aks/arangodb.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: arango-deployment-operator
5+
namespace: db
6+
spec:
7+
replicas: 1
8+
---
9+
apiVersion: apps/v1
10+
kind: Deployment
11+
metadata:
12+
name: arango-deployment-replication-operator
13+
namespace: db
14+
spec:
15+
replicas: 1
16+
---
17+
apiVersion: apps/v1
18+
kind: Deployment
19+
metadata:
20+
name: arango-storage-operator
21+
namespace: db
22+
spec:
23+
replicas: 1

app/aks/envoy-filter.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: networking.istio.io/v1alpha3
2+
kind: EnvoyFilter
3+
metadata:
4+
name: gateway-gzip
5+
namespace: istio-system
6+
spec:
7+
workloadSelector:
8+
labels:
9+
istio: ingressgateway
10+
filters:
11+
- listenerMatch:
12+
listenerType: GATEWAY
13+
filterType: HTTP
14+
filterName: envoy.lua
15+
filterConfig:
16+
inlineCode: |
17+
function envoy_on_response(response_handle)
18+
if not response_handle:headers():get("X-Frame-Options") then
19+
response_handle:headers():add("X-Frame-Options", "deny");
20+
end
21+
if not response_handle:headers():get("Strict-Transport-Security") then
22+
response_handle:headers():add("Strict-Transport-Security", "max-age=31536000; includeSubDomains");
23+
end
24+
end
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: istio-ingressgateway
5+
namespace: istio-system
6+
spec:
7+
loadBalancerIP: "34.95.5.243"

app/aks/jaeger.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: jaeger
5+
namespace: istio-system
6+
labels:
7+
app: jaeger
8+
spec:
9+
selector:
10+
matchLabels:
11+
app: jaeger
12+
template:
13+
metadata:
14+
labels:
15+
app: jaeger
16+
annotations:
17+
sidecar.istio.io/inject: "false"
18+
prometheus.io/scrape: "true"
19+
prometheus.io/port: "14269"
20+
spec:
21+
containers:
22+
- name: jaeger
23+
image: "docker.io/jaegertracing/all-in-one:1.18"
24+
env:
25+
- name: BADGER_EPHEMERAL
26+
value: "false"
27+
- name: SPAN_STORAGE_TYPE
28+
value: "badger"
29+
- name: BADGER_DIRECTORY_VALUE
30+
value: "/badger/data"
31+
- name: BADGER_DIRECTORY_KEY
32+
value: "/badger/key"
33+
- name: COLLECTOR_ZIPKIN_HTTP_PORT
34+
value: "9411"
35+
- name: MEMORY_MAX_TRACES
36+
value: "50000"
37+
- name: QUERY_BASE_PATH
38+
value: /jaeger
39+
livenessProbe:
40+
httpGet:
41+
path: /
42+
port: 14269
43+
readinessProbe:
44+
httpGet:
45+
path: /
46+
port: 14269
47+
volumeMounts:
48+
- name: data
49+
mountPath: /badger
50+
resources:
51+
requests:
52+
cpu: 10m
53+
volumes:
54+
- name: data
55+
emptyDir: {}
56+
---
57+
apiVersion: v1
58+
kind: Service
59+
metadata:
60+
name: tracing
61+
namespace: istio-system
62+
labels:
63+
app: jaeger
64+
spec:
65+
type: ClusterIP
66+
ports:
67+
- name: http-query
68+
port: 80
69+
protocol: TCP
70+
targetPort: 16686
71+
selector:
72+
app: jaeger
73+
---
74+
# Jaeger implements the Zipkin API. To support swapping out the tracing backend, we use a Service named Zipkin.
75+
apiVersion: v1
76+
kind: Service
77+
metadata:
78+
labels:
79+
name: zipkin
80+
name: zipkin
81+
namespace: istio-system
82+
spec:
83+
ports:
84+
- port: 9411
85+
targetPort: 9411
86+
name: http-query
87+
selector:
88+
app: jaeger

0 commit comments

Comments
 (0)