2021-07-12 20:14:39 +00:00
|
|
|
---
|
2021-09-29 21:08:53 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Namespace
|
|
|
|
metadata:
|
|
|
|
name: ${ZED_KUBE_NAMESPACE}
|
|
|
|
---
|
2021-07-12 20:14:39 +00:00
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
2021-09-29 21:08:53 +00:00
|
|
|
namespace: ${ZED_KUBE_NAMESPACE}
|
2022-04-12 00:15:41 +00:00
|
|
|
name: collab
|
2021-07-12 20:14:39 +00:00
|
|
|
annotations:
|
|
|
|
service.beta.kubernetes.io/do-loadbalancer-tls-ports: "443"
|
2022-04-12 00:33:55 +00:00
|
|
|
service.beta.kubernetes.io/do-loadbalancer-certificate-id: "40879815-9a6b-4bbb-8207-8f2c7c0218f9"
|
2021-07-12 20:14:39 +00:00
|
|
|
spec:
|
|
|
|
type: LoadBalancer
|
|
|
|
selector:
|
2022-04-12 00:15:41 +00:00
|
|
|
app: collab
|
2021-07-12 20:14:39 +00:00
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
protocol: TCP
|
|
|
|
port: 443
|
|
|
|
targetPort: 8080
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2021-09-29 21:08:53 +00:00
|
|
|
namespace: ${ZED_KUBE_NAMESPACE}
|
2022-04-12 00:15:41 +00:00
|
|
|
name: collab
|
2021-07-12 20:14:39 +00:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2022-04-12 00:15:41 +00:00
|
|
|
app: collab
|
2021-07-12 20:14:39 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2022-04-12 00:15:41 +00:00
|
|
|
app: collab
|
2021-07-12 20:14:39 +00:00
|
|
|
spec:
|
|
|
|
containers:
|
2022-04-12 00:15:41 +00:00
|
|
|
- name: collab
|
2021-09-29 21:08:53 +00:00
|
|
|
image: "${ZED_IMAGE_ID}"
|
2021-07-12 20:14:39 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
protocol: TCP
|
|
|
|
env:
|
|
|
|
- name: HTTP_PORT
|
|
|
|
value: "8080"
|
|
|
|
- name: DATABASE_URL
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: database
|
|
|
|
key: url
|
|
|
|
- name: SESSION_SECRET
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: session
|
|
|
|
key: secret
|
|
|
|
- name: GITHUB_APP_ID
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: github
|
|
|
|
key: appId
|
|
|
|
- name: GITHUB_CLIENT_ID
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: github
|
|
|
|
key: clientId
|
|
|
|
- name: GITHUB_CLIENT_SECRET
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: github
|
|
|
|
key: clientSecret
|
|
|
|
- name: GITHUB_PRIVATE_KEY
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: github
|
|
|
|
key: privateKey
|
2021-12-24 09:02:24 +00:00
|
|
|
- name: API_TOKEN
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: api
|
|
|
|
key: token
|
2022-04-08 16:08:52 +00:00
|
|
|
- name: LOG_JSON
|
|
|
|
value: "1"
|
|
|
|
- name: RUST_LOG
|
|
|
|
value: "trace"
|
2022-04-28 14:48:57 +00:00
|
|
|
- name: TRACE_LEVEL
|
|
|
|
value: ${TRACE_LEVEL}
|
|
|
|
- name: HONEYCOMB_DATASET
|
|
|
|
value: "collab"
|
|
|
|
- name: HONEYCOMB_API_KEY
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: honeycomb
|
|
|
|
key: apiKey
|
2021-09-29 21:53:20 +00:00
|
|
|
securityContext:
|
|
|
|
capabilities:
|
|
|
|
# FIXME - Switch to the more restrictive `PERFMON` capability.
|
|
|
|
# This capability isn't yet available in a stable version of Debian.
|
|
|
|
add: ["SYS_ADMIN"]
|