-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgh-latest-commits-demo.yaml
56 lines (56 loc) · 1.12 KB
/
gh-latest-commits-demo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
apiVersion: apps/v1
kind: Deployment
metadata:
name: wasm-slight
spec:
replicas: 1
selector:
matchLabels:
app: wasm-slight
template:
metadata:
labels:
app: wasm-slight
spec:
runtimeClassName: wasmtime-slight
containers:
- name: gh-latest-commits-demo
image: REGISTRY_URL/gh-latest-commits-demo:latest
env:
- name: DB_URL
valueFrom:
secretKeyRef:
name: gh-latest-commits-demo-database
key: connection-url
command: ["/"]
---
apiVersion: v1
kind: Service
metadata:
name: wasm-slight
spec:
ports:
- protocol: TCP
port: 80
targetPort: 3000
selector:
app: wasm-slight
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: wasm-slight
annotations:
ingress.kubernetes.io/ssl-redirect: "false"
kubernetes.io/ingress.class: traefik
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: wasm-slight
port:
number: 80