Skip to content

Commit 4476587

Browse files
authored
Merge pull request #189 from canonical/add-updates-service
Added updates service
2 parents 7ac2a2a + e961d87 commit 4476587

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

konf/raw-site-updates.yaml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
kind: Service
3+
apiVersion: v1
4+
metadata:
5+
name: ubuntu-com-security-api-updates
6+
spec:
7+
selector:
8+
app: ubuntu-com-security-api-updates
9+
ports:
10+
- name: http
11+
protocol: TCP
12+
port: 80
13+
targetPort: http
14+
15+
---
16+
kind: Deployment
17+
apiVersion: apps/v1
18+
metadata:
19+
name: ubuntu-com-security-api-updates
20+
spec:
21+
replicas: 2
22+
selector:
23+
matchLabels:
24+
app: ubuntu-com-security-api-updates
25+
template:
26+
metadata:
27+
labels:
28+
app: ubuntu-com-security-api-updates
29+
spec:
30+
affinity:
31+
podAntiAffinity:
32+
requiredDuringSchedulingIgnoredDuringExecution:
33+
- labelSelector:
34+
matchExpressions:
35+
- key: app
36+
operator: In
37+
values:
38+
- ubuntu-com-security-api-updates
39+
topologyKey: "kubernetes.io/hostname"
40+
containers:
41+
- name: ubuntu-com-security-api-updates
42+
image: prod-comms.ps5.docker-registry.canonical.com/ubuntu-com-security-api:1734105849-7ac2a2a
43+
44+
ports:
45+
- name: http
46+
containerPort: 80
47+
48+
env:
49+
- name: TALISKER_NETWORKS
50+
value: 10.0.0.0/8
51+
52+
- name: SECRET_KEY
53+
valueFrom:
54+
secretKeyRef:
55+
key: ubuntu-com-security-api
56+
name: secret-keys
57+
58+
- name: HTTP_PROXY
59+
value: "http://squid.internal:3128/"
60+
61+
- name: HTTPS_PROXY
62+
value: "http://squid.internal:3128/"
63+
64+
- name: NO_PROXY
65+
value: ".internal,ubuntu.com,.ubuntu.com,snapcraft.io,.snapcraft.io,jujucharms.com,.jujucharms.com,maas.io,.maas.io,conjure-up.io,.conjure-up.io,netplan.io,.netplan.io,canonical.com,.canonical.com,launchpad.net,.launchpad.net,linuxcontainers.org,.linuxcontainers.org,cloud-init.io,.cloud-init.io,vanillaframework.io,.vanillaframework.io,anbox-cloud.io,.anbox-cloud.io,juju.is,.juju.is,dqlite.io,.dqlite.io,charmhub.io,.charmhub.io"
66+
67+
- name: DATABASE_URL
68+
valueFrom:
69+
secretKeyRef:
70+
key: database_url
71+
name: usn-db-url
72+
73+
- name: SENTRY_DSN
74+
value: "https://[email protected]//48"
75+
76+
readinessProbe:
77+
httpGet:
78+
path: /_status/check
79+
port: 80
80+
periodSeconds: 5
81+
timeoutSeconds: 3
82+
83+
resources:
84+
limits:
85+
memory: 1G

0 commit comments

Comments
 (0)