-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrss.xml
2835 lines (2249 loc) · 118 KB
/
rss.xml
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
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Kubernetes Daily</title>
<link>https://kubernetesdaily.github.io</link>
<description>Learn Kubernetes, Cloud Native, DevOps, and Container technologies with hands-on tutorials, guides, and best practices.</description>
<language>en</language>
<lastBuildDate>2025-04-29T06:45:07.645Z</lastBuildDate>
<atom:link href="https://kubernetesdaily.github.io/rss.xml" rel="self" type="application/rss+xml"/>
<item>
<title>undefined</title>
<link>https://kubernetesdaily.github.io/blog/blog/werf</link>
<guid isPermaLink="true">https://kubernetesdaily.github.io/blog/blog/werf</guid>
<pubDate>Tue, 29 Apr 2025 06:45:07 GMT</pubDate>
<description><](https://github.com/werf/werf)
#### Install Werf
```bash
➜ ~ curl -sSLO https://werf.io/install.sh && chmod +x install.sh
➜ ~ ./install.sh --version 1.2 --channel stable
[INPUT REQUIRED] Current login shell is "zsh". Press ENTER to setup werf for this shell or choose another one.
[b]ash/[z]sh/[a]bort? Default: zsh.
z
[INPUT REQUIRED] trdl is going to be installed in "/Users/sangambiradar/bin/". Add this directory to your $PATH in "/Users/sangambiradar/.zshrc" and "/Users/sangambiradar/.zprofile"? (strongly recommended)
[y]es/[a]bort/[s]kip? Default: yes.
yes
[INFO] Installing trdl to "/Users/sangambiradar/bin/".
[INFO] Adding werf repo to trdl.
[INPUT REQUIRED] Add automatic werf activation to "/Users/sangambiradar/.zshrc" and "/Users/sangambiradar/.zprofile"? (recommended for interactive usage, not recommended for CI)
[y]es/[a]bort/[s]kip? Default: yes.
[INFO] werf installation finished successfully!
[INFO] Open new shell session if you have enabled werf autoactivation or activate werf manually with:
$ source $("/Users/sangambiradar/bin/trdl" use werf "1.2" "stable")
```
### werf use trdl
trdl is an Open Source solution providing a secure channel for delivering updates from the Git repository to the end user.

Problems that trdl solves for you
- Continuous delivery limitations
- Continuous delivery via the CI system works well for the SaaS model, that is, for software
- hosted on cloud servers. At the same time, you would be hard-pressed to find a tool that is as fast at delivering code to user devices.
- Challenges related to implementing a secure delivery
- What complicates things:
- Software release and changes in release channels must only occur based on a collective decision of the team (quorum).
- The system must protect against unauthorized access and data compromise.
- The system must not be compromised by human mistakes, including regulation breaches.
- Package manager limitations
- There are many package managers, but they all have common drawbacks:
- Each platform requires its own manager.
- The package creation process is complicated.
- There is a lot of manual work involved: the user has to add the package source, find the package, and install/upgrade/uninstall it.
### verify werf cli installed or not
```
➜ ~ werf
werf helps to implement and support Continuous Integration and Continuous
Delivery.
Find more information at https://werf.io
Delivery commands:
converge Build and push images, then deploy application into Kubernetes
dismiss Delete werf release from Kubernetes
bundle Work with werf bundles: publish bundles into container
registry and deploy bundles into Kubernetes cluster
Cleaning commands:
cleanup Cleanup project images in the container registry
purge Purge all project images in the container registry
Helper commands:
ci-env Generate werf environment variables for specified CI system
build Build images
export Export images
run Run container for project image
kube-run Run container for project image in Kubernetes
compose Work with docker-compose
slugify Print slugged string by specified format.
render Render Kubernetes templates
Low-level management commands:
config Work with werf.yaml
managed-images Work with managed images which will be preserved during
cleanup procedure
host Work with werf cache and data of all projects on the host
machine
helm Manage application deployment with helm
cr Work with container registry: authenticate, list and remove
images, etc.
kubectl kubectl controls the Kubernetes cluster manager
Other commands:
synchronization Run synchronization server
completion Generate bash completion scripts
version Print version
Use "werf <command> --help" for more information about a given command.
Version: v1.2.205
➜ ~
```
### Setup Minikube for Werf
```
~ minikube start --vm=true --insecure-registry registry.example.com:80
😄 minikube v1.30.0 on Darwin 13.3 (arm64)
✨ Automatically selected the qemu2 driver. Other choices: virtualbox, ssh
🌐 Automatically selected the builtin network
❗ You are using the QEMU driver without a dedicated network, which doesn't support `minikube service` & `minikube tunnel` commands.
To try the dedicated network see: https://minikube.sigs.k8s.io/docs/drivers/qemu/#networking
💿 Downloading VM boot image ...
> minikube-v1.30.0-arm64.iso....: 65 B / 65 B []]></description>
</item>
<item>
<title>undefined</title>
<link>https://kubernetesdaily.github.io/blog/blog/qwen-coder-models</link>
<guid isPermaLink="true">https://kubernetesdaily.github.io/blog/blog/qwen-coder-models</guid>
<pubDate>Tue, 29 Apr 2025 06:45:07 GMT</pubDate>
<description><![CDATA[]]></description>
</item>
<item>
<title>undefined</title>
<link>https://kubernetesdaily.github.io/blog/blog/kubernetes-tools-guide</link>
<guid isPermaLink="true">https://kubernetesdaily.github.io/blog/blog/kubernetes-tools-guide</guid>
<pubDate>Tue, 29 Apr 2025 06:45:07 GMT</pubDate>
<description><![CDATA[]]></description>
</item>
<item>
<title>undefined</title>
<link>https://kubernetesdaily.github.io/blog/blog/k8sgpt</link>
<guid isPermaLink="true">https://kubernetesdaily.github.io/blog/blog/k8sgpt</guid>
<pubDate>Tue, 29 Apr 2025 06:45:07 GMT</pubDate>
<description><![CDATA[ K8sgpt - Chatgpt base SRE
k8sgpt chat gpt for trubleshooting
### Install k8sgpt ai
```
~ brew tap k8sgpt-ai/k8sgpt
==> Tapping k8sgpt-ai/k8sgpt
Cloning into '/opt/homebrew/Library/Taps/k8sgpt-ai/homebrew-k8sgpt'...
remote: Enumerating objects: 86, done.
remote: Counting objects: 100% (86/86), done.
remote: Compressing objects: 100% (85/85), done.
remote: Total 86 (delta 51), reused 2 (delta 0), pack-reused 0
Receiving objects: 100% (86/86), 18.77 KiB | 6.26 MiB/s, done.
Resolving deltas: 100% (51/51), done.
Tapped 1 formula (14 files, 37.8KB).
➜ ~ brew install k8sgpt
==> Fetching k8sgpt-ai/k8sgpt/k8sgpt
==> Downloading https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.3.0/k8sgpt_Darwin_arm64.tar.gz
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/617152691/d9f59995-7f6
################################################################################################################# 100.0%
==> Installing k8sgpt from k8sgpt-ai/k8sgpt
🍺 /opt/homebrew/Cellar/k8sgpt/0.3.0: 6 files, 55.5MB, built in 1 second
==> Running `brew cleanup k8sgpt`...
```
### K8s filters list
```
k8sgpt filters list
Active:
> Pod
> PersistentVolumeClaim
> StatefulSet
> CronJob
> Deployment
> ReplicaSet
> Service
> Ingress
> Node
Unused:
> NetworkPolicy
> HorizontalPodAutoScaler
> PodDisruptionBudget
```
### How K8sGPT works ?
K8sGPT uses analyzers to triage and diagnose issues in your cluster. It has a set of analyzers that are built in, but you will be able to write your own analyzers.
Built in analyzers
Enabled by default
- podAnalyzer
https://github.com/k8sgpt-ai/k8sgpt/blob/main/pkg/analyzer/pod.go
- search all namespaces for pods that are not running
- Check through container status to check for crashes or unready
- a container that is still being created or blocked due to conditions such as OOMKilled
- when pod is Running but its ReadinessProbe fails
- pvcAnalyzer
- PersistentVolumeClaim.ObjectMeta
- Error: value.FailureDetails
- rsAnalyzer
- Status of replicaset
- type of event
- reason of failure
```
Events:
Type Reason Age From Message
]]></description>
</item>
<item>
<title>undefined</title>
<link>https://kubernetesdaily.github.io/blog/blog/cloudflared-tunnel</link>
<guid isPermaLink="true">https://kubernetesdaily.github.io/blog/blog/cloudflared-tunnel</guid>
<pubDate>Tue, 29 Apr 2025 06:45:07 GMT</pubDate>
<description><![CDATA[]]></description>
</item>
<item>
<title>undefined</title>
<link>https://kubernetesdaily.github.io/blog/blog/cloud-native-learning-path</link>
<guid isPermaLink="true">https://kubernetesdaily.github.io/blog/blog/cloud-native-learning-path</guid>
<pubDate>Tue, 29 Apr 2025 06:45:07 GMT</pubDate>
<description><![CDATA[]]></description>
</item>
<item>
<title>undefined</title>
<link>https://kubernetesdaily.github.io/blog/blog/arkade</link>
<guid isPermaLink="true">https://kubernetesdaily.github.io/blog/blog/arkade</guid>
<pubDate>Tue, 29 Apr 2025 06:45:07 GMT</pubDate>
<description><](https://github.com/alexellis/arkade)
### Getting started with Arkade CLI
- Macos/Linux
```bash
~ curl -sLS https://get.arkade.dev | sudo sh
Password:
Downloading package https://github.com/alexellis/arkade/releases/download/0.9.7/arkade-darwin-arm64 as /tmp/arkade-darwin-arm64
Download complete.
Running with sufficient permissions to attempt to move arkade to /usr/local/bin
New version of arkade installed to /usr/local/bin
Creating alias 'ark' for 'arkade'.
_ _
__ _ _ __| | ____ _ __| | ___
/ _` | '__| |/ / _` |/ _` |/ _ \
| (_| | | | < (_| | (_| | __/
\__,_|_| |_|\_\__,_|\__,_|\___|
Open Source Marketplace For Developer Tools
Version: 0.9.7
Git Commit: 461fb7a9d05d7e3d13a39e03e1e38b6936cb15bd
🐳 arkade needs your support: https://github.com/sponsors/alexellis
➜ ~
```
### Get list of most needed tools & CLI for all Kubenetes Developer
```bash
➜ ~ arkade get
+]]></description>
</item>
<item>
<title>undefined</title>
<link>https://kubernetesdaily.github.io/blog/blog/Okteto</link>
<guid isPermaLink="true">https://kubernetesdaily.github.io/blog/blog/Okteto</guid>
<pubDate>Tue, 29 Apr 2025 06:45:07 GMT</pubDate>
<description><](https://github.com/okteto/okteto)
### Getting started with Oketo CLI
- Macos/Linux
```bash
➜ curl https://get.okteto.com -sSfL | sh
> Using Release Channel: stable
> Using Version: 2.14.0
> Downloading https://downloads.okteto.com/cli/stable/2.14.0/okteto-Darwin-arm64
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 74.8M 100 74.8M 0 0 20.0M 0 0:00:03 0:00:03 --:--:-- 20.0M
```
### Login into Okteto Cloud via Github Account

### Configuring Okteto CLI with Okteto Cloud
```bash
➜ okteto context
A context defines the default cluster/namespace for any Okteto CLI command.
Select the context you want to use:
Use the arrow keys to navigate: ↓ ↑ → ←
▸ https://cloud.okteto.com (Okteto Cloud) *
docker-desktop
minikube
multinode-pod-security
Create new context
```
Or use directly
```bash
➜ okteto context use https://cloud.okteto.com
✓ Using sangam14 @ cloud.okteto.com
```
2048 folder contain source code for 2048
```Dockerfile
FROM nginx
COPY 2048 /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
```
```Docker-Compose.yml
services:
game:
build: ./
expose:
- 8080:80
```
### Deploy Docker Compose on Okteto Cloud
okteto use [compose-spec](https://github.com/compose-spec/compose-spec) also its convert docker compose to kubernetes Manifest
here is more about docker compose on okteto (https://www.okteto.com/docs/reference/compose/)
```bash
okteto deploy --build
i Using sangam14 @ cloud.okteto.com as context
i Building 'Dockerfile' in tcp://buildkit.cloud.okteto.net:443...
[+] Building 7.8s (7/7) FINISHED
=> [internal] load build definition from buildkit-3366967893 0.9s
=> => transferring dockerfile: 137B 0.8s
=> [internal] load .dockerignore 0.7s
=> => transferring context: 2B 0.6s
=> [internal] load metadata for docker.io/library/nginx:latest 1.1s
=> [internal] load build context 2.5s
=> => transferring context: 603.29kB 2.5s
=> CACHED [1/2] FROM docker.io/library/nginx@sha256:2ab30d6ac53580a6db8b657abf0f68d75360ff5cc1670a85acb5bd85ba1b19 0.0s
=> => resolve docker.io/library/nginx@sha256:2ab30d6ac53580a6db8b657abf0f68d75360ff5cc1670a85acb5bd85ba1b19c0 0.0s
=> [2/2] COPY 2048 /usr/share/nginx/html 0.3s
=> exporting to image 2.5s
=> => exporting layers 0.1s
=> => exporting manifest sha256:79f1385595d70b82b4b5db52f5edddb1f4a06c79ded928926d48bb947a5322b6 0.0s
=> => exporting config sha256:ecf1dac7fbfaa6cdcb88dd2bbc616edbbc96459b078f15199fe3ddd564c481de 0.0s
=> => pushing layers 1.6s
=> => pushing manifest for registry.cloud.okteto.net/sangam14/okteto-2048-game:okteto@sha256:79f1385595d70b82b4b5d 0.8s
✓ Image 'registry.cloud.okteto.net/sangam14/okteto-2048-game:okteto' successfully pushed
✓ Kubernetes service 'game' created
✓ Endpoint 'game' created
✓ Service 'game' created
✓ Compose 'Okteto-2048' successfully deployed
✓ Development environment 'Okteto-2048' successfully deployed
i Run 'okteto up' to activate your development container
```
### Check it out Okteto Cloud
Okteto basically use technic all

### Check it out enpoints
you will see application running

### lets same app using kubernetes
okteto also provide capablities to build docker images remotely its means without installing docker you can now build docker images .
```bash
➜ okteto build -t sangam14/okteto-2048-game:okteto .
i Building 'Dockerfile' in tcp://buildkit.cloud.okteto.net:443...
[+] Building 5.9s (8/8) FINISHED
=> [internal] load build definition from buildkit-3724659360 1.5s
=> => transferring dockerfile: 180B 1.5s
=> [internal] load .dockerignore 0.9s
=> => transferring context: 2B 0.8s
=> [internal] load metadata for docker.io/library/nginx:latest 0.9s
=> CACHED [1/3] FROM docker.io/library/nginx@sha256:2ab30d6ac53580a6db8b657abf0f68d75360ff5cc1670a85acb5bd85ba1b19 0.0s
=> => resolve docker.io/library/nginx@sha256:2ab30d6ac53580a6db8b657abf0f68d75360ff5cc1670a85acb5bd85ba1b19c0 0.0s
=> [internal] load build context 0.9s
=> => transferring context: 4.66kB 0.5s
=> [2/3] RUN chmod +x /usr/sbin/nginx 0.9s
=> [3/3] COPY 2048 /usr/share/nginx/html 0.3s
=> exporting to image 2.1s
=> => exporting layers 0.3s
=> => exporting manifest sha256:ad9bdd97413eddbcd25fe2d1c55992796848a314e33165235a307726dcadaf8a 0.0s
=> => exporting config sha256:2f2ffc174a087bf9653029ec247279885a59e77887a259e592761ed4b06a3959 0.0s
=> => pushing layers 1.5s
=> => pushing manifest for docker.io/sangam14/okteto-2048-game:okteto@sha256:ad9bdd97413eddbcd25fe2d1c55992796848a 0.3s
✓ Image 'sangam14/okteto-2048-game:okteto' successfully pushed
```
### Okteto Support Kubernetes , Kustomize also Helm charts
```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
selector:
matchLabels:
app: nginx
replicas: 2
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: docker.io/sangam14/okteto-2048-game:okteto
ports:
- containerPort: 80
]]></description>
</item>
<item>
<title>undefined</title>
<link>https://kubernetesdaily.github.io/blog/blog/Flannel</link>
<guid isPermaLink="true">https://kubernetesdaily.github.io/blog/blog/Flannel</guid>
<pubDate>Tue, 29 Apr 2025 06:45:07 GMT</pubDate>
<description><![CDATA[]]></description>
</item>
<item>
<title>undefined</title>
<link>https://kubernetesdaily.github.io/blog/blog/CertManager</link>
<guid isPermaLink="true">https://kubernetesdaily.github.io/blog/blog/CertManager</guid>
<pubDate>Tue, 29 Apr 2025 06:45:07 GMT</pubDate>
<description><](https://github.com/cert-manager/cert-manager)
### Start Minikube
```
minikube-certmanager git:(main) minikube start
😄 minikube v1.30.0 on Darwin 13.3.1 (arm64)
✨ Using the docker driver based on existing profile
👍 Starting control plane node minikube in cluster minikube
🚜 Pulling base image ...
🏃 Updating the running docker "minikube" container ...
❗ Image was not built for the current minikube version. To resolve this you can delete and recreate your minikube cluster using the latest images. Expected minikube version: v1.29.0 -> Actual minikube version: v1.30.0
🐳 Preparing Kubernetes v1.26.3 on Docker 23.0.2 ...
🔎 Verifying Kubernetes components...
▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟 Enabled addons: storage-provisioner, default-storageclass
🏄 Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
```
### add jetstack helm
```
➜ minikube-certmanager git:(main) helm repo add jetstack https://charts.jetstack.io
"jetstack" has been added to your repositories
```
### update helm charts
```
➜ minikube-certmanager git:(main) helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "jetstack" chart repository
Update Complete. ⎈Happy Helming!⎈
```
### Install cert-manger CRD on test namespace
```
➜ minikube-certmanager git:(main) helm install \
cert-manager jetstack/cert-manager \
--namespace test \
--create-namespace \
--version v1.11.1 \
--set installCRDs=true
NAME: cert-manager
LAST DEPLOYED: Fri Apr 14 12:35:31 2023
NAMESPACE: test
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
cert-manager v1.11.1 has been deployed successfully!
In order to begin issuing certificates, you will need to set up a ClusterIssuer
or Issuer resource (for example, by creating a 'letsencrypt-staging' issuer).
More information on the different types of issuers and how to configure them
can be found in our documentation:
https://cert-manager.io/docs/configuration/
For information on how to configure cert-manager to automatically provision
Certificates for Ingress resources, take a look at the `ingress-shim`
documentation:
https://cert-manager.io/docs/usage/ingress/
```
### verify test namespace is active
```
➜ minikube-certmanager git:(main) kubectl get ns
NAME STATUS AGE
default Active 16h
kube-node-lease Active 16h
kube-public Active 16h
kube-system Active 16h
test Active 4m31s
```
### create self-signered certificate issuer
creating a self-signed certificate that our CA will use. To do so we will first need to create a self-signed certificate issuer.
```yml
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: selfsigned-issuer
namespace: test
spec:
selfSigned: {}
```
### kubectl apply cert manager ss issuer
```
minikube-certmanager git:(main) ✗ kubectl create -f cert-manager-ss-issuer.yaml
issuer.cert-manager.io/selfsigned-issuer created
```
### creat CA certificate
```
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: test-ca
namespace: test
spec:
isCA: true
commonName: test-ca
subject:
organizations:
- ACME Inc.
organizationalUnits:
- Widgets
secretName: test-ca-secret
privateKey:
algorithm: ECDSA
size: 256
issuerRef:
name: selfsigned-issuer
kind: Issuer
group: cert-manager.io
```
### kubectl apply cert-manager-ca-cert
```
➜ minikube-certmanager git:(main) ✗ kubectl create -f cert-manager-ca-cert.yaml
certificate.cert-manager.io/test-ca created
```
### checkt it out certificate
```
➜ minikube-certmanager git:(main) ✗ kubectl -n test get certificate
NAME READY SECRET AGE
test-ca True test-ca-secret 4m15s
```
### check it out secrets
```
➜ minikube-certmanager git:(main) ✗ kubectl -n test get secret test-ca-secret
NAME TYPE DATA AGE
test-ca-secret kubernetes.io/tls 3 5m1s
```
Excellent! This secret contains the ca.crt, tls.crt, and tls.key that belong to the CA itself.
### create ca issuer
Now it's time to create our CA issuer. Create a file called cert-manager-ca-issuer.yaml with the following:
```
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: test-ca-issuer
namespace: test
spec:
ca:
secretName: test-ca-secret
```
### apply ca issuer
```
➜ minikube-certmanager git:(main) ✗ kubectl create -f cert-manager-ca-issuer.yaml
issuer.cert-manager.io/test-ca-issuer created
```
### test ca cert
```
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: test-server
namespace: test
spec:
secretName: test-server-tls
isCA: false
usages:
- server auth
- client auth
dnsNames:
- "test-server.test.svc.cluster.local"
- "test-server"
issuerRef:
name: test-ca-issuer
]]></description>
</item>
<item>
<title>undefined</title>
<link>https://kubernetesdaily.github.io/labs/labs/Learn-k8s</link>
<guid isPermaLink="true">https://kubernetesdaily.github.io/labs/labs/Learn-k8s</guid>
<pubDate>Tue, 29 Apr 2025 06:45:07 GMT</pubDate>
<description><![CDATA[## pre-requisites
#### Includes configuring pre-requisites to install kubeadm
###### step 01) Enable following ports and protcols
```
on kubemaster : Open following ports : https://kubernetes.io/docs/reference/networking/ports-and-protocols/
sudo ufw status
sudo ufw enable
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 22/tcp
sudo ufw allow 6443/tcp
sudo ufw allow 2379/tcp
sudo ufw allow 2380/tcp
sudo ufw allow 10250/tcp
sudo ufw allow 10259/tcp
sudo ufw allow 10257/tcp
sudo ufw allow 30000:32767/tcp
sudo ufw reload
sudo ufw status
###### ]]></description>
</item>
<item>
<title>undefined</title>
<link>https://kubernetesdaily.github.io/labs/labs/Learn-Helm</link>
<guid isPermaLink="true">https://kubernetesdaily.github.io/labs/labs/Learn-Helm</guid>
<pubDate>Tue, 29 Apr 2025 06:45:07 GMT</pubDate>
<description><![CDATA[
# Basics of Helm
git clone
### Install Helm 3
```
~ curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11679 100 11679 0 0 32332 0 --:--:-- --:--:-- --:--:-- 32262
Downloading https://get.helm.sh/helm-v3.14.3-darwin-arm64.tar.gz
Verifying checksum... Done.
Preparing to install helm into /usr/local/bin
Password:
helm installed into /usr/local/bin/helm
```
### Creating the chart
```
(base) ➜ helm-workshop git:(main) helm create application-1
Creating application-1
```
### Structure of the chart
```
(base) ➜ application-1 git:(main) ✗ tree
.
├── Chart.yaml
├── charts
├── templates
│ ├── NOTES.txt
│ ├── _helpers.tpl
│ ├── deployment.yaml
│ ├── hpa.yaml
│ ├── ingress.yaml
│ ├── service.yaml
│ ├── serviceaccount.yaml
│ └── tests
│ └── test-connection.yaml
└── values.yaml
4 directories, 10 files
(base) ➜ application-1 git:(main) ✗
```
deleted unwanted files
```
base) ➜ application-1 git:(main) ✗ tree
.
├── Chart.yaml
├── charts
├── templates
│ ├── deployment.yaml
│ ├── service.yaml
│ └── tests
└── values.yaml
```
### Configuration the yamls files from scratch
create ngnix deployment with 3 replicas and use nodeport to expose ports
### how to deploy the chart
```
(base) ➜ application-1 git:(main) ✗ helm install chart-1 .
W0323 05:55:21.671543 6164 warnings.go:70] unknown field "spec.ports[0].nodeport"
NAME: chart-1
LAST DEPLOYED: Sat Mar 23 05:55:21 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
### view the chart
(base) ➜ application-1 git:(main) ✗ kubectl get deploy,svc
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/my-deployememt 0/1 1 0 49s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 23m
service/my-service NodePort 10.102.58.218 <none> 80:31492/TCP 49s
(base) ➜ application-1 git:(main) ✗ kubectl get nodes -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
minikube Ready control-plane 24m v1.28.3 192.168.49.2 <none> Ubuntu 22.04.3 LTS 6.6.16-linuxkit docker://24.0.7
ip addess + port a
(base) ➜ application-1 git:(main) ✗ helm list
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
chart-1 default 1 2024-03-23 05:55:21.559484 +0530 IST deployed application-1-0.1.0 1.16.0
```
### delete the chart
```
(base) ➜ application-1 git:(main) ✗ helm uninstall chart-1
release "chart-1" uninstalled
```
# Deep Dive into Charts
#### create new chart
```
(base) ➜ helm-workshop git:(main) ✗ cd new-chart
(base) ➜ new-chart git:(main) ✗ ls
Chart.yaml charts templates values.yaml
(base) ➜ new-chart git:(main) ✗
```
### charts
if you see your file structure you don't see charts folder
```
.
├── Chart.yaml
├── charts
├── templates
│ ├── NOTES.txt
│ ├── _helpers.tpl
│ ├── deployment.yaml
│ ├── hpa.yaml
│ ├── ingress.yaml
│ ├── service.yaml
│ ├── serviceaccount.yaml
│ └── tests
│ └── test-connection.yaml
└── values.yaml
```
#### Notes.txt
its container notes for user how to run this helm charts
```
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- range .paths }}
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "new-chart.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "new-chart.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "new-chart.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "new-chart.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
{{- end }}
```
#### _helper
this file nothing to do with kubernetes resource its just variable
```
{{/*
Expand the name of the chart.
*/}}
{{- define "new-chart.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "new-chart.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "new-chart.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "new-chart.labels" -}}
helm.sh/chart: {{ include "new-chart.chart" . }}
{{ include "new-chart.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "new-chart.selectorLabels" -}}
app.kubernetes.io/name: {{ include "new-chart.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "new-chart.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "new-chart.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
```
### chart.yaml
its container helm chart versioning
apiVersion: v2
name: new-chart
description: A Helm chart for Kubernetes
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
```
# Working with Multiple Values
#### create another values file
```
# Default values for application-1.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
deployment:
replicaCount: 1
name: new-deployememt
image:
app: ngnix