Files
auricom-home-cluster/kubernetes/apps/default/truenas/certs-deploy/helmrelease.yaml
feisar-bot aff3536924 ⬆️ Update image ghcr.io/auricom/kubectl to 1.27.2
| datasource | package                 | from   | to     |
| ---------- | ----------------------- | ------ | ------ |
| docker     | ghcr.io/auricom/kubectl | 1.27.1 | 1.27.2 |
2023-05-29 12:04:53 +09:00

106 lines
3.0 KiB
YAML

---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/helmrelease_v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: truenas-certs-deploy
namespace: default
spec:
interval: 15m
chart:
spec:
chart: app-template
version: 1.4.0
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 3
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
controller:
type: cronjob
cronjob:
concurrencyPolicy: Forbid
schedule: "@daily"
restartPolicy: OnFailure
image:
repository: ghcr.io/auricom/kubectl
tag: 1.27.2@sha256:62c3f76150977263c38377842ea4072e115e746393902cc22b7bc1588ad7874f
command: ["/bin/bash", "/app/truenas-certs-deploy.sh"]
env:
HOSTNAME: truenas
TRUENAS_HOME: /mnt/storage/home/homelab
SECRET_DOMAIN: ${SECRET_DOMAIN}
CERTS_DEPLOY_S3_ENABLED: "True"
envFrom:
- secretRef:
name: truenas-certs-deploy-secret
service:
main:
enabled: false
persistence:
config:
enabled: true
type: configMap
name: truenas-certs-deploy-configmap
subPath: truenas-certs-deploy.sh
mountPath: /app/truenas-certs-deploy.sh
defaultMode: 0775
readOnly: true
config-python:
enabled: true
type: configMap
name: truenas-certs-deploy-configmap
subPath: truenas-certs-deploy.py
mountPath: /app/truenas-certs-deploy.py
defaultMode: 0775
readOnly: true
ssh:
enabled: true
type: secret
name: truenas-certs-deploy-secret
subPath: SSH_KEY
mountPath: /opt/id_rsa
defaultMode: 0775
readOnly: true
additionalContainers:
truenas-remote-certs-deploy:
name: truenas-remote-certs-deploy
image: ghcr.io/auricom/kubectl:1.27.2@sha256:62c3f76150977263c38377842ea4072e115e746393902cc22b7bc1588ad7874f
command: ["/bin/bash", "/app/truenas-certs-deploy.sh"]
env:
- name: HOSTNAME
value: truenas-remote
- name: TRUENAS_HOME
value: /mnt/vol1/home/homelab
- name: SECRET_DOMAIN
value: ${SECRET_DOMAIN}
- name: CERTS_DEPLOY_S3_ENABLED
value: "False"
envFrom:
- secretRef:
name: truenas-certs-deploy-secret
volumeMounts:
- name: config
readOnly: true
mountPath: /app/truenas-certs-deploy.sh
subPath: truenas-certs-deploy.sh
- name: config-python
readOnly: true
mountPath: /app/truenas-certs-deploy.py
subPath: truenas-certs-deploy.py
- name: ssh
readOnly: true
mountPath: /opt/id_rsa
subPath: SSH_KEY