theshire/kubernetes/apps/network/echo-server/app/helmrelease.yaml

70 lines
1.6 KiB
YAML

---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: echo-server
namespace: network
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.3.0
interval: 30m
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
values:
controllers:
echo-server:
containers:
app:
image:
repository: ghcr.io/mendhak/http-https-echo
tag: "33"
env:
HTTP_PORT: &port 8080
LOG_WITHOUT_NEWLINE: "true"
LOG_IGNORE_PATH: "/healthz"
service:
app:
controller: echo-server
ports:
http:
port: *port
ingress:
app:
enabled: true
className: external-nginx
annotations:
external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"
external-dns.alpha.kubernetes.io/target: external.hsn.dev
hosts:
- host: &host "esv.hsn.dev"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
resources:
requests:
cpu: 15m
memory: 64M
limits:
memory: 128M