# Routes to http://service-* on port 80; needs only JWT_TOKEN and the mounted appkeys.json (docs/deployment.md 6, 7). apiVersion: apps/v1 kind: Deployment metadata: name: api-gateway spec: replicas: 1 selector: matchLabels: {app: api-gateway} template: metadata: labels: {app: api-gateway} spec: imagePullSecrets: - {name: co-lite-registry} containers: - name: api-gateway image: gitea.containerverse.dev/solvway/co-lite-api-gateway ports: - {name: http, containerPort: 80} env: - name: JWT_TOKEN valueFrom: {secretKeyRef: {name: co-lite-shared, key: JWT_TOKEN}} - name: JAVA_OPTS valueFrom: {configMapKeyRef: {name: co-lite-settings, key: JAVA_OPTS}} startupProbe: httpGet: {path: /actuator/health/liveness, port: http} periodSeconds: 10 failureThreshold: 30 livenessProbe: httpGet: {path: /actuator/health/liveness, port: http} periodSeconds: 20 readinessProbe: httpGet: {path: /actuator/health/readiness, port: http} periodSeconds: 10 resources: requests: {cpu: 100m, memory: 512Mi} limits: {memory: 1Gi} volumeMounts: - {name: appkeys, mountPath: /deployments/appkeys, readOnly: true} volumes: - {name: appkeys, secret: {secretName: co-lite-gateway-appkeys}} --- apiVersion: v1 kind: Service metadata: name: api-gateway spec: selector: {app: api-gateway} ports: - {name: http, port: 80, targetPort: http}