From 081ec6d3ec204ce9ddb09962146646a722ed5822 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Fri, 2 Sep 2022 17:44:43 -0400 Subject: [PATCH] Add prototype configuration for running NDT in GKE --- gke/prototype/ndt-service.yml | 16 ++++++++++++ gke/prototype/ndt.yml | 47 +++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 gke/prototype/ndt-service.yml create mode 100644 gke/prototype/ndt.yml diff --git a/gke/prototype/ndt-service.yml b/gke/prototype/ndt-service.yml new file mode 100644 index 00000000..b5b22dfd --- /dev/null +++ b/gke/prototype/ndt-service.yml @@ -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 diff --git a/gke/prototype/ndt.yml b/gke/prototype/ndt.yml new file mode 100644 index 00000000..e008e61f --- /dev/null +++ b/gke/prototype/ndt.yml @@ -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