Skip to content

Commit

Permalink
Merge pull request #40 from jmhardison/add-home-dashboards
Browse files Browse the repository at this point in the history
adding base for monitoror
  • Loading branch information
jmhardison committed Jul 21, 2023
2 parents c7b8114 + c9243a7 commit be27514
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/homedashboards/monitoror/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "2.0",
"columns": 2,
"tiles": [
{
"type": "PING",
"label": "Internet",
"params": { "hostname": "4.2.2.2" }
}
]
}
50 changes: 50 additions & 0 deletions apps/homedashboards/monitoror/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
apiVersion: v1
kind: Service
metadata:
name: monitoror
labels:
app: monitoror
service: monitoror
spec:
ports:
- port: 8080
name: http
selector:
app: monitoror
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: monitoror
labels:
app: monitoror
version: v1
spec:
replicas: 1
selector:
matchLabels:
app: monitoror
version: v1
template:
metadata:
labels:
app: monitoror
version: v1
spec:
containers:
- name: monitoror
image: monitoror/monitoror
resources:
requests:
cpu: "100m"
imagePullPolicy: IfNotPresent #Always
ports:
- containerPort: 8080
volumeMounts:
- name: config-volume
mountPath: /etc/monitoror/config.json
subPath: config.json
volumes:
- name: config-volume
configMap:
name: monitororconfig
11 changes: 11 additions & 0 deletions apps/homedashboards/monitoror/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: homedashboards

resources:
- deploy.yaml

configMapGenerator:
- name: monitororconfig
files:
- config.json
8 changes: 8 additions & 0 deletions apps/homedashboards/namespace/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: homedashboards

resources:
- namespace.yaml


9 changes: 9 additions & 0 deletions apps/homedashboards/namespace/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
kubernetes.io/metadata.name: homedashboards
istio-injection: enabled
annotations:
operator.1password.io/auto-restart: "true"
name: homedashboards

0 comments on commit be27514

Please sign in to comment.