-
Notifications
You must be signed in to change notification settings - Fork 2
/
k8s.yaml
90 lines (90 loc) · 2.29 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
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/hello-world:latest
env:
- name: PG_USER
valueFrom:
secretKeyRef:
key: postgres.user
name: hasura-secrets
- name: PG_PASSWORD
valueFrom:
secretKeyRef:
key: postgres.password
name: hasura-secrets
- name: REALM_USER
valueFrom:
secretKeyRef:
key: realm.user
name: hasura-secrets
- name: REALM_PASSWORD
valueFrom:
secretKeyRef:
key: realm.password
name: hasura-secrets
- name: REALM_URL
valueFrom:
secretKeyRef:
key: realm.url
name: hasura-secrets
- name: REALM_AUTH_URL
valueFrom:
secretKeyRef:
key: realm.auth.url
name: hasura-secrets
imagePullPolicy: IfNotPresent
name: '{{ microservice.name }}'
ports:
- containerPort: 8080
protocol: TCP
volumeMounts:
- mountPath: /src/realm-object-server
name: ros-data
resources: {}
volumes:
- hostPath:
path: /data/ros
name: ros-data
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: {}