From 33dfe3e204ecd3881a82302dbe27dc8c1fa14b5b Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Wed, 14 Apr 2021 01:31:14 -0700 Subject: [PATCH] fix homebrew --- examples/README.md | 14 ++++++++++---- examples/k8s/readme.md | 5 ----- examples/{k8s/influx.yml => k8s_influx.yaml} | 18 +++++++++--------- ...unifi_poller.yaml => k8s_unifi_poller.yaml} | 6 +++--- 4 files changed, 22 insertions(+), 21 deletions(-) delete mode 100644 examples/k8s/readme.md rename examples/{k8s/influx.yml => k8s_influx.yaml} (96%) rename examples/{k8s/unifi_poller.yaml => k8s_unifi_poller.yaml} (94%) diff --git a/examples/README.md b/examples/README.md index aa97d781..aace02eb 100644 --- a/examples/README.md +++ b/examples/README.md @@ -7,8 +7,14 @@ the format. A JSON file should end with `.json`, and YAML with `.yaml`. The default format is always TOML and may have any _other_ suffix. -#### Dashboards +# Kubernetes -- This folder used to contain Grafana Dashboards. -- **They are now located at [Grafana.com](https://grafana.com/dashboards?search=unifi-poller).** -- [Grafana Dashboards Wiki](https://github.com/unifi-poller/unifi-poller/wiki/Grafana-Dashboards) +There are two files for Kubernetes deployment examples. +Feel free to use them as you see fit. +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). diff --git a/examples/k8s/readme.md b/examples/k8s/readme.md deleted file mode 100644 index 0f3e4ce2..00000000 --- a/examples/k8s/readme.md +++ /dev/null @@ -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. \ No newline at end of file diff --git a/examples/k8s/influx.yml b/examples/k8s_influx.yaml similarity index 96% rename from examples/k8s/influx.yml rename to examples/k8s_influx.yaml index 8d5c7d8f..0b963c43 100644 --- a/examples/k8s/influx.yml +++ b/examples/k8s_influx.yaml @@ -1,4 +1,4 @@ -#Create InfluxDB +# Create InfluxDB --- apiVersion: apps/v1 kind: Deployment @@ -38,7 +38,7 @@ spec: volumeMounts: - name: influx-volume mountPath: /var/lib/influxdb - volumes: + volumes: - name: influx-volume persistentVolumeClaim: claimName: influx-volume-claim @@ -52,13 +52,13 @@ kind: PersistentVolumeClaim metadata: name: influx-volume-claim namespace: monitoring -spec: +spec: accessModes: - ReadWriteOnce resources: requests: storage: 10Gi ---- +--- apiVersion: v1 kind: Service metadata: @@ -75,7 +75,7 @@ spec: --- #Create Chronograf ---- +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -112,7 +112,7 @@ spec: # volumeMounts: # - name: chronograf-volume # mountPath: /var/lib/chronograf -# volumes: +# volumes: # - name: chronograf-volume # persistentVolumeClaim: # claimName: chronograf-volume-claim @@ -122,13 +122,13 @@ kind: PersistentVolumeClaim metadata: name: chronograf-volume-claim namespace: monitoring -spec: +spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Gi ---- +--- apiVersion: v1 kind: Service metadata: @@ -142,4 +142,4 @@ spec: - protocol: TCP port: 8888 targetPort: 8888 ---- \ No newline at end of file +--- diff --git a/examples/k8s/unifi_poller.yaml b/examples/k8s_unifi_poller.yaml similarity index 94% rename from examples/k8s/unifi_poller.yaml rename to examples/k8s_unifi_poller.yaml index 48304fe2..3eae53af 100644 --- a/examples/k8s/unifi_poller.yaml +++ b/examples/k8s_unifi_poller.yaml @@ -1,5 +1,5 @@ -#Create Unifi Poller ---- +# Create UniFi Poller +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -68,7 +68,7 @@ data: dynamic = false [loki] #Point to your own Loki service - url = "http://loki.monitoring.svc.cluster.local:3100" + url = "http://loki.monitoring.svc.cluster.local:3100" [[unifi.controller]] #Change to your own URL url = "https://xx.xx.xx.xx"