Added daemonset to deploy profiler image
This CL adds a Kubernetes Daemonset that can be used to deploy the cos
node profiler image to a GKE cluster.
Change-Id: I5d2c07a3232a05afba16e5ea0a1a34abb1773577
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/20270
Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com>
Reviewed-by: Vaibhav Rustagi <vaibhavrustagi@google.com>
Reviewed-by: Dexter Rivera <riverade@google.com>
Tested-by: Dexter Rivera <riverade@google.com>
diff --git a/src/cmd/nodeprofiler/profiler-ds.yml b/src/cmd/nodeprofiler/profiler-ds.yml
new file mode 100644
index 0000000..7b3a085
--- /dev/null
+++ b/src/cmd/nodeprofiler/profiler-ds.yml
@@ -0,0 +1,18 @@
+apiVersion: apps/v1
+kind: DaemonSet
+metadata:
+ name: cos-node-profiler
+spec:
+ selector:
+ matchLabels:
+ name: cos-node-profiler # Label selector that determines which Pods belong to the DaemonSet
+ template:
+ metadata:
+ labels:
+ name: cos-node-profiler # Pod template's label selector
+ spec:
+ containers:
+ - name: cos-node-profiler
+ image: gcr.io/cos-interns-playground/cos_node_profiler
+ command: ["/nodeprofiler"]
+ args: ["--project=cos-interns-playground","--cmd=lscpu","--cmd-count=1", "--cmd-interval=0"]