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
|
2022-06-10 20:35:35 +00:00
|
|
|
|
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
|
2022-06-10 21:32:36 +00:00
|
|
|
annotations:
|
|
|
|
ad.datadoghq.com/collab.check_names: |
|
|
|
|
["openmetrics"]
|
|
|
|
ad.datadoghq.com/collab.init_configs: |
|
|
|
|
[{}]
|
|
|
|
ad.datadoghq.com/collab.instances: |
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"openmetrics_endpoint": "http://%%host%%:%%port%%/metrics",
|
|
|
|
"namespace": "collab_${ZED_KUBE_NAMESPACE}",
|
|
|
|
"metrics": [".*"]
|
|
|
|
}
|
|
|
|
]
|
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}"
|
2022-10-21 20:15:34 +00:00
|
|
|
args:
|
|
|
|
- serve
|
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
|
2021-12-24 09:02:24 +00:00
|
|
|
- name: API_TOKEN
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: api
|
|
|
|
key: token
|
2022-05-23 21:49:51 +00:00
|
|
|
- name: INVITE_LINK_PREFIX
|
|
|
|
value: ${INVITE_LINK_PREFIX}
|
2022-04-08 16:08:52 +00:00
|
|
|
- name: RUST_LOG
|
2022-04-28 15:10:09 +00:00
|
|
|
value: ${RUST_LOG}
|
2022-05-17 15:11:43 +00:00
|
|
|
- name: LOG_JSON
|
|
|
|
value: "true"
|
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"]
|