forked from devsonket/devsonket.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkubernetes.json
More file actions
147 lines (147 loc) · 6.16 KB
/
Copy pathkubernetes.json
File metadata and controls
147 lines (147 loc) · 6.16 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"id": "kubernetes-cheat-sheet",
"title": "কুবারনেট",
"slug": "kubernetes-cheat-sheet",
"description": "কুবারনেট চিটশিট",
"colorPref": "#000",
"contents": [
{
"title": "কুবারনেট রিসউরস দেখা ও খোঁজা",
"items": [
{
"definition": "সার্ভিস লিস্ট",
"code": "kubectl get services"
},
{
"definition": "পোড লিস্ট",
"code": "kubectl get pods"
},
{
"definition": "পোড ডিটেইল লিস্ট",
"code": "kubectl get pods -o wide"
},
{
"definition": "পোড কনফিগ",
"code": "kubectl get pod my-pod -o yaml"
},
{
"definition": "পোড ভলিউম",
"code": "kubectl get pv --sort-by=.spec.capacity.storage"
},
{
"definition": "রানিং পোড",
"code": "kubectl get pods --field-selector=status.phase=Running"
}
]
},
{
"title": "কুবারনেট রসদ পরিবর্তন",
"items": [
{
"definition": "পোড লেবেলিং",
"code": "kubectl label pods my-pod new-label=awesome"
},
{
"definition": "নতুন সনক্রন দেওয়া",
"code": "kubectl set image deployment/frontend www=image:v2"
},
{
"definition": "সনক্রন ইতিহাস",
"code": "kubectl rollout history deployment/frontend"
},
{
"definition": "পূর্বের সনক্রন ফেরত",
"code": "kubectl rollout undo deployment/frontend"
},
{
"definition": "পূর্বের সনক্রন ফেরত",
"code": "kubectl rollout undo deployment/frontend"
}
]
},
{
"title": "কুবারনেট রসদ পরিবর্তন",
"items": [
{
"definition": "পোড লেবেলিং",
"code": "kubectl label pods my-pod new-label=awesome"
},
{
"definition": "নতুন সনক্রন দেওয়া",
"code": "kubectl set image deployment/frontend www=image:v2"
},
{
"definition": "সনক্রন ইতিহাস",
"code": "kubectl rollout history deployment/frontend"
},
{
"definition": "পূর্বের সনক্রন ফেরত",
"code": "kubectl rollout undo deployment/frontend"
},
{
"definition": "নতুন সনক্রনের অবস্থা",
"code": "kubectl rollout status -w deployment/frontend"
},
{
"definition": "পছন্দের এডিটর ব্যাবহার",
"code": "KUBE_EDITOR=\"nano\" kubectl edit svc/docker-registry"
}
]
},
{
"title": "কুবারনেট রসদ বাড়ানো",
"items": [
{
"definition": "অটো ডেপলয় বাড়ানো",
"code": "kubectl autoscale deployment foo --min=2 --max=10"
},
{
"definition": "রসদ কপি বাড়ানো",
"code": "kubectl scale --replicas=3 rs/foo"
},
{
"definition": "রসদ কপি বাড়ানো ফাইল থেকে",
"code": "kubectl scale --replicas=3 -f foo.yaml"
},
{
"definition": "অনেক কপি কন্ট্রোলার বাড়ানো",
"code": "kubectl scale --replicas=5 rc/foo rc/bar rc/baz"
},
{
"definition": "অনেক কপি কন্ট্রোলার বাড়ানো",
"code": "kubectl scale --replicas=5 rc/foo rc/bar rc/baz"
}
]
},
{
"title": "কুবারনেট লগ দেখা ও কমান্ড দেওয়া",
"items": [
{
"definition": "একটি পডের লগ",
"code": "kubectl logs my-pod"
},
{
"definition": "পোড এ কমান্ড রান করা",
"code": "kubectl exec my-pod -- ls /"
},
{
"definition": "পোড এ কমান্ড ব্যাস করা",
"code": "kubectl exec --stdin --tty my-pod -- /bin/sh"
}
]
},
{
"title": "কুবারনেট পোর্ট",
"items": [
{
"definition": "পডের সাথে বাইন্ড \\( ভিতর ৬০০০ বাইরে ৫০০০\\)",
"code": "kubectl port-forward my-pod 5000:6000"
},
{
"definition": "সার্ভিস এর সাথে বাইন্ড",
"code": "kubectl port-forward svc/my-service 5000 "
}
]
}
]
}