Skip to content

Commit 3885a64

Browse files
committed
feat: install landscape-weather
1 parent 9767dba commit 3885a64

File tree

5 files changed

+138
-0
lines changed

5 files changed

+138
-0
lines changed

kubernetes/main/apps/default/kustomization.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ resources:
1111
- ./homepage/ks.yaml
1212
- ./jellyfin/ks.yaml
1313
- ./kubernetes-schemas/ks.yaml
14+
- ./landscape-weather/ks.yaml
1415
- ./miniflux/ks.yaml
1516
- ./mosquitto/ks.yaml
1617
- ./nextcloud/ks.yaml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
3+
apiVersion: helm.toolkit.fluxcd.io/v2
4+
kind: HelmRelease
5+
metadata:
6+
name: &app landscape-weather
7+
spec:
8+
interval: 2h
9+
chart:
10+
spec:
11+
chart: app-template
12+
version: 3.5.1
13+
sourceRef:
14+
kind: HelmRepository
15+
name: bjw-s
16+
namespace: flux-system
17+
maxHistory: 2
18+
install:
19+
remediation:
20+
retries: 3
21+
upgrade:
22+
cleanupOnFail: true
23+
remediation:
24+
retries: 3
25+
uninstall:
26+
keepHistory: false
27+
values:
28+
controllers:
29+
landscape-weather:
30+
replicas: 1
31+
strategy: RollingUpdate
32+
annotations:
33+
reloader.stakater.com/auto: "true"
34+
containers:
35+
app:
36+
image:
37+
repository: registry.18b.haus/landscape-weather-server
38+
tag: latest
39+
env:
40+
RUST_LOG: landscape_weather_server=debug
41+
envFrom:
42+
- secretRef:
43+
name: *app
44+
probes:
45+
liveness:
46+
enabled: true
47+
readiness:
48+
enabled: true
49+
resources:
50+
requests:
51+
cpu: 10m
52+
limits:
53+
memory: 100Mi
54+
defaultPodOptions:
55+
securityContext:
56+
runAsNonRoot: true
57+
runAsUser: 568
58+
runAsGroup: 568
59+
fsGroup: 568
60+
fsGroupChangePolicy: OnRootMismatch
61+
seccompProfile:
62+
type: RuntimeDefault
63+
service:
64+
app:
65+
controller: landscape-weather
66+
ports:
67+
http:
68+
port: 8080
69+
ingress:
70+
app:
71+
enabled: true
72+
className: internal
73+
hosts:
74+
- host: &host landscape-weather.18b.haus
75+
paths:
76+
- path: /
77+
service:
78+
identifier: app
79+
port: http
80+
tls:
81+
- hosts:
82+
- *host
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
3+
apiVersion: kustomize.config.k8s.io/v1beta1
4+
kind: Kustomization
5+
resources:
6+
- ./secret.sops.yaml
7+
- ./helmrelease.yaml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: landscape-weather
5+
stringData:
6+
LATITUDE: ENC[AES256_GCM,data:2mDk9CCe5vkXgcVGn0tDuFY=,iv:Uh58n5Bfoo3r71ra2HSFtZIo+KTcomZuyme1NAbNmbM=,tag:9QOgPTuafxodk9W/yYCSDA==,type:str]
7+
LONGITUDE: ENC[AES256_GCM,data:nXxfnGMtTBqEURE5QID13rUp,iv:fkLDHXsYwW6lpVzFMKHvC0QquF9CABl1larG9VGDyL4=,tag:uMMPcB4EgKpYvTjUwykZ6A==,type:str]
8+
sops:
9+
kms: []
10+
gcp_kms: []
11+
azure_kv: []
12+
hc_vault: []
13+
age:
14+
- recipient: age1u79ltfzz5k79ddwgv59r76p2532xnaehzz7vggttctudr6gdkvhq33edn6
15+
enc: |
16+
-----BEGIN AGE ENCRYPTED FILE-----
17+
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBIRk5tdHZrSTJtQnFwc0xI
18+
b09xdWdjSE14bGtBRmJkUHhHalJmYWRUSldJClZVWXlKbnRrdFIwSWtLRWV1cVlJ
19+
NWRtQytUb0swMEk3anNFMHN5MHpKLzQKLS0tIGRlL24vamJWMTArNzY5R01jVEZq
20+
dmlkR0oxVWxLM1RCbms3S0xRVGhmSFUKe4Me3LNNHQ2PXoyfa5R6BHZzkSuIIGq0
21+
eZRlbFmYSPbGwriihaD0f9kb6qiJoABRLCEDZsyGw7tTfi/IHBQ6Ng==
22+
-----END AGE ENCRYPTED FILE-----
23+
lastmodified: "2024-10-18T21:10:43Z"
24+
mac: ENC[AES256_GCM,data:B2HPswZvc7e11pIawOvgh7+CIeaMGjfYNIkYSsOtJ5Q7ViSlJJ+fW3EIs9Akgxu+nJSOYMN9JsXgKudgzjNnK+Pcv38Z8yvxUT3cZBSTchemAKzNqGTjxk124+pGEu09MD2yIa+EzCQb8HLqtt6iJXw21qIVHDJ/wXWbGMl4Ug8=,iv:/zIsODFOKNnIeh0DQp+s9dL02AD4WImgSQ6MTCM+fCE=,tag:bU9vyTC8v7a4Z5EkaOtVkg==,type:str]
25+
pgp: []
26+
encrypted_regex: ^(data|stringData)$
27+
version: 3.9.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
# yaml-language-server: $schema=https://kubernetes-schemas.18b.haus/kustomize.toolkit.fluxcd.io/kustomization_v1.json
3+
apiVersion: kustomize.toolkit.fluxcd.io/v1
4+
kind: Kustomization
5+
metadata:
6+
name: &app landscape-weather
7+
namespace: flux-system
8+
spec:
9+
targetNamespace: default
10+
commonMetadata:
11+
labels:
12+
app.kubernetes.io/name: *app
13+
path: ./kubernetes/main/apps/default/landscape-weather/app
14+
prune: true
15+
sourceRef:
16+
kind: GitRepository
17+
name: home-kubernetes
18+
wait: false
19+
interval: 2h
20+
retryInterval: 1m
21+
timeout: 5m

0 commit comments

Comments
 (0)