-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
75 lines (75 loc) · 1.49 KB
/
deployment.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
apiVersion: v1
kind: Namespace
metadata:
name: kuma-demo4
namespace: kuma-demo4
annotations:
kuma.io/sidecar-injection: enabled
---
apiVersion: v1
kind: Service
metadata:
labels:
app: spring-deployment-new
name: spring-deployment-new-service
namespace: kuma-demo4
annotations:
80.service.kuma.io/protocol: "http"
ingress.kubernetes.io/service-upstream: "true"
spec:
ports:
- port: 8085
protocol: TCP
targetPort: 8085
selector:
app: spring-deployment-new
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: spring-deployment-new
name: spring-deployment-new-deployment
namespace: kuma-demo4
spec:
replicas: 1
selector:
matchLabels:
app: spring-deployment-new
version: v0
strategy: {}
template:
metadata:
labels:
app: spring-deployment-new
version: v0
spec:
containers:
- image: jaikratsingh/spring-boot-k8s:v7
name: spring-boot-k8s
#ports: #for AWS
# - containerPort: 8080 #for aws
resources: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: spring-deployment-new-deployment-v1
namespace: kuma-demo4
spec:
replicas: 0
selector:
matchLabels:
app: spring-deployment-new
version: v1
strategy: {}
template:
metadata:
labels:
app: spring-deployment-new
version: v1
spec:
containers:
- image: jaikratsingh/spring-boot-k8s:v8
name: spring-boot-k8s
resources: {}