-
Notifications
You must be signed in to change notification settings - Fork 45
/
k8s.yaml
71 lines (71 loc) · 1.78 KB
/
k8s.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
apiVersion: v1
items:
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: '{{ microservice.name }}'
hasuraService: custom
name: '{{ microservice.name }}'
namespace: '{{ cluster.metadata.namespaces.user }}'
spec:
replicas: 1
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: '{{ microservice.name }}'
spec:
containers:
- image: hasura/skor:v0.1.1
imagePullPolicy: IfNotPresent
name: '{{ microservice.name }}'
ports:
- containerPort: 8080
protocol: TCP
env:
- name: PGHOST
value: "postgres.hasura"
- name: PGPORT
value: "5432"
- name: PGUSER
valueFrom:
secretKeyRef:
name: hasura-secrets
key: postgres.user
- name: PGPASS
valueFrom:
secretKeyRef:
name: hasura-secrets
key: postgres.password
- name: DBNAME
value: "hasuradb"
- name: WEBHOOKURL
value: "http://pgwebhook.abash85.hasura-app.io" # replace with your webhook URL
resources: {}
securityContext: {}
terminationGracePeriodSeconds: 0
status: {}
- apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: '{{ microservice.name }}'
hasuraService: custom
name: '{{ microservice.name }}'
namespace: '{{ cluster.metadata.namespaces.user }}'
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: '{{ microservice.name }}'
type: ClusterIP
status:
loadBalancer: {}
kind: List
metadata: {}