102 lines
2.9 KiB
YAML
102 lines
2.9 KiB
YAML
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: zip-enrichment
|
|
namespace: zip-enrichment
|
|
spec:
|
|
interval: 10m
|
|
chart:
|
|
spec:
|
|
chart: raw
|
|
version: ">=0.2.0"
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bedag
|
|
namespace: flux-system
|
|
interval: 60m
|
|
values:
|
|
resources:
|
|
- apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: zip-enrichment
|
|
namespace: zip-enrichment
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: zip-enrichment
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: zip-enrichment
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: gitea-registry
|
|
containers:
|
|
- name: zip-enrichment
|
|
image: registry.leeworks.dev/zip-enrichment/server:latest # {"$imagepolicy": "flux-system:zip-enrichment"}
|
|
ports:
|
|
- containerPort: 3000
|
|
env:
|
|
- name: RAPIDAPI_PROXY_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: rapidapi-proxy-secret
|
|
key: X-RapidAPI-Proxy-Secret
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 256Mi
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 3000
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 3000
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
- apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: zip-enrichment
|
|
namespace: zip-enrichment
|
|
spec:
|
|
selector:
|
|
app: zip-enrichment
|
|
ports:
|
|
- port: 80
|
|
targetPort: 3000
|
|
- apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: zip-enrichment
|
|
namespace: zip-enrichment
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
spec:
|
|
ingressClassName: nginx
|
|
tls:
|
|
- hosts:
|
|
- zip.leeworks.dev
|
|
secretName: zip-enrichment-tls
|
|
rules:
|
|
- host: zip.leeworks.dev
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: zip-enrichment
|
|
port:
|
|
number: 80
|