2022-09-17 01:06:27 +01:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: api-by-becki
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: api-by-becki
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: api-by-becki
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: api-by-becki
|
|
|
|
image: icr.gmem.ca/api-by-becki:latest
|
2022-09-17 03:40:29 +01:00
|
|
|
env:
|
|
|
|
- name: API_COUCH_USER
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: art-by-becki
|
|
|
|
key: couch_username
|
|
|
|
optional: false
|
|
|
|
- name: API_COUCH_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: art-by-becki
|
|
|
|
key: couch_password
|
|
|
|
optional: false
|
2022-09-18 05:06:10 +01:00
|
|
|
- name: BECKEY
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: art-by-becki
|
|
|
|
key: beckey
|
|
|
|
optional: false
|
2022-09-17 03:40:29 +01:00
|
|
|
- name: API_COUCH_URL
|
|
|
|
value: http://couchdb-svc-couchdb:5984
|
|
|
|
- name: API_COUCH_DATABASE
|
|
|
|
value: art-by-becki
|
2022-09-17 01:06:27 +01:00
|
|
|
resources:
|
2022-09-17 17:30:57 +01:00
|
|
|
requests:
|
|
|
|
cpu: "1m"
|
2022-09-17 01:06:27 +01:00
|
|
|
limits:
|
|
|
|
memory: "128Mi"
|
|
|
|
cpu: "500m"
|
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: api-by-becki
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: api-by-becki
|
|
|
|
ports:
|
|
|
|
- port: 8080
|
|
|
|
targetPort: 8080
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: art-by-becki
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/issuer: "letsencrypt-prod"
|
|
|
|
namespace: default
|
|
|
|
labels:
|
|
|
|
name: art-by-becki
|
|
|
|
spec:
|
2022-09-17 03:40:29 +01:00
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- abb.gmem.ca
|
|
|
|
secretName: abb-tls
|
2022-09-17 01:06:27 +01:00
|
|
|
rules:
|
|
|
|
- host: abb.gmem.ca
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- pathType: Prefix
|
|
|
|
path: "/"
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: api-by-becki
|
|
|
|
port:
|
|
|
|
number: 8080
|