Posts

CKA - Dumps

Image
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     Solution :

Deployment - Strategy

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ There are several deployment strategies in Kubernetes, including: Rolling updates: This is the default deployment strategy in Kubernetes. Rolling updates replace the old version of an application with a new version in a controlled and gradual manner, ensuring that the application remains available during the update process. Blue/Green deployment: This strategy involves running two identical environments (blue and green) simultaneously, but only one environment is serving traffic at any given time. The new version of the application is deployed in the inactive environment (green), tested, and verified before traffic is redirected to it. Canary deployment: This strategy is similar to the Blue/Green deployment, but it is more targeted. Only a small percentage of users (canary users) are directed to the new version of the application, a...

kubectl - commands

Image
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  https://kubernetes.io/docs/reference/kubectl/cheatsheet/  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ kubectl  kubectl get - List resources   kubectl describe - Show details of a resource   kubectl create - Create a resource from a file or standard input   kubectl apply - Apply changes to a resource from a file or standard input kubectl delete - Delete a resource by name or from a file or standard input kubectl edit - Edit a resource     --  kubectl edit rs new-replicaset //  new-replicaset kubectl exec - Run a command in a container kubectl logs - Print the logs for a container kubectl port-forward - Forward one or more local ports to a pod kubectl scale - Scale a deployment or replicaset kubectl scale --replicas=6 -f  replication-definition.yml  edit the "replication-definition.yml" file and use the replace co...