-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bash_history
More file actions
674 lines (662 loc) · 13.7 KB
/
.bash_history
File metadata and controls
674 lines (662 loc) · 13.7 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
microk8s enable dns storage helm3
echo "alias kubectl='microk8s kubectl '" >> .bashrc
echo "alias helm='microk8s helm3 '" >> .bashrc
source .bashrc
reboot
sudo reboot
sudo snap install microk8s --classic --channel=1.29
sudo usermod -a -G microk8s $USER
sudo chown -f -R $USER ~/.kube
su - $USER
echo $USER
sudo microk8s status --wait-ready
sudo microk8s kubectl get nodes
alias kubectl='sudo microk8s kubectl'
kubectl get all
sudo snap install microk8s --classic --channel=1.22
sudo usermod -a -G microk8s $USER
sudo chown -f -R $USER ~/.kube
newgrp microk8s
microk8s enable dns storage helm3
echo "alias kubectl='microk8s kubectl '" >> .bashrc
echo "alias helm='microk8s helm3 '" >> .bashrc
source .bashrc
sudo snap install microk8s --classic --channel=1.22
sudo usermod -a -G microk8s $USER
sudo chown -f -R $USER ~/.kube
newgrp microk8s
kubectl get po
kubectl create deploy mongo --image mongo
kubectl get po
kubectl expose deploy mongo --name mongo-svc --port 27017 --type NodePort --target-port 27017
kubectl get po
kubectl get svc
kubectl create deploy backend --image nehasharma372/my_backend_memories --dry-run=client -o yaml
kubectl create deploy backend --image nehasharma372/my_backend_memories --dry-run=client -o yaml > backend.yaml
vim backend.yaml
kubectl apply -f backend.yaml
kubectl get po
kubectl expose deploy backend --name backend-svc --target-port 5000 --port 80
kubectl get svc
kubectl edit backend.yaml
kubectl edit backend-svc
kubectl get svc backend-svc -o yaml
kubectl edit svc backend-svc -o yaml
kubectl apply -f svc backend-svc -o yaml
kubectl get svc
kubectl create deploy frontend --image nehasharma372/my_frontend_app --target-port 3000 --type NodePort
kubectl create deploy frontend --image nehasharma372/my_frontend_app --port 80 --target-port 3000 --type NodePort --dry-run=client -o yaml
kubectl create deploy frontend --image nehasharma372/my_frontend_app --port 80 --targetPort 3000 --type NodePort --dry-run=client -o yaml
kubectl create deploy frontend --image nehasharma372/my_frontend_app --dry-run=client -o yaml
kubectl create deploy frontend --image nehasharma372/my_frontend_app --dry-run=client -o yaml> frontend.yaml
vim frontend.yaml
kubectl apply -f frontend.yaml
kubectl get po
kubectl expose deploy frontend --name frontend-svc --target-port 3000 --type NodePort --port 80
kubectl get po
kubectl get svc
kubectl edit svc frontend-svc -o yaml
kubectl get svc
kubectl get po
kubectl create ingress backend-ing --class public --rule="/neha=backend-svc:5000" --dry-run=client -o yaml
kubectl create ingress backend-ing --class public --rule="/neha=backend-svc:5000" --dry-run=client -o yaml > ing.yaml
kubectl get ingress
kubectl apply -f backendingress.yaml
kubectl apply ingress -f backendingress.yaml
vim backendingress.yaml
kubectl apply -f backendingress.yaml
vim backendingress.yaml
vim ing.yaml
kubectl apply -f ing.yaml
ifconfig
ifconfig.me
sudo apt install net-tools
curl ifcongif.me
curl ifconfig.me
kubectl get po
kubectl get svc
kubectl get ing.yaml
vim ing.yaml
microk8s enable ingress
vim ing.yaml
kubectl ns
kubectl get ns
vim ing.yaml
curl ifconfig.me
kubectl get svc
kubectl get po
kubectl exec -it backend-594cf68d8d-qrl5b -- bin/bash
kubectl exec -it backend-594cf68d8d-qrl5b -- bin/sh
kubectl logs backend-594cf68d8d-qrl5b
kubectl get svc
vim backend.yaml
curl ifconfig.me
curl http://65.0.12.177:30168
kubectl get ns
kubectl get all -m ingress
kubectl get all -n ingress
kubectl get po
kubectl describe frontend-568bd96d89-vkng5
kubectl get pop] frontend-568bd96d89-vkng5
kubectl get po frontend-568bd96d89-vkng5
kubectl logs frontend-568bd96d89-vkng5
vim frontend.yaml
kubectl apply -f frontend.yaml
kubectl get po
kubectl logs frontend-7568bb9476-h7t7b
ls
cat frontend.yaml
kubectl apply -f frontend.yaml
kubectl get po
kubectl get frontend-7f6bb7dbcb-llb9w
kubectl logs frontend-7f6bb7dbcb-llb9w
vim frontend.yaml
kubectl apply -f frontend.yaml
kubectl get po
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
sudo apt-get install apt-transport-https --yes
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install helm
helm status
sudo helm status
kubectl get all -n
helm
helm create helloworld
helm ls
ls -lart
cd helloworld/
ls
cd templates/
ls
cat deployment.yaml
cd
tree helloworld
sudo apt install tree
tree helloworld
ls
cd helloworld/
vim values.yaml
helm install myhelloworld helloworld
cd .
helm install myhelloworld helloworld
cd
cd helloworld/
helm template neha .
helm install helloworld .
vim values.yaml
helm install helloworld .
helm install helloworlds .
helm list -a
kubectl get service
curl ifconfig.me
cd
helm create helloworld
helm create mongo
tree mongo
cd mongo/
cd templates/
ls
vim deployment.yaml
helm template neha .
kubectl apply -f deployment.yaml
vim deployment.yaml
cat deployment.yaml
vim deployment.yaml
helm template neha .
cd ..
helm template neha .
ls
cd templates/
ls
vim service.yaml
cat deployment.yaml
cat service.yaml
cd
cd mongo/
cat values.yaml
vim values.yaml
helm template neha .
ls
tree mongo
cd
tree mongo
helm install myhelloworld helloworld
helm install mongodb mongo
helm list -a
kubectl get service
curl congif.me
curl config.me
helm list -a
kubectl get service
curl ifconfig.me
tree
tree mongo
cd mongo/
cd templates/
cat deployment.yaml
cd
ls
cd mongo/
ls
cd va
cat values.yaml
vim values.yaml
helm template neha .
ls
cd templates/
ls
cd ..
ls
cd templates/
rm tests
rf test
rm -d test
rm -d tests
rmf -d tests
cd test
cd tests
ls
kubectl delete test-connection.yaml
cat test-connection.yaml
kubectl delete pod test-connection.yaml
rm test-connection.yaml
ls
cd .
rm tests
rmf -d tests
rm -d tests
cd .
cd ..
rm -d tests
ls
cd
helm list -a
kubectl get svc
curk ifconfig.me
curl ifconfig.me
cd mongo/
ls
ls
cat deployment.yaml
cd
cd mogo
cd mongo/
helm template neha .
kubectl get svc
kubectl get ep
telnet
curl ifconfig.me
telnet 65.0.12.177 31065
telnet 65.0.12.177
kubectl get po -A | grep ing
telnet 65.0.12.177 30982
kubectl get ep
telnet 10.1.89.81 27017
kubectl get po
kubectl get po -o wide
kubectl exec -it mongodb-68fffc8b5d-tckpk -- bash
ls
vim templates/
cd templates/
ls
vim service
vim service.yaml
vim deployment.yaml
cd ..
vim values.yaml
helm template .
cd .
cd
helm install nehadb mongo
kubectl get svc
kubectl get po
cd mongo
vim values.yaml
cd templates/
vim deployment.yaml
cd .
cd ..
helm list
helm upgrade nehadb .
kubectl get svc
kubectl get po
kubectl exec -it nehadb-mongo-b47cfcbdf-p9gmf -- bin/bash
curl ifconfig.me
cd
helm create helloworld
telnet 65.0.12.177 31985
helm create backend
tree backend
cd backend/
cd templates/
ls
vim deployment.yaml
cd ..
vim values.yaml
cd templates/
cd tests/
rm test-connection.yaml
cd ..
cd tests/
cd ..
rm tests/
rm -d tests/
ls
cd ..
helm template neha .
cd ..
helm install neha-backend backend
kubectl get po
kubectl get svc
cd backend/
cd templates/
vim ingress.yaml
cd ..
vim values.yaml
cd templates/
vim ingress.yaml
vim values.yaml
cd ..
vim values.yaml
helm upgrade nehabackend .
helm templates .
helm template .
vim values.yaml
cd ..
cd mongo
cd templates/
vim service
vim service.yaml
cd ..
vim values.yaml
cd templates/
vim service.yaml
cd
kubectl get svc
cd bac
cd backend/
cd templates/
vim deployment.yaml
cd
cd backend/
helm template .
vim values.yaml
cd
cd backend/
helm upgrade nehabackend .
helm list
helm upgrade neha-backend .
helm upgrade backend .
helm list
vim values.yaml
helm upgrade backend .
helm upgrade neha-backend .
kubectl get ingress
kubectl get ingress neha-backend -o yaml
microk8s enable ingress
kubectl get ingress
kubectl get ingressclass
kubectl get all
kubectl get ns
kubectl get all -n ingress
kubectl get svc
kubectl edit ingress neha-backend
kubectl get all -n ingress
kubectl get ds nginx-ingress-microk8s-controller -n ingress -o yaml
kubectl edit ingress neha-backend
cd
git config --global user.name "neha130"
git config --global user.email "neha.sharma@devtron.ai"
ls
git init
git add .
git commit -m "m"
git branch -M main
git remote add origin https://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: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@github.com/Neha130/helmChart.git
git push origin main
ls
tree
cd mongo
helm package .
cd
cd backend/
helm package .
cd
cd helloworld/
helm package .
cd
ls
cd mongo
ls
init
git init
git add mongo-0.1.0.tgz
git commit -m "m"
git branch -M main
git remote add origin https://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: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@github.com/Neha130/helm-charts.git
git push origin main
cd
cd backend/
git init
ls
git add backend-0.1.0.tgz
git commit -m "m"
git branch -M main
git remote add origin https://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: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@github.com/Neha130/helm-charts.git
git branch -M main
git push origin main
git pull origin mai
git pull origin main
git init
git add backend-0.1.0.tgz
git commit -m "m"
git remote add origin https://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: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@github.com/Neha130/helm-charts.git
git push origin main
ls
git branch
git status
vi .gitignore
ls
tree .git
cd
ls
history
ls
cd backend
tree
tree -a
git addd . -h
git add -h
git add -A
git commit -m "added tar file"
ls
git add backend-0.1.0.tgz
git commit -m "added tar file folder"
git push origin main -h
git push origin main -f
ls
cp ../mongo/mongo-0.1.0.tgz .
git add mongo-0.1.0.tgz
git commit -m "added tar file mongo"
git push origin main
git stash -h
cd
cd helloworld
ls
cd
cd backend/
cp ../helloworld/helloworld-0.1.0.tgz
cp ../helloworld/helloworld-0.1.0.tgz .
git commit -m "added tar file mongo"
git commit -m "added tar file hello"
git add helloworld-0.1.0.tgz
git commit -m "added tar file helloworld"
git push origin main
git commit -m "added tar file mongo"
helm repo index --url https://github.com/Neha130/helm-charts .
ls
git add index.yaml
git commit -m "index file"
git push origin main
history
hotory
history
helm repo add helm-charts https://github.com/Neha130/helm-charts.git
git tatus
git status
git login
gh
gh login
helm repo add helm-charts https://neha130.github.io/helm-charts/
helm install helm-charts -n vishu
kubectl get ns
kubectl create ns vishu
helm install helm-charts -n vishu
helm repolist
helm list
helm repo list
ls
mkdir vishu
cd vishu/
ls
helm repo list
helm install helm-charts -n vishu
helm install helm-charts -n vishu .
cd ..
helm install helm-charts -n vishu .
ls
helm install helm-charts -n vishu
curl https://neha130.github.io/helm-charts/index.yaml
helm repo add neha https://neha130.github.io/helm-charts/
helm install -h
helm repo list
helm install kuch-bhi neha/helloworld
helm install -h|grep tag
helm install kuch-bhi neha/helloworld --version 0.1.0
helm repo update neha
helm install kuch-bhi neha/helloworld --version 0.1.0
helm install kuch-bhi neha/helloworld
helm repo list
helm repo list -h
helm search repo -h
helm search repo neha
helm install kuch-bhi neha/helloworld
curl https://neha130.github.io/helm-charts/index.yaml
curl https://github.com/Neha130/helm-charts/helloworld-0.1.0.tgz
curl https://neha130.github.io/helm-charts/index.yaml
helm repo update neha
helm install kuch-bhi neha/helloworld
history
helm install kuch-bhi neha/mongo
helm repo update neha
helm install kuch-bhi neha/mongo
helm repo update neha
helm install kuch-bhi neha/mongo
helm install kuch neha/mongo
curl
helm repo update neha
helm repo delete neha
helm repo remove neha
helm repo add neha https://neha130.github.io/helm-charts/
curl https://neha130.github.io/helm-charts/index.yaml
helm repo add neha https://neha130.github.io/helm-charts/
helm install kuch neha/mongo
cd mongo/templates/
cd .
cd ..
helm template .
vim service.yaml
cd ..
vim values.yaml
helm template .
cd templates/
vim service.yaml
cd
cd mongo/
tree
vim Chart.yaml
vim service.yaml
cd templates/
vim service.yaml
cd ..
cd template .
helm template .
cd templates/
cat service.yaml
cd ..
cat values.yaml
cd
kubectl get svc
cd mongo/templates/
ls
cd
cat mongo/templates/service.yaml
cd mongo/
helm template .
helm template . --debug
cat templates/service.yaml
tree
cat templates/service
cd templates/
rm service
helm template .
cd ..
helm templates/
helm template .
uiuop
hel
helm upgrade
helm upgrade mongo .
cd
helm upgrade mongo .
helm template .
tree
helm upgrade
vim values.yaml
cat Chart.yaml
vim Chart.yaml
helm upgrade mongo .
helm template .
helm search repo mongo
ls
cd
ls
cd helloworld/
ls
git status
cp ../mongo/mongo-0.1.0.tgz
cp ../mongo/mongo-0.1.0.tgz .
ls
git add .
git commit -m "tar"
git push origin main
history
cd
cd backend/
ls
rm mongo-0.1.0.tgz
ls
cp ../mongo/mongo-0.1.0.tgz .
ls
git add .
git commit -m "tar"
git push origin main
git push --help
git push --all
git push origin main --force
cd
helm
helm search repo mongo
helm install kuch neha/mongo
cd mongo
version
cat values.yaml
cat Chart.yaml
tree
cd charts/
ls
cd ..
vim Chart.yaml
helm package .
git add index.yaml
cd
cd backend/
cp ../mongo/mongo-0.1.1.tgz
cp ../mongo/mongo-0.1.1.tgz .
git add index.yaml
git commit -m "new version"
git push origin main --fo
git push origin main --force
git push origin main
git add .
git push origin main
git push origin main --force
git add .
ls
git add mongo-0.1.1.tgz .
git push origin main --force
git status
backend/
cd backend/
git status
git commit -m "new tar "
helm upgrade
helm upgrade .
helm upgrade backend.
helm upgrade mongo .
helm upgrade backend .
pwd
cd
helm upgrade backend .
helm upgrade backend
helm list
helm list -a
helm upgrade neha-backend helm-charts
ls
helm upgrade neha-backend backend
list a
helm list -a