- The imperative approach consists of executing imperative kubectl commands, such as kubectl run or kubectl expose. In the declarative approach, you always modify object configurations (manifest files) and create or update them in the cluster using the kubectl apply command (alternatively, you can use Kustomization files).
- The imperative kubectl delete command is preferred over declarative deletion as it gives predictable results.
- kubectl diff -f <file/directory>
- The recommended practice is using nodeSelector for the predictable scheduling of your Pods for both Windows and Linux containers.
- You can use kubectl proxy to access any Service API object. kubectl port-forward is a more low-level command that you can use for accessing individual Pods or Pods running in a deployment or behind a service.
- Using an Ingress Controller is...