f722757417
Validate Flux manifests / kustomize-build (pull_request) Failing after 25s
Create flux/vin-decoder/ with namespace, HelmRelease, ExternalSecret, and kustomization files mirroring the existing API Flux manifest structure. Register vin-decoder in the root flux/kustomization.yaml so Flux picks it up. Image automation is handled by existing flux/image-automation/ manifests (ImageRepository and ImagePolicy for vin-decoder already present). kustomize build flux/ passes with no errors. Closes leeworks-agents/api-company#140
102 lines
2.9 KiB
YAML
102 lines
2.9 KiB
YAML
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: vin-decoder
|
|
namespace: vin-decoder
|
|
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: vin-decoder
|
|
namespace: vin-decoder
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: vin-decoder
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: vin-decoder
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: gitea-registry
|
|
containers:
|
|
- name: vin-decoder
|
|
image: registry.leeworks.dev/vin-decoder/api:latest # {"$imagepolicy": "flux-system:vin-decoder"}
|
|
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: /v1/health
|
|
port: 3000
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /v1/health
|
|
port: 3000
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
- apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: vin-decoder
|
|
namespace: vin-decoder
|
|
spec:
|
|
selector:
|
|
app: vin-decoder
|
|
ports:
|
|
- port: 80
|
|
targetPort: 3000
|
|
- apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: vin-decoder
|
|
namespace: vin-decoder
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
spec:
|
|
ingressClassName: nginx
|
|
tls:
|
|
- hosts:
|
|
- vin.leeworks.dev
|
|
secretName: vin-decoder-tls
|
|
rules:
|
|
- host: vin.leeworks.dev
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: vin-decoder
|
|
port:
|
|
number: 80
|