forked from vmwarecloudadvocacy/acme_fitness_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
point-of-sales-total.yaml
53 lines (53 loc) · 1004 Bytes
/
point-of-sales-total.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
apiVersion: v1
kind: Service
metadata:
name: pos
labels:
app: acmefit
service: pos
spec:
ports:
- name: http-pos
protocol: TCP
port: 7777
targetPort: 7777
nodePort: 30431
selector:
app: acmefit
service: pos
type: NodePort
---
apiVersion: apps/v1 # for versions before 1.8.0 use apps/v1beta1
kind: Deployment
metadata:
name: pos
labels:
app: acmefit
service: pos
spec:
selector:
matchLabels:
app: acmefit
service: pos
strategy:
type: Recreate
replicas: 1
template:
metadata:
labels:
app: acmefit
service: pos
spec:
containers:
- image: gcr.io/vmwarecloudadvocacy/acmeshop-pos:v0.1.0-beta
name: pos
env:
- name: HTTP_PORT
value: '7777'
- name: DATASTORE
value: 'REMOTE'
- name: FRONTEND_HOST
value: 'frontend.default.svc.cluster.local'
ports:
- containerPort: 7777
name: pos