Pārlūkot izejas kodu

Prometheus Enabled; gphotos-uploader moved to prod

Fred Damstra [io2] 2 gadi atpakaļ
vecāks
revīzija
8354ead953

+ 0 - 0
Testing/gphotos-uploader.README.txt → Workloads/gphotos-uploader.README.txt


+ 0 - 0
Testing/gphotos-uploader.yaml → Workloads/gphotos-uploader.yaml


+ 67 - 0
Workloads/prometheus-service.yaml

@@ -0,0 +1,67 @@
+---
+# Everything else was set up via `microk8s install prometheus`
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  name: prometheus-monkeybox-ingress
+  namespace: monitoring
+  annotations:
+    #nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
+    #nginx.ingress.kubernetes.io/proxy-ssl-verify: "off"
+    cert-manager.io/cluster-issuer: "letsencrypt-prod"
+    ## type of authentication
+    nginx.ingress.kubernetes.io/auth-type: basic
+    ## name of the secret that contains the user/password definitions
+    nginx.ingress.kubernetes.io/auth-secret: basic-auth
+    ## message to display with an appropriate context why the authentication is required
+    nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - Prometheus'
+spec:
+  tls:
+  - hosts:
+    - prometheus.monkeybox.org
+    secretName: prometheus-monkeybox-tls
+  rules:
+  - host: prometheus.monkeybox.org
+    http:
+      paths:
+      - path: /
+        pathType: Prefix
+        backend:
+          service:
+            name: prometheus-k8s
+            port:
+              number: 9090
+---
+# Everything else was set up via `microk8s install grafana`
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  name: grafana-monkeybox-ingress
+  namespace: monitoring
+  annotations:
+    #nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
+    #nginx.ingress.kubernetes.io/proxy-ssl-verify: "off"
+    cert-manager.io/cluster-issuer: "letsencrypt-prod"
+    ## No basic auth for gphotos-uploader
+    ## type of authentication
+    #nginx.ingress.kubernetes.io/auth-type: basic
+    ## name of the secret that contains the user/password definitions
+    #nginx.ingress.kubernetes.io/auth-secret: basic-auth
+    ## message to display with an appropriate context why the authentication is required
+    #nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - Octoprint'
+spec:
+  tls:
+  - hosts:
+    - grafana.monkeybox.org
+    secretName: grafana-monkeybox-tls
+  rules:
+  - host: grafana.monkeybox.org
+    http:
+      paths:
+      - path: /
+        pathType: Prefix
+        backend:
+          service:
+            name: grafana
+            port:
+              number: 3000