forked from notthebee/infra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5918b2d
commit fa1697a
Showing
12 changed files
with
487 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
deployment/kubernetes/kustomize/homepage/overlays/dev/clusterrolebinding.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: homepage-dev | ||
labels: | ||
app.kubernetes.io/name: homepage | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: homepage | ||
subjects: | ||
- kind: ServiceAccount | ||
name: homepage | ||
namespace: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
deployment/kubernetes/kustomize/homepage/overlays/prod/clusterrolebinding.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: homepage-prod | ||
labels: | ||
app.kubernetes.io/name: homepage | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: homepage | ||
subjects: | ||
- kind: ServiceAccount | ||
name: homepage | ||
namespace: prod |
208 changes: 208 additions & 0 deletions
208
deployment/kubernetes/kustomize/homepage/overlays/prod/configmap.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,208 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: homepage | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/name: homepage | ||
data: | ||
kubernetes.yaml: | | ||
mode: cluster | ||
settings.yaml: | | ||
background: https://images.unsplash.com/photo-1608764937749-8797e2b350f0?q=80&w=2560&auto=format&fit=crop | ||
layout: | ||
Media: | ||
style: row | ||
columns: 4 | ||
bookmarks.yaml: | | ||
- General: | ||
- WindowSwap: | ||
- abbr: WS | ||
href: https://www.window-swap.com/Window | ||
services.yaml: | | ||
- Infrastructure: | ||
- Proxmox: | ||
href: https://phoenix.artemis.{{ parent_host }} | ||
icon: proxmox.png | ||
description: VM cluster | ||
widget: | ||
type: proxmox | ||
url: https://phoenix.artemis.{{ parent_host }} | ||
username: {{ proxmox_api_username }} | ||
password: {{ proxmox_api_token }} | ||
- Portainer: | ||
href: https://portainer.artemis.{{ parent_host }} | ||
icon: portainer.png | ||
description: Docker containers on DigitalOcean droplet | ||
widget: | ||
type: portainer | ||
url: https://{{ artemis_tailscale_ip }}:9443 | ||
env: 2 | ||
key: {{ portainer_api_token }} | ||
- TrueNAS: | ||
href: https://{{ truenas_host }} | ||
icon: truenas.png | ||
description: NAS | ||
widget: | ||
type: truenas | ||
url: https://{{ truenas_host }} | ||
key: {{ truenas_api_key }} | ||
- Omada: | ||
href: https://omada.{{ parent_host }} | ||
icon: omada.png | ||
description: Networking infra | ||
widget: | ||
type: omada | ||
url: https://omada.{{ parent_host }} | ||
username: {{ omada_user_name }} | ||
password: {{ omada_user_pass }} | ||
site: Homelab | ||
fields: ["activeUser", "alerts", "connectedGateways"] | ||
- Services: | ||
- Nextcloud: | ||
href: https://nextcloud.{{ host }} | ||
ping: https://nextcloud.{{ host }}/status.php | ||
description: File sharing | ||
icon: nextcloud.png | ||
- Bitwarden: | ||
href: https://vault.{{ parent_host }} | ||
ping: https://vault.{{ parent_host }} | ||
description: Password manager | ||
icon: bitwarden.png | ||
- Paperless: | ||
href: https://paperless.{{ host }} | ||
ping: https://paperless.{{ host }} | ||
description: Document management | ||
icon: paperless.png | ||
widget: | ||
type: paperlessngx | ||
url: https://paperless.{{ host }} | ||
key: {{ paperless_api_key }} | ||
- MLFlow: | ||
href: https://mlflow.{{ host }} | ||
ping: https://mlflow.{{ host }} | ||
description: ML experiment and model organization | ||
icon: https://mlflow.{{ host }}/static-files/favicon.ico | ||
- Argo CD: | ||
href: https://argocd.{{ host }} | ||
ping: https://argocd.{{ host }} | ||
description: Continuous Deployment | ||
icon: argocd.png | ||
- Coder: | ||
href: https://coder.{{ host }} | ||
ping: https://coder.{{ host }} | ||
description: Remote dev | ||
icon: coder.png | ||
- Label Studio: | ||
href: https://labelstudio.{{ host }} | ||
ping: https://labelstudio.{{ host }} | ||
description: Annotation and labelling project organization | ||
icon: https://labelstudio.{{ host }}/favicon.ico | ||
- MinIO: | ||
href: https://minio.{{ host }} | ||
ping: https://minio.{{ host }} | ||
description: Object storage | ||
icon: minio.png | ||
- Media: | ||
- Kavita: | ||
href: https://kavita.{{ host }} | ||
ping: https://kavita.{{ host }} | ||
description: E-book reader | ||
icon: kavita.png | ||
- Immich: | ||
href: https://photos.{{ parent_host }} | ||
ping: https://photos.{{ parent_host }} | ||
description: Photo library | ||
icon: immich.png | ||
widget: | ||
type: immich | ||
url: https://photos.{{ parent_host }} | ||
key: {{ immich_api_key }} | ||
- Linkwarden: | ||
href: https://linkwarden.{{ host }} | ||
ping: https://linkwarden.{{ host }} | ||
description: Bookmark manager | ||
icon: linkwarden.png | ||
widget: | ||
type: linkwarden | ||
url: https://linkwarden.{{ host }} | ||
key: {{ linkwarden_access_token }} | ||
- Observability: | ||
- Uptime Kuma: | ||
href: https://status.{{ parent_host }} | ||
icon: uptime-kuma.png | ||
description: Service uptime | ||
widget: | ||
type: uptimekuma | ||
url: https://status.{{ parent_host }} | ||
slug: overall | ||
- Netdata: | ||
href: https://app.netdata.cloud/spaces/shikharbhardwa-space/rooms/all-nodes/home | ||
icon: netdata.png | ||
description: Hardware monitoring | ||
- Grafana: | ||
href: https://arete.grafana.net | ||
icon: grafana.png | ||
description: Application stats and logs | ||
- Admin: | ||
- Shell: | ||
href: https://shell.{{ host }} | ||
icon: shell.png | ||
description: Admin shell access | ||
# - Wazuh: | ||
# href: https://wazuh.{{ host }} | ||
# icon: wazuh.png | ||
# description: Open source XDR and SIEM | ||
widgets.yaml: | | ||
- kubernetes: | ||
cluster: | ||
show: true | ||
cpu: true | ||
memory: true | ||
showLabel: true | ||
label: "Cluster: tenzing" | ||
nodes: | ||
show: true | ||
cpu: true | ||
memory: true | ||
showLabel: true | ||
- search: | ||
provider: duckduckgo | ||
target: _blank | ||
- openmeteo: | ||
label: Delhi | ||
latitude: 28.7 | ||
longitude: 77.1 | ||
timezone: Asia/Kolkata | ||
units: metric | ||
cache: 5 | ||
docker.yaml: "" | ||
custom.css: | | ||
@media(min-width: 500px) { | ||
.services-list.flex.flex-col { | ||
display: grid !important; | ||
grid-template-columns: repeat(2, 1fr); | ||
gap: 0.5rem; | ||
} | ||
.services-list.flex.flex-col .service { | ||
grid-column: span 2; | ||
} | ||
.services-list.flex.flex-col .service > div { | ||
height: 100%; | ||
} | ||
.services-list.flex.flex-col .service > .mb-2 { | ||
margin-bottom: 0 !important; | ||
} | ||
.services-list.flex.flex-col #col-small.service { | ||
grid-column: span 1; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
deployment/kubernetes/kustomize/homepage/overlays/prod/kustomization.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../base | ||
- clusterrolebinding.yml | ||
namespace: prod | ||
patches: | ||
- path: configmap.yml | ||
target: | ||
name: homepage | ||
kind: ConfigMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
deployment/kubernetes/kustomize/letsencrypt/overlays/prod/certificate_host.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: tenzing-dev-cert | ||
namespace: dev | ||
spec: | ||
dnsNames: | ||
- "*.{{ prod_host }}" |
9 changes: 9 additions & 0 deletions
9
deployment/kubernetes/kustomize/letsencrypt/overlays/prod/kustomization.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../base | ||
namespace: prod | ||
patches: | ||
- path: certificate_host.yml | ||
target: | ||
name: tenzing-dev-cert |
30 changes: 30 additions & 0 deletions
30
deployment/kubernetes/kustomize/main-ingress/overlays/prod/ingress.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
traefik.ingress.kubernetes.io/router.middlewares: dev-https-redirect@kubernetescrd | ||
name: main-ingress | ||
labels: | ||
name: main-ingress | ||
spec: | ||
tls: | ||
- hosts: | ||
- "{{ prod_host }}" | ||
- "*.{{ prod_host }}" | ||
secretName: tenzing-dev-cert-tls | ||
defaultBackend: | ||
service: | ||
name: homepage | ||
port: | ||
number: 3000 | ||
rules: | ||
- host: "lab.{{ prod_host }}" | ||
http: | ||
paths: | ||
- pathType: Prefix | ||
path: "/" | ||
backend: | ||
service: | ||
name: homepage | ||
port: | ||
number: 3000 |
9 changes: 9 additions & 0 deletions
9
deployment/kubernetes/kustomize/main-ingress/overlays/prod/kustomization.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../base | ||
namespace: prod | ||
patches: | ||
- path: ingress.yml | ||
target: | ||
name: main-ingress |
Oops, something went wrong.