Dashboard-Automatizase/k8s/deployment.yaml
Luis 1391fe6216 feat: enhance Google Calendar integration and update Dockerfile for environment variables
- Updated Dockerfile to include hardcoded environment variables for Next.js build.
- Enhanced Google Calendar API integration by extracting user email from id_token and adding scopes for OpenID and email access.
- Modified credential management to delete existing credentials before creating new ones in n8n.
- Updated dashboard to display connected Google Calendar email and credential details.

Story: 4.2 - Melhorar integração com Google Calendar e atualizar Dockerfile

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-10-12 21:16:21 -03:00

72 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: portal
namespace: automatizase
labels:
app: portal
environment: production
spec:
replicas: 1 # Alta disponibilidade
selector:
matchLabels:
app: portal
template:
metadata:
labels:
app: portal
spec:
# Secret para pull de imagem do registry privado
imagePullSecrets:
- name: gitea-registry-secret
containers:
- name: nextjs
image: git.automatizase.com.br/luis.erlacher/dashboard-automatizase:latest
imagePullPolicy: Always
ports:
- containerPort: 3100
name: http
protocol: TCP
# Carregar variáveis de ambiente do Secret
envFrom:
- secretRef:
name: portal-secrets
# Resource limits e requests
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
# Liveness probe - verifica se container está vivo
livenessProbe:
httpGet:
path: /api/health
port: 3100
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
# Readiness probe - verifica se container está pronto para receber tráfego
readinessProbe:
httpGet:
path: /api/health
port: 3100
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 3
successThreshold: 1
failureThreshold: 3
# Restart policy
restartPolicy: Always