Skip to content

Commit

Permalink
refactor: Update helmrelease.yaml for pastebin app
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
axeII committed Sep 25, 2024
1 parent afd4adf commit ed31c3b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
19 changes: 14 additions & 5 deletions kubernetes/apps/security/pastebin/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -80,7 +89,7 @@ spec:
- *host
service:
app:
controller: microbin
controller: pastebin
ports:
http:
port: 8080
Expand Down
5 changes: 2 additions & 3 deletions kubernetes/apps/security/pastebin/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ed31c3b

Please sign in to comment.