add feature to fomrat note and save top local directory

This commit is contained in:
=
2025-04-26 12:16:44 +08:00
parent edfb1416ab
commit 594af0ade7
9 changed files with 237 additions and 35 deletions

28
k8s_day12.md Normal file
View File

@ -0,0 +1,28 @@
## Create a Daemonset as per the demo shown in the video
```yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nginx-ds
labels:
env: demo
spec:
template:
metadata:
labels:
env: demo
spec:
containers:
- image: nginx
name: nginx
ports:
- containerPort: 80
selector:
matchLabels:
env: demo
```
## Understand the cron syntax and create a cronjob object in kubernetes that prints "40daysofkubernetes" after every 5 minutes and use busybox image
```bash
kubectl create cronjob hello --image=busybox:1.28 --schedule="*/5 * * * *" -- echo "40daysofkubernetes"
```