Back to notes
What are Kubernetes Namespaces used for?
Press to flip
Namespaces are used to organize resources, prevent conflicts, and limit access within a Kubernetes cluster, allowing for better resource isolation and management.
Explain the purpose of Helm in a Kubernetes environment.
Helm is a package manager for Kubernetes that simplifies the deployment and management of applications by using Helm Charts, which are collections of Kubernetes resources.
What are Ingress rules in Kubernetes?
Ingress rules define how external traffic is routed to services within a Kubernetes cluster. They can specify HTTP routes, path-based routing, and TLS/SSL connections.
What are the differences between ConfigMap and Secrets in Kubernetes?
ConfigMap is used to store non-confidential configuration data in key-value pairs, whereas Secrets are used to store sensitive information, providing better security and access control.
What are Volumes in Kubernetes, and why are they important?
Volumes in Kubernetes provide persistent storage for containers, ensuring data persistence beyond the lifecycle of individual Pods.
What problems does Kubernetes solve?
Kubernetes addresses several problems, including high availability, scalability, disaster recovery, and effective management of containerized applications across different environments.
What is Kubernetes?
Kubernetes is an open-source container orchestration framework designed to manage applications made up of containers in various environments, including physical, virtual machines, cloud, and hybrid.
What is Kubernetes Ingress and its primary use-case?
Kubernetes Ingress is an API object that manages external access to services within a cluster, typically HTTP. It provides features like load balancing, SSL termination, and name-based virtual hosting.
What are some best practices for cleaning up resources in Kubernetes?
Best practices include using `kubectl` commands to delete unused resources, regularly reviewing resource utilization, and employing cleanup scripts to ensure the environment remains tidy and manageable.
Describe the basic process of deploying an application in Kubernetes.
The basic process involves creating YAML configuration files to define the application’s Pods, Services, and Deployments, then using `kubectl` commands to apply these configurations to the cluster.
How do you install Minikube and the `kubectl` command-line tool?
Installation varies by operating system, but generally involves downloading the Minikube binary and the `kubectl` CLI tool from their respective official websites, and following the setup instructions.
Why are YAML files used in Kubernetes?
YAML files are used in Kubernetes to define and configure components such as Pods, Services, and Deployments, making it easier to manage these configurations declaratively.
What are the main components of Kubernetes?
The main components of Kubernetes include Pods, Nodes, Services, Namespaces, Volumes, StatefulSets, ConfigMap, Secrets, and Helm.
Why is it important to use Namespaces in a Kubernetes cluster?
Using Namespaces helps in organizing resources, preventing naming conflicts, and providing resource isolation and access control within a Kubernetes cluster.
Explain dynamic provisioning in the context of Kubernetes storage.
Dynamic provisioning allows Kubernetes to automatically provision storage resources when PersistentVolumeClaims are created, based on StorageClass specifications.
How do you manage persistent storage in Kubernetes using Volumes and Claims?
You define Volumes in the Pod specification and create PersistentVolumeClaims (PVCs) to request storage resources, which are bound to PersistentVolumes (PVs).
What is the purpose of Minikube?
Minikube is used to create a local Kubernetes cluster for development and testing purposes.
What are StatefulSets and when would you use them?
StatefulSets are used to manage stateful applications that require persistent storage and stable network identities, such as databases.
Previous
Next