67 lines
1.2 KiB
YAML
67 lines
1.2 KiB
YAML
# Default values for ipify
|
|
|
|
# Backend configuration
|
|
backend:
|
|
name: ipify-backend
|
|
replicaCount: 1
|
|
image:
|
|
repository: ipify-backend
|
|
tag: latest
|
|
pullPolicy: IfNotPresent
|
|
service:
|
|
type: ClusterIP
|
|
port: 8000
|
|
targetPort: 8000
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
requests:
|
|
cpu: 250m
|
|
memory: 256Mi
|
|
|
|
# Frontend configuration
|
|
frontend:
|
|
name: ipify-frontend
|
|
replicaCount: 1
|
|
image:
|
|
repository: ipify-frontend
|
|
tag: latest
|
|
pullPolicy: IfNotPresent
|
|
service:
|
|
type: ClusterIP
|
|
port: 80
|
|
targetPort: 80
|
|
resources:
|
|
limits:
|
|
cpu: 200m
|
|
memory: 256Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
|
|
# Ingress configuration
|
|
ingress:
|
|
enabled: true
|
|
className: nginx
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
hosts:
|
|
- host: ipify.example.com
|
|
paths:
|
|
- path: /api
|
|
pathType: Prefix
|
|
backend: backend
|
|
- path: /
|
|
pathType: Prefix
|
|
backend: frontend
|
|
tls:
|
|
- secretName: ipify-tls
|
|
hosts:
|
|
- ipify.example.com
|
|
|
|
# Environment variables
|
|
env:
|
|
# Backend URL for frontend to use
|
|
backendUrl: "https://ipify.example.com/api"
|