2026-04-12 21:40:19 +00:00

76 lines
3.2 KiB
YAML

# ── Replica count ─────────────────────────────────────────────────────────────
replicaCount: 1
# ── Image ─────────────────────────────────────────────────────────────────────
image:
repository: harbor.dvirlabs.com/my-apps/errorlab
tag: master-3d4e9c3
pullPolicy: IfNotPresent
imagePullSecrets:
- name: harbor-regcred
# ── Service ───────────────────────────────────────────────────────────────────
service:
type: ClusterIP
port: 80
# ── Ingress ───────────────────────────────────────────────────────────────────
ingress:
enabled: true
className: nginx # set to your ingress class (e.g. "nginx", "traefik")
annotations: {}
# cert-manager.io/cluster-issuer: letsencrypt-prod
# nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
hosts:
- host: errorlab.lab # replace with your actual hostname
paths:
- path: /
pathType: Prefix
tls: []
# - secretName: errorlab-tls
# hosts:
# - errorlab.lab
# ── Resources ─────────────────────────────────────────────────────────────────
resources:
requests:
cpu: 10m
memory: 32Mi
limits:
cpu: 100m
memory: 64Mi
# ── Pod settings ──────────────────────────────────────────────────────────────
podAnnotations: {}
podLabels: {}
podSecurityContext:
runAsNonRoot: true
runAsUser: 101 # nginx user in nginx:alpine
fsGroup: 101
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: false # nginx needs to write to /var/cache/nginx
capabilities:
drop:
- ALL
# ── Probes ────────────────────────────────────────────────────────────────────
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 5
periodSeconds: 20
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 3
periodSeconds: 10
# ── Autoscaling (disabled by default for a static site) ───────────────────────
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 80
# ── Misc ──────────────────────────────────────────────────────────────────────
nameOverride: ""
fullnameOverride: ""
nodeSelector: {}
tolerations: []
affinity: {}