...
1---
2apiVersion: getambassador.io/v2
3kind: Mapping
4metadata:
5 name: quote-backend
6spec:
7 prefix: /backend/
8 service: quote
9---
10apiVersion: v1
11kind: Service
12metadata:
13 name: quote
14spec:
15 ports:
16 - name: http
17 port: 80
18 targetPort: 8000
19 - name: https
20 port: 443
21 targetPort: 8000
22 selector:
23 app: quote
24---
25apiVersion: apps/v1
26kind: Deployment
27metadata:
28 name: quote
29spec:
30 replicas: 1
31 selector:
32 matchLabels:
33 app: quote
34 strategy:
35 type: RollingUpdate
36 template:
37 metadata:
38 labels:
39 app: quote
40 spec:
41 containers:
42 - name: backend
43 image: docker.io/datawire/quote:$quoteVersion$
44 ports:
45 - name: http
46 containerPort: 8000
47 env:
48 - name: PORT
49 value: "8000"
50 resources:
51 limits:
52 cpu: "0.1"
53 memory: 100Mi
View as plain text