Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions gke/prototype/ndt-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: ndt-service
namespace: default
spec:
selector:
workload: ndt
type: LoadBalancer
# The "local" traffic policy preserves clientIP and routes to a service on the same node.
externalTrafficPolicy: Local
ports:
- port: 80
targetPort: 80
- port: 443
targetPort: 443
47 changes: 47 additions & 0 deletions gke/prototype/ndt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: ndt
namespace: default
spec:
revisionHistoryLimit: 10
selector:
matchLabels:
workload: ndt
template:
metadata:
annotations:
prometheus.io/scheme: http
prometheus.io/scrape: "true"
labels:
site-type: physical
workload: ndt
spec:
initContainers:
- name: sysctl-set-bbr
image: busybox:1.35
securityContext:
privileged: true
command: ["/bin/sh"]
args:
- -c
- echo 'ok'
# - sysctl -w net.core.default_qdisc=fq net.ipv4.tcp_congestion_control=bbr
containers:
- args:
- -datadir=/var/spool/ndt
- -htmldir=html/mlab
- -label=type=physical
- -label=deployment=stable
image: measurementlab/ndt-server:v0.20.10
imagePullPolicy: IfNotPresent
name: ndt-server
ports:
- containerPort: 80
#hostPort: 80
protocol: TCP
restartPolicy: Always
updateStrategy:
rollingUpdate:
maxUnavailable: 2
type: RollingUpdate