forked from killbilling/recurly-java-library
/
angalia_api_billing.yaml
62 lines (61 loc) · 1.78 KB
/
angalia_api_billing.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: angalia-api-billing
namespace: {{ NAMESPACE }}
labels:
kubernetes.io/cluster-service: "true"
name: angalia-api-billing
app: angalia-api-billing
spec:
replicas: {{ ANGALIA_API_BILLING_REPLICAS }}
template:
metadata:
labels:
name: angalia-api-billing
app: angalia-api-billing
kubernetes.io/cluster-service: "true"
spec:
containers:
- name: angalia-api-billing
image: registry.barklyprotects.com/cylent/angalia-api-billing-service:{{ ANGALIA_API_TAG }}
imagePullPolicy: Always
ports:
- containerPort: 9079
name: admin
protocol: TCP
volumeMounts:
- mountPath: /logs
name: logs
env:
- name: JAVA_OPTIONS
value: -Ddw.etcdConfiguration.uri=http://etcd.{{ NAMESPACE }}.svc.cluster.local:4001 -Ddw.database.user={{ POSTGRES_USER }} -Ddw.database.password={{ POSTGRES_PASSWORD }}
livenessProbe:
httpGet:
path: /healthcheck
port: 9079
initialDelaySeconds: 30
timeoutSeconds: 2
readinessProbe:
httpGet:
path: /healthcheck
port: 9079
initialDelaySeconds: 30
timeoutSeconds: 2
- name: logs-stdout
imagePullPolicy: Always
image: registry.barklyprotects.com/ops/logtail
volumeMounts:
- mountPath: /logs
name: logs
args: [ "/logs/stdout.log" ]
- name: logs-stderr
imagePullPolicy: Always
image: registry.barklyprotects.com/ops/logtail
volumeMounts:
- mountPath: /logs
name: logs
args: [ "/logs/stderr.log" ]
volumes:
- name: logs
emptyDir: {}