Skip to content

Commit c5f4d5c

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

File tree

5 files changed

+139
-0
lines changed

5 files changed

+139
-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,83 @@
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: ghcr.io/martinohmann/landscape-weather-server
38+
tag: latest@sha256:f691fa8b00f867e766f8e1b0ac95d261389b3168ab43e4a3b04946a1670d725f
39+
env:
40+
NO_COLOR: 'true'
41+
RUST_LOG: landscape_weather_server=debug
42+
envFrom:
43+
- secretRef:
44+
name: *app
45+
probes:
46+
liveness:
47+
enabled: true
48+
readiness:
49+
enabled: true
50+
resources:
51+
requests:
52+
cpu: 10m
53+
limits:
54+
memory: 100Mi
55+
defaultPodOptions:
56+
securityContext:
57+
runAsNonRoot: true
58+
runAsUser: 568
59+
runAsGroup: 568
60+
fsGroup: 568
61+
fsGroupChangePolicy: OnRootMismatch
62+
seccompProfile:
63+
type: RuntimeDefault
64+
service:
65+
app:
66+
controller: landscape-weather
67+
ports:
68+
http:
69+
port: 8080
70+
ingress:
71+
app:
72+
enabled: true
73+
className: internal
74+
hosts:
75+
- host: &host landscape-weather.18b.haus
76+
paths:
77+
- path: /
78+
service:
79+
identifier: app
80+
port: http
81+
tls:
82+
- hosts:
83+
- *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)