diff --git a/README.txt b/README.txt index 9d1a863..24aa317 100644 --- a/README.txt +++ b/README.txt @@ -41,4 +41,4 @@ we need to modify these: - For scheduler-extender: https://github.com/nclabteam/k8s-scheduler-extender-example.git - +- Please check experimental_setup.txt for configuring testbed diff --git a/app/deployment.yaml b/app/deployment.yaml new file mode 100644 index 0000000..7ad127c --- /dev/null +++ b/app/deployment.yaml @@ -0,0 +1,45 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: app-example1 +spec: + replicas: 3 + selector: + matchLabels: + app: app-example1 + template: + metadata: + labels: + app: app-example1 + spec: + containers: + - name: app-example1 + image: nguyennd1995/simpleapp_200 + imagePullPolicy: Always + ports: + - containerPort: 8080 + resources: + requests: + cpu: "50m" + memory: "32Mi" + limits: + cpu: "150m" + memory: "128Mi" + +--- +apiVersion: v1 +kind: Service +metadata: + name: app-example1 + labels: + app: app-example1 +spec: + selector: + app: app-example1 + ports: + - port: 8080 + targetPort: 8080 + protocol: TCP + nodePort: 30006 + type: NodePort + diff --git a/experimental_setup.txt b/experimental_setup.txt index 210ac79..b8c1cec 100644 --- a/experimental_setup.txt +++ b/experimental_setup.txt @@ -15,7 +15,17 @@ + Switch kube-proxy to ipvs mode -*** Note *** Traffic gen scripts must be executed on traffic gen machine + + App to deploy can be found in app/ directory + + + HPA must be enabled for the depoyed application: + + "kubectl autoscale deployment --min=3 --max=12 --cpu-percent=80" + +*** Note *** + + + Traffic gen scripts must be executed on traffic gen machine + + + Application on each node can be accessed using nodeip and port, e.g. 192.168.10.25:10000 - Section V_A - Evaluate 3 nodes