2018-06-22 05:34:46 +00:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: currencyservice
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: currencyservice
|
|
|
|
spec:
|
2018-06-29 01:34:48 +00:00
|
|
|
terminationGracePeriodSeconds: 5
|
2018-06-22 05:34:46 +00:00
|
|
|
containers:
|
|
|
|
- name: server
|
|
|
|
image: currencyservice
|
|
|
|
ports:
|
2018-06-29 20:45:03 +00:00
|
|
|
- containerPort: 7000
|
2018-06-29 00:55:51 +00:00
|
|
|
readinessProbe:
|
|
|
|
periodSeconds: 5
|
|
|
|
tcpSocket:
|
2018-06-29 20:45:03 +00:00
|
|
|
port: 7000
|
2018-06-29 00:55:51 +00:00
|
|
|
livenessProbe:
|
|
|
|
periodSeconds: 5
|
|
|
|
tcpSocket:
|
2018-06-29 20:45:03 +00:00
|
|
|
port: 7000
|
2018-06-22 16:35:30 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 64Mi
|
|
|
|
limits:
|
|
|
|
cpu: 200m
|
|
|
|
memory: 128Mi
|
2018-06-22 05:34:46 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: currencyservice
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
selector:
|
|
|
|
app: currencyservice
|
|
|
|
ports:
|
|
|
|
- port: 7000
|
2018-06-29 20:45:03 +00:00
|
|
|
targetPort: 7000
|