This reverts commit fd13b8a. The registry-host migration broke image pulls for home-services/portfolio (internal CA not trusted by containerd) and has left them Degraded for 11 days; reverting back to gitea.nik4nao.com pending a decision on how to proceed. Not pushed yet. 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.nik4nao.com/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
|