101 lines
2.5 KiB
YAML
101 lines
2.5 KiB
YAML
---
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app echo-server
|
|
namespace: default
|
|
spec:
|
|
interval: 5m
|
|
chart:
|
|
spec:
|
|
chart: kah-common-chart
|
|
version: 1.1.2
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: k8s-at-home
|
|
namespace: flux-system
|
|
interval: 5m
|
|
install:
|
|
createNamespace: true
|
|
values:
|
|
global:
|
|
nameOverride: *app
|
|
controller:
|
|
replicas: 2
|
|
strategy: RollingUpdate
|
|
image:
|
|
repository: docker.io/jmalloc/echo-server
|
|
tag: 0.3.1
|
|
service:
|
|
main:
|
|
ports:
|
|
http:
|
|
port: &port 8080
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
httpGet:
|
|
path: /health
|
|
port: *port
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
readiness:
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
httpGet:
|
|
path: /health
|
|
port: *port
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
startup:
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
httpGet:
|
|
path: /health
|
|
port: *port
|
|
failureThreshold: 30
|
|
periodSeconds: 10
|
|
ingress:
|
|
main:
|
|
enabled: true
|
|
ingressClassName: "traefik"
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-staging"
|
|
external-dns.alpha.kubernetes.io/target: "ipv4.${SECRET_DOMAIN}"
|
|
external-dns/is-public: "true"
|
|
hajimari.io/enable: "true"
|
|
hajimari.io/icon: "video-input-antenna"
|
|
traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
|
traefik.ingress.kubernetes.io/router.middlewares: "networking-cloudflare-only@kubernetescrd"
|
|
hosts:
|
|
- host: &host "{{ .Release.Name }}.${SECRET_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
tls:
|
|
- hosts:
|
|
- *host
|
|
# # FIXME: Uncomment this block to ensure multiple
|
|
# # replicas of the pod are scheduled on different nodes
|
|
# topologySpreadConstraints:
|
|
# - maxSkew: 1
|
|
# topologyKey: kubernetes.io/hostname
|
|
# whenUnsatisfiable: DoNotSchedule
|
|
# labelSelector:
|
|
# matchLabels:
|
|
# app.kubernetes.io/name: *app
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
limits:
|
|
memory: 96Mi
|