Container Orchestration with Kubernetes

    Question 1KUBERNETES- Purpose of Kubernetes

    What is the primary purpose of Kubernetes in modern applications?

    Question 2KUBERNETES- Key Components

    Which component is responsible for maintaining cluster state and managing workloads?

    Question 3KUBERNETES- Code Snippet (Pod YAML)

    What does this YAML manifest define?

    apiVersion: v1 kind: Pod metadata: name: myapp-pod spec: containers: - name: myapp image: myapp:latest

    Question 4KUBERNETES- Deployments

    What is the main purpose of a Deployment in Kubernetes?

    Question 5KUBERNETES- Code Snippet (Service YAML)

    What type of Service is defined by this YAML?

    apiVersion: v1 kind: Service metadata: name: myapp-service spec: selector: app: myapp ports: - protocol: TCP port: 80 targetPort: 8080 type: ClusterIP

    Question 6KUBERNETES- ConfigMaps Purpose

    What is the purpose of a ConfigMap in Kubernetes?

    Question 7KUBERNETES- Code Snippet (Apply Deployment)

    What does this command do?

    kubectl apply -f myapp-deployment.yaml

    Question 8KUBERNETES- Scaling Pods

    How can you scale a Deployment named myapp-deploy to 5 replicas?

    Question 9KUBERNETES- Persistent Volumes

    Why are Persistent Volumes (PVs) used in Kubernetes?

    Question 10KUBERNETES- Namespaces Purpose

    What is the main purpose of Kubernetes namespaces?