Skip to content

Commit

Permalink
feat: add monitoring app
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirsamdarshi committed Oct 1, 2023
1 parent 73e79e7 commit 7e600c7
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 0 deletions.
1 change: 1 addition & 0 deletions kubernetes/apps/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ kind: Kustomization
resources:
- ./namespace.yaml
- ./hajimari/ks.yaml
- ./other/ks.yaml
32 changes: 32 additions & 0 deletions kubernetes/apps/default/other/app/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: apple-stock-monitor
labels:
app: apple-stock-monitor
spec:
replicas: 1
selector:
matchLabels:
app: apple-stock-monitor
template:
metadata:
name: apple-stock-monitor
annotations:
reloader.stakater.com/auto: "true"
labels:
app: apple-stock-monitor
spec:
containers:
- name: apple-stock-monitor
image: ghcr.io/mihirsamdarshi/apple-stock-notifier/app:0.2.1
imagePullPolicy: IfNotPresent
resources:
limits:
memory: "128Mi"
cpu: "200m"

restartPolicy: Always
imagePullSecrets:
- name: ghcr-registry-auth

28 changes: 28 additions & 0 deletions kubernetes/apps/default/other/app/ghcr_registry_auth.sops.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
kind: Secret
type: kubernetes.io/dockerconfigjson
apiVersion: v1
metadata:
name: ghcr-registry-auth
namespace: default
data:
.dockerconfigjson: ENC[AES256_GCM,data:k5jJXS17yLi82DhPEqk2DMTRCV0m50dRDRmhbN8vyXi4w34Brm6HdnzYXdKGOqlWhS+ZkaVOOrgWvi173lahPtsa+moplP6ih9N3sLC09Z6omOLZZYyJeY7UXEU8Szl2KkTgkXhwvaxvami+4JAqDeUp4zCpt8cm0owED7gMFzzJrW2Uj6UfcUInbNnYI1JY9fsmv9r8dKHpzz4ilr+7jnumaPy2EYPwDJ4R2rsZdHGXHCaHik8iD07yAWQKm6mjOsQlXMreHMVPIivjwUYSEm8KAT0tcGc9QPOjZ9rBUaPsjRbjq3uLpf9lZbDD9LAe9LXxQ+FALhscdUtCINx3IcqNVB+uvXCaE3Gc5sLDDRBbQHoo2OAknvijMF7Dd5UARLValtyTMSucZ4GyBK/Vpg==,iv:uUhLbJJPAdWZkoR3gYnRrErkh5qDwtBMCtr5Qw8RNtY=,tag:OzHxuTL5L0dzAM1peKCfqQ==,type:str]
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age13p9s7k5su7ns4ys54qfj2cn2kekcv0h0jxg2hdgl68cy9yajvauqk82apf
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBiU1BnV0pialhWcnNZc2RF
eGZDVTVBOHFwMGxYZ1FwbkVxYUEvK0oxZjE0CnJvQXBQUTBFSzJDVk9xZ2h4WXA2
UHlRUEVJOGZWN2sxVFhSNytrTjV4NUkKLS0tIExrVDBuS2JTWnRrSnN4Zjg2RzZU
Mk94dlhNRDFsYWFweURGYU5sWm56V0kK3PQd7p7HXWhnwgwB5V+ThuezHaEacL1l
pqMNKOgk70xoTu5lhCu+Dd1rJDEVgsWH/rMwZwwH7gpsZwWmgUthtw==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2023-10-01T01:26:49Z"
mac: ENC[AES256_GCM,data:2EelBpWAT7R01ltV5joyRzM+aRRKVpobGhvz/scUZ4T/+hGWWMTj5JsQ2rGGzuUf8+iGXcIk92gUBI/GF96ZUFzm/2CxIiX1sR0an/Mf/TdOr/HavzDcg785hsivTB1pf7DlvdfXV6k1m7v71u3mt8hb4QwO83jxgz70WhJiSGM=,iv:zfM9Zbniz1DCjTIQAaVhLgGIAVeLACXOL+ksaz3cx44=,tag:H8ryWA1XEvSz4+oOyQuUuw==,type:str]
pgp: []
encrypted_regex: ^(data|stringData)$
version: 3.8.0
7 changes: 7 additions & 0 deletions kubernetes/apps/default/other/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
resources:
- ./deployment.yaml
- ./ghcr_registry_auth.sops.yaml
16 changes: 16 additions & 0 deletions kubernetes/apps/default/other/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/kustomization_v1beta2.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-other
namespace: flux-system
spec:
path: ./kubernetes/apps/default/other/app
prune: true
sourceRef:
kind: GitRepository
name: home-kubernetes
interval: 30m
retryInterval: 1m
timeout: 5m

0 comments on commit 7e600c7

Please sign in to comment.