This Repo container all template yaml of various Kubernetes resources
The yaml are the declarative way of yaml file.
Below are the Imperative way to create a K8s resource.
kubectl run nginx --image=nginx --restart=Never
kubectl create deployment --image=nginx nginx
To scale up the replicas-
kubectl scale --replicas=3 deployment/nginx
To expose a pod nginx service
kubectl expose pod nginx --port=80 --name redis-service
To expose a deployment service to NodePort
kubectl expose deployment nginx --port=80 --type=NodePort --name nginx