Browse Source

Octoprint Affinity Corrected

Fred Damstra (k8s1) 2 years ago
parent
commit
17da1054a7
2 changed files with 27 additions and 11 deletions
  1. 2 11
      Workloads/testing/octoprint.yaml
  2. 25 0
      grafana_cloud_notes.md

+ 2 - 11
Workloads/testing/octoprint.yaml

@@ -69,16 +69,8 @@ spec:
       labels:
         run: octoprint
     spec:
-#      # Force this onto node 1, since it has the connection to the printer
-#      affinity:
-#        nodeAffinity:
-#          requiredDuringSchedulingIgnoredDuringExecution:
-#            nodeSelectorTerms:
-#            - matchExpressions:
-#              - key: node
-#                operator: In
-#                values:
-#                - node1
+      nodeSelector:
+        octoprint: "true"
       containers:
         - image: octoprint/octoprint
           name: octoprint
@@ -95,7 +87,6 @@ spec:
               name: octoprint
             - mountPath: /dev/ttyUSB0
               name: ttyusb
-      nodeName: k8s1
       restartPolicy: Always
       volumes:
         - name: octoprint

+ 25 - 0
grafana_cloud_notes.md

@@ -0,0 +1,25 @@
+# Grafana Cloud - 2023-02-01
+
+Signed up for free forever account
+
+Had to install kubectl:
+
+```
+sudo snap install kbuectl --classic
+```
+
+Followed instructions here:
+https://monkeybox.grafana.net/a/grafana-k8s-app/configuration
+
+After step 5, edit the configmap:
+
+```
+kubectl edit configmap grafana-agent-logs
+```
+
+And replace `docker: {}` with `cri: {}`
+
+Had to disable prometheus on the the cluster itself.
+
+Some things we want to do:
+