Skip to content

Commit

Permalink
Merge pull request #288 from chrisbsmith/orbital-sync
Browse files Browse the repository at this point in the history
add orbital-sync
  • Loading branch information
chrisbsmith authored Apr 9, 2024
2 parents 9248dd3 + 2364a9a commit 224a4d3
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kubernetes/apps/networking/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ resources:
- ./echo-server/ks.yaml
- ./external-dns/ks.yaml
- ./nginx/ks.yaml
- ./pihole/ks.yaml
- ./pihole/ks.yaml
- ./orbital-sync/ks.yaml
25 changes: 25 additions & 0 deletions kubernetes/apps/networking/orbital-sync/app/externalsecret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: orbital-sync
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: orbital-sync-secret
template:
engineVersion: v2
data:
PRIMARY_HOST_BASE_URL: "{{ .PIHOLE_LOCAL_DNS_IP }}"
PRIMARY_HOST_PASSWORD: "{{ .pihole-password }}"
SECONDARY_HOSTS_1_BASE_URL: "{{ .ORBITAL_SYNC_PIHOLE_1 }}"
SECONDARY_HOSTS_1_PASSWORD: "{{ .ORBITAL_SYNC_PIHOLE_1_PASSWORD }}"

dataFrom:
- extract:
key: orbital-sync
- extract:
key: pihole
51 changes: 51 additions & 0 deletions kubernetes/apps/networking/orbital-sync/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: orbital-sync
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.1.0
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
controllers:
orbital-sync:
replicas: 1
strategy: RollingUpdate
containers:
app:
image:
repository: FROM ghcr.io/mattwebbio/orbital-sync
tag: 1.8.0
env:
INTERVAL_MINUTES: 5
envFrom: &envFrom
- secretRef:
name: orbital-sync-secret
resources:
requests:
cpu: 5m
memory: 10M
limits:
memory: 64M
pod:
securityContext:
runAsUser: 568
runAsGroup: 568
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ../../../../templates/gatus/external
20 changes: 20 additions & 0 deletions kubernetes/apps/networking/orbital-sync/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app orbital-sync
namespace: flux-system
spec:
targetNamespace: networking
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./kubernetes/apps/networking/orbital-sync/app
prune: true
sourceRef:
kind: GitRepository
name: home-kubernetes
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m

0 comments on commit 224a4d3

Please sign in to comment.