Some checks failed
validate / lint (push) Has been cancelled
The public domain is unreachable while moving, and the cluster had no Traefik route to Gitea at all (public or internal), leaving every Argo CD Application stuck in Unknown sync. Add a gitea.home.arpa Certificate/IngressRoute, repoint Argo CD's repoURL, Gitea's own DOMAIN/ROOT_URL/SSH_DOMAIN, the container registry references, the Gitea Actions runner, and the watch-party clone URL at the internal hostname. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
87 lines
2.3 KiB
YAML
87 lines
2.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: alexa-bridge
|
|
namespace: home-services
|
|
labels:
|
|
app: alexa-bridge
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: alexa-bridge
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: alexa-bridge
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: gitea-registry-secret
|
|
containers:
|
|
- name: alexa-bridge
|
|
image: gitea.home.arpa/nik/alexa-bridge:latest
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
env:
|
|
- name: HTTP_PORT
|
|
value: "8080"
|
|
# TODO: replace with the real skill ID once the Alexa Custom
|
|
# Skill is registered in the developer console (see
|
|
# alexa-bridge/plan.md's "Decisions on open questions" #4/#2).
|
|
- name: ALEXA_SKILL_ID
|
|
value: "amzn1.ask.skill.REPLACE_ME"
|
|
- name: HA_GATEWAY_ADDR
|
|
value: "ha-gateway.home-services.svc.cluster.local:50051"
|
|
- name: HA_GATEWAY_SERVER_NAME
|
|
value: "ha-gateway.home-services.svc.cluster.local"
|
|
- name: ENTITY_REFRESH_INTERVAL
|
|
value: "5m"
|
|
- name: OTEL_ENDPOINT
|
|
value: "otel-collector-opentelemetry-collector.monitoring.svc.cluster.local:4317"
|
|
- name: TLS_DIR
|
|
value: /tls
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8080
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
limits:
|
|
cpu: 200m
|
|
memory: 128Mi
|
|
volumeMounts:
|
|
- name: tls
|
|
mountPath: /tls
|
|
readOnly: true
|
|
volumes:
|
|
- name: tls
|
|
secret:
|
|
secretName: alexa-bridge-tls
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: alexa-bridge
|
|
namespace: home-services
|
|
labels:
|
|
app: alexa-bridge
|
|
spec:
|
|
selector:
|
|
app: alexa-bridge
|
|
ports:
|
|
- name: http
|
|
port: 8080
|
|
targetPort: 8080
|
|
type: ClusterIP
|