-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdolt-workbench.yaml
More file actions
86 lines (83 loc) · 1.66 KB
/
dolt-workbench.yaml
File metadata and controls
86 lines (83 loc) · 1.66 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
apiVersion: apps/v1
kind: Deployment
metadata:
name: dolt-workbench
namespace: dolt-cluster-example
spec:
replicas: 1
selector:
matchLabels:
app: dolt-workbench
template:
metadata:
labels:
app: dolt-workbench
spec:
nodeSelector:
kubernetes.io/arch: arm64
containers:
- name: dolt-workbench
image: priley86/dolt-workbench:arm64
env:
- name: GRAPHQLAPI_URL
value: "http://api.dolt.test/graphql"
ports:
- containerPort: 9002
- containerPort: 3000
---
apiVersion: v1
kind: Service
metadata:
name: dolt-workbench
namespace: dolt-cluster-example
spec:
selector:
app: dolt-workbench
ports:
- name: graphql
port: 9002
targetPort: 9002
- name: web
port: 3000
targetPort: 3000
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dolt-workbench-app-ingress
namespace: dolt-cluster-example
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web
spec:
rules:
- host: app.dolt.test
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: dolt-workbench
port:
name: web
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dolt-workbench-api-ingress
namespace: dolt-cluster-example
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web
spec:
rules:
- host: api.dolt.test
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: dolt-workbench
port:
name: graphql