File tree 4 files changed +120
-0
lines changed
4 files changed +120
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Ingress
2
+ ** ingress** konusuyla ilgili dosyalara buradan erişebilirsiniz.
Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment
3
+ metadata :
4
+ name : blueapp
5
+ labels :
6
+ app : blue
7
+ spec :
8
+ replicas : 2
9
+ selector :
10
+ matchLabels :
11
+ app : blue
12
+ template :
13
+ metadata :
14
+ labels :
15
+ app : blue
16
+ spec :
17
+ containers :
18
+ - name : blueapp
19
+ image : ozgurozturknet/k8s:blue
20
+ ports :
21
+ - containerPort : 80
22
+ livenessProbe :
23
+ httpGet :
24
+ path : /healthcheck
25
+ port : 80
26
+ initialDelaySeconds : 5
27
+ periodSeconds : 5
28
+ readinessProbe :
29
+ httpGet :
30
+ path : /ready
31
+ port : 80
32
+ initialDelaySeconds : 5
33
+ periodSeconds : 3
34
+ ---
35
+ apiVersion : v1
36
+ kind : Service
37
+ metadata :
38
+ name : bluesvc
39
+ spec :
40
+ selector :
41
+ app : blue
42
+ ports :
43
+ - protocol : TCP
44
+ port : 80
45
+ targetPort : 80
46
+ ---
47
+ apiVersion : apps/v1
48
+ kind : Deployment
49
+ metadata :
50
+ name : greenapp
51
+ labels :
52
+ app : green
53
+ spec :
54
+ replicas : 2
55
+ selector :
56
+ matchLabels :
57
+ app : green
58
+ template :
59
+ metadata :
60
+ labels :
61
+ app : green
62
+ spec :
63
+ containers :
64
+ - name : greenapp
65
+ image : ozgurozturknet/k8s:green
66
+ ports :
67
+ - containerPort : 80
68
+ livenessProbe :
69
+ httpGet :
70
+ path : /healthcheck
71
+ port : 80
72
+ initialDelaySeconds : 5
73
+ periodSeconds : 5
74
+ readinessProbe :
75
+ httpGet :
76
+ path : /ready
77
+ port : 80
78
+ initialDelaySeconds : 5
79
+ periodSeconds : 3
80
+ ---
81
+ apiVersion : v1
82
+ kind : Service
83
+ metadata :
84
+ name : greensvc
85
+ spec :
86
+ selector :
87
+ app : green
88
+ ports :
89
+ - protocol : TCP
90
+ port : 80
91
+ targetPort : 80
Original file line number Diff line number Diff line change
1
+ apiVersion : networking.k8s.io/v1
2
+ kind : Ingress
3
+ metadata :
4
+ name : appingress
5
+ annotations :
6
+ nginx.ingress.kubernetes.io/rewrite-target : /$1
7
+ spec :
8
+ rules :
9
+ - host : k8sfundamentals.com
10
+ http :
11
+ paths :
12
+ - path : /blue
13
+ pathType : Prefix
14
+ backend :
15
+ service :
16
+ name : bluesvc
17
+ port :
18
+ number : 80
19
+ - path : /green
20
+ pathType : Prefix
21
+ backend :
22
+ service :
23
+ name : greensvc
24
+ port :
25
+ number : 80
Original file line number Diff line number Diff line change
1
+ # ServiceAccount
2
+ ** serviceaccount** konusuyla ilgili dosyalara buradan erişebilirsiniz.
You can’t perform that action at this time.
0 commit comments