Scaling, Monitoring & Logging in Kubernetes

    Question 1KUBERNETES- Horizontal Scaling Basics

    What does Horizontal Pod Autoscaler (HPA) do in Kubernetes?

    Question 2KUBERNETES- Vertical Scaling

    What is the difference between vertical and horizontal scaling in Kubernetes?

    Question 3KUBERNETES- Code Snippet (HPA YAML)

    What does this YAML configure?

    apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: myapp-hpa spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: myapp minReplicas: 2 maxReplicas: 10 metrics: - type: Resource resource: name: cpu target: type: Utilization averageUtilization: 70

    Question 4KUBERNETES- Resource Requests & Limits

    Why are requests and limits important in pod resource definitions?

    Question 5KUBERNETES- Code Snippet (Pod with Resource Limits)

    What does this configuration do?

    containers: - name: myapp image: myapp:latest resources: requests: cpu: "250m" memory: "128Mi" limits: cpu: "500m" memory: "256Mi"

    Question 6KUBERNETES- Monitoring with Metrics Server

    What role does the Metrics Server play in Kubernetes monitoring?

    Question 7KUBERNETES- Logging Basics

    By default, how are logs generated by Kubernetes pods accessed?

    Question 8KUBERNETES- Centralized Logging Solutions

    Which of the following stacks is commonly used for centralized logging in Kubernetes?

    Question 9KUBERNETES- Code Snippet (Fluentd DaemonSet)

    Why is Fluentd often deployed as a DaemonSet in Kubernetes?

    apiVersion: apps/v1 kind: DaemonSet metadata: name: fluentd spec: selector: matchLabels: app: fluentd template: metadata: labels: app: fluentd spec: containers: - name: fluentd image: fluent/fluentd:latest

    Question 10KUBERNETES- Monitoring with Prometheus & Grafana

    How does Prometheus typically integrate with Kubernetes monitoring?