Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: install landscape-weather #1498

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Conversation

martinohmann
Copy link
Owner

No description provided.

@github-actions github-actions bot added area/kubernetes Changes made in the kubernetes directory cluster/main labels Oct 18, 2024
@martinohmann martinohmann force-pushed the landscape-weather-server/install branch from 4d66a90 to 3885a64 Compare October 18, 2024 21:25
Copy link

github-actions bot commented Oct 18, 2024

kustomization changes in kubernetes/main

--- kubernetes/main/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/landscape-weather

+++ kubernetes/main/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/landscape-weather

@@ -0,0 +1,32 @@

+---
+apiVersion: kustomize.toolkit.fluxcd.io/v1
+kind: Kustomization
+metadata:
+  labels:
+    kustomize.toolkit.fluxcd.io/name: cluster-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: landscape-weather
+  namespace: flux-system
+spec:
+  commonMetadata:
+    labels:
+      app.kubernetes.io/name: landscape-weather
+  decryption:
+    provider: sops
+    secretRef:
+      name: sops-age
+  interval: 2h
+  path: ./kubernetes/main/apps/default/landscape-weather/app
+  postBuild:
+    substituteFrom:
+    - kind: Secret
+      name: cluster-secrets
+  prune: true
+  retryInterval: 1m
+  sourceRef:
+    kind: GitRepository
+    name: home-kubernetes
+  targetNamespace: default
+  timeout: 5m
+  wait: false
+
--- kubernetes/main/apps/default/landscape-weather/app Kustomization: flux-system/landscape-weather HelmRelease: default/landscape-weather

+++ kubernetes/main/apps/default/landscape-weather/app Kustomization: flux-system/landscape-weather HelmRelease: default/landscape-weather

@@ -0,0 +1,88 @@

+---
+apiVersion: helm.toolkit.fluxcd.io/v2
+kind: HelmRelease
+metadata:
+  labels:
+    app.kubernetes.io/name: landscape-weather
+    kustomize.toolkit.fluxcd.io/name: landscape-weather
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: landscape-weather
+  namespace: default
+spec:
+  chart:
+    spec:
+      chart: app-template
+      sourceRef:
+        kind: HelmRepository
+        name: bjw-s
+        namespace: flux-system
+      version: 3.5.1
+  install:
+    remediation:
+      retries: 3
+  interval: 2h
+  maxHistory: 2
+  uninstall:
+    keepHistory: false
+  upgrade:
+    cleanupOnFail: true
+    remediation:
+      retries: 3
+  values:
+    controllers:
+      landscape-weather:
+        annotations:
+          reloader.stakater.com/auto: 'true'
+        containers:
+          app:
+            env:
+              NO_COLOR: 'true'
+              RUST_LOG: landscape_weather_server=debug
+            envFrom:
+            - secretRef:
+                name: landscape-weather
+            image:
+              repository: ghcr.io/martinohmann/landscape-weather-server
+              tag: latest@sha256:f691fa8b00f867e766f8e1b0ac95d261389b3168ab43e4a3b04946a1670d725f
+            probes:
+              liveness:
+                enabled: true
+              readiness:
+                enabled: true
+            resources:
+              limits:
+                memory: 100Mi
+              requests:
+                cpu: 10m
+        replicas: 1
+        strategy: RollingUpdate
+    defaultPodOptions:
+      securityContext:
+        fsGroup: 568
+        fsGroupChangePolicy: OnRootMismatch
+        runAsGroup: 568
+        runAsNonRoot: true
+        runAsUser: 568
+        seccompProfile:
+          type: RuntimeDefault
+    ingress:
+      app:
+        className: internal
+        enabled: true
+        hosts:
+        - host: landscape-weather.18b.haus
+          paths:
+          - path: /
+            service:
+              identifier: app
+              port: http
+        tls:
+        - hosts:
+          - landscape-weather.18b.haus
+    service:
+      app:
+        controller: landscape-weather
+        ports:
+          http:
+            port: 8080
+

Copy link

github-actions bot commented Oct 18, 2024

helmrelease changes in kubernetes/main

--- HelmRelease: default/landscape-weather Service: default/landscape-weather

+++ HelmRelease: default/landscape-weather Service: default/landscape-weather

@@ -0,0 +1,22 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: landscape-weather
+  labels:
+    app.kubernetes.io/instance: landscape-weather
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: landscape-weather
+    app.kubernetes.io/service: landscape-weather
+spec:
+  type: ClusterIP
+  ports:
+  - port: 8080
+    targetPort: 8080
+    protocol: TCP
+    name: http
+  selector:
+    app.kubernetes.io/component: landscape-weather
+    app.kubernetes.io/instance: landscape-weather
+    app.kubernetes.io/name: landscape-weather
+
--- HelmRelease: default/landscape-weather Deployment: default/landscape-weather

+++ HelmRelease: default/landscape-weather Deployment: default/landscape-weather

@@ -0,0 +1,75 @@

+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: landscape-weather
+  labels:
+    app.kubernetes.io/component: landscape-weather
+    app.kubernetes.io/instance: landscape-weather
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: landscape-weather
+  annotations:
+    reloader.stakater.com/auto: 'true'
+spec:
+  revisionHistoryLimit: 3
+  replicas: 1
+  strategy:
+    type: RollingUpdate
+  selector:
+    matchLabels:
+      app.kubernetes.io/component: landscape-weather
+      app.kubernetes.io/name: landscape-weather
+      app.kubernetes.io/instance: landscape-weather
+  template:
+    metadata:
+      labels:
+        app.kubernetes.io/component: landscape-weather
+        app.kubernetes.io/instance: landscape-weather
+        app.kubernetes.io/name: landscape-weather
+    spec:
+      enableServiceLinks: false
+      serviceAccountName: default
+      automountServiceAccountToken: true
+      securityContext:
+        fsGroup: 568
+        fsGroupChangePolicy: OnRootMismatch
+        runAsGroup: 568
+        runAsNonRoot: true
+        runAsUser: 568
+        seccompProfile:
+          type: RuntimeDefault
+      hostIPC: false
+      hostNetwork: false
+      hostPID: false
+      dnsPolicy: ClusterFirst
+      containers:
+      - env:
+        - name: NO_COLOR
+          value: 'true'
+        - name: RUST_LOG
+          value: landscape_weather_server=debug
+        envFrom:
+        - secretRef:
+            name: landscape-weather
+        image: ghcr.io/martinohmann/landscape-weather-server:latest@sha256:f691fa8b00f867e766f8e1b0ac95d261389b3168ab43e4a3b04946a1670d725f
+        livenessProbe:
+          failureThreshold: 3
+          initialDelaySeconds: 0
+          periodSeconds: 10
+          tcpSocket:
+            port: 8080
+          timeoutSeconds: 1
+        name: app
+        readinessProbe:
+          failureThreshold: 3
+          initialDelaySeconds: 0
+          periodSeconds: 10
+          tcpSocket:
+            port: 8080
+          timeoutSeconds: 1
+        resources:
+          limits:
+            memory: 100Mi
+          requests:
+            cpu: 10m
+
--- HelmRelease: default/landscape-weather Ingress: default/landscape-weather

+++ HelmRelease: default/landscape-weather Ingress: default/landscape-weather

@@ -0,0 +1,26 @@

+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  name: landscape-weather
+  labels:
+    app.kubernetes.io/instance: landscape-weather
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: landscape-weather
+spec:
+  ingressClassName: internal
+  tls:
+  - hosts:
+    - landscape-weather.18b.haus
+  rules:
+  - host: landscape-weather.18b.haus
+    http:
+      paths:
+      - path: /
+        pathType: Prefix
+        backend:
+          service:
+            name: landscape-weather
+            port:
+              number: 8080
+

@martinohmann martinohmann force-pushed the landscape-weather-server/install branch from 3885a64 to c5f4d5c Compare October 18, 2024 21:43
@martinohmann martinohmann merged commit 31f974e into main Oct 18, 2024
7 checks passed
@martinohmann martinohmann deleted the landscape-weather-server/install branch October 18, 2024 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubernetes Changes made in the kubernetes directory cluster/main
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant