fix homebrew

This commit is contained in:
David Newhall II 2021-04-14 01:31:14 -07:00
parent c3c9455458
commit 33dfe3e204
4 changed files with 22 additions and 21 deletions

View File

@ -7,8 +7,14 @@ the format. A JSON file should end with `.json`, and
YAML with `.yaml`. The default format is always TOML and YAML with `.yaml`. The default format is always TOML and
may have any _other_ suffix. may have any _other_ suffix.
#### Dashboards # Kubernetes
- This folder used to contain Grafana Dashboards. There are two files for Kubernetes deployment examples.
- **They are now located at [Grafana.com](https://grafana.com/dashboards?search=unifi-poller).** Feel free to use them as you see fit.
- [Grafana Dashboards Wiki](https://github.com/unifi-poller/unifi-poller/wiki/Grafana-Dashboards) Please make sure to the delete all comments before
deploying and make sure to fill in with correct values.
# Notes
When adding new content to this folder, **DO NOT MAKE NEW FOLDERS**,
it will break `make install` on macOS (used for homebrew).

View File

@ -1,5 +0,0 @@
# Kubernetes Template
The following files are Kubernetes deployment examples. Feel free to use them as you see fit.
# Comments
Please make sure to the delete all comments before deploying and make sure to fill in with your according values.

View File

@ -1,4 +1,4 @@
#Create InfluxDB # Create InfluxDB
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
@ -38,7 +38,7 @@ spec:
volumeMounts: volumeMounts:
- name: influx-volume - name: influx-volume
mountPath: /var/lib/influxdb mountPath: /var/lib/influxdb
volumes: volumes:
- name: influx-volume - name: influx-volume
persistentVolumeClaim: persistentVolumeClaim:
claimName: influx-volume-claim claimName: influx-volume-claim
@ -52,13 +52,13 @@ kind: PersistentVolumeClaim
metadata: metadata:
name: influx-volume-claim name: influx-volume-claim
namespace: monitoring namespace: monitoring
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
resources: resources:
requests: requests:
storage: 10Gi storage: 10Gi
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
@ -75,7 +75,7 @@ spec:
--- ---
#Create Chronograf #Create Chronograf
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@ -112,7 +112,7 @@ spec:
# volumeMounts: # volumeMounts:
# - name: chronograf-volume # - name: chronograf-volume
# mountPath: /var/lib/chronograf # mountPath: /var/lib/chronograf
# volumes: # volumes:
# - name: chronograf-volume # - name: chronograf-volume
# persistentVolumeClaim: # persistentVolumeClaim:
# claimName: chronograf-volume-claim # claimName: chronograf-volume-claim
@ -122,13 +122,13 @@ kind: PersistentVolumeClaim
metadata: metadata:
name: chronograf-volume-claim name: chronograf-volume-claim
namespace: monitoring namespace: monitoring
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
resources: resources:
requests: requests:
storage: 1Gi storage: 1Gi
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
@ -142,4 +142,4 @@ spec:
- protocol: TCP - protocol: TCP
port: 8888 port: 8888
targetPort: 8888 targetPort: 8888
--- ---

View File

@ -1,5 +1,5 @@
#Create Unifi Poller # Create UniFi Poller
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@ -68,7 +68,7 @@ data:
dynamic = false dynamic = false
[loki] [loki]
#Point to your own Loki service #Point to your own Loki service
url = "http://loki.monitoring.svc.cluster.local:3100" url = "http://loki.monitoring.svc.cluster.local:3100"
[[unifi.controller]] [[unifi.controller]]
#Change to your own URL #Change to your own URL
url = "https://xx.xx.xx.xx" url = "https://xx.xx.xx.xx"