From ed31c3b84579d01caaf0a637b8539d9cd9c8152e Mon Sep 17 00:00:00 2001 From: Ales Lerch <13370338+axeII@users.noreply.github.com> Date: Wed, 25 Sep 2024 18:37:30 +0200 Subject: [PATCH] refactor: Update helmrelease.yaml for pastebin app This commit refactors the helmrelease.yaml file for the pastebin app. It updates the name from "microbin" to "pastebin" and adds an interval of 30 minutes. The chart version is also updated to 3.4.0. Additionally, it includes changes to the install and upgrade sections, adding remediation options and cleanup on fail. The values section is modified to use the "pastebin" controller and secret. Update ks.yaml for pastebin app This commit updates the ks.yaml file for the pastebin app. It adds a dependency on "longhorn" and removes the commented-out dependencies on "cluster-apps-external-secrets-stores". The path is set to "./kubernetes/apps/security/pastebin/app" and pruning is enabled. --- .../security/pastebin/app/helmrelease.yaml | 19 ++++++++++++++----- kubernetes/apps/security/pastebin/ks.yaml | 5 ++--- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/kubernetes/apps/security/pastebin/app/helmrelease.yaml b/kubernetes/apps/security/pastebin/app/helmrelease.yaml index d0ec42414..dd3e35475 100644 --- a/kubernetes/apps/security/pastebin/app/helmrelease.yaml +++ b/kubernetes/apps/security/pastebin/app/helmrelease.yaml @@ -2,19 +2,28 @@ apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: - name: microbin + name: pastebin spec: + interval: 30m chart: spec: chart: app-template + version: 3.4.0 sourceRef: kind: HelmRepository name: bjw-s-charts namespace: flux-system - version: 3.4.0 + install: + remediation: + retries: 3 + upgrade: + cleanupOnFail: true + remediation: + strategy: rollback + retries: 3 values: controllers: - microbin: + pastebin: replicas: 1 strategy: RollingUpdate annotations: @@ -23,7 +32,7 @@ spec: app: envFrom: - secretRef: - name: microbin-secret + name: pastebin-secret image: repository: docker.io/privatebin/nginx-fpm-alpine tag: 1.7.4@sha256:4cc5f26f5b558b734cb084ada4fdacd75bd9f5e4574f3f3df54165b3623d6b86 @@ -80,7 +89,7 @@ spec: - *host service: app: - controller: microbin + controller: pastebin ports: http: port: 8080 diff --git a/kubernetes/apps/security/pastebin/ks.yaml b/kubernetes/apps/security/pastebin/ks.yaml index 32fa29c81..c44f9f625 100644 --- a/kubernetes/apps/security/pastebin/ks.yaml +++ b/kubernetes/apps/security/pastebin/ks.yaml @@ -9,9 +9,8 @@ spec: commonMetadata: labels: app.kubernetes.io/name: *app - # dependsOn: - # - name: longhorn - # - name: cluster-apps-external-secrets-stores + dependsOn: + - name: longhorn path: ./kubernetes/apps/security/pastebin/app prune: true sourceRef: