Kubernetes and Cloud Native Associate (KCNA) flashcards
136 free flashcards. Tap a card to flip it.
Kubernetes Operator
Flip cardA Kubernetes Operator is software that extends Kubernetes functionality by automating the management of complex, stateful applications using Custom Resources and Controllers.
- Automates operational tasks like provisioning, scaling, and backups.
- Encodes human operational knowledge into code.
- Uses Custom Resources (CRs) and Custom Resource Definitions (CRDs).
Memory trick: Operators are like robot helpers for your complex K8s apps.
Helm Charts
Flip cardHelm Charts are packages of pre-configured Kubernetes resources that can be deployed as a single unit, simplifying application management.
- Defines, installs, and upgrades Kubernetes applications.
- Uses YAML-based templates for resource definitions.
- Manages application dependencies and configurations.
Memory trick: Helm helps you steer your K8s apps to smooth sailing.
Private Container Registry
Flip cardA centralized, secure repository for storing and managing container images within an organization, offering enhanced control, security, and compliance over image provenance and access.
- Provides granular access control for sensitive images.
- Enables vulnerability scanning and policy enforcement.
- Supports air-gapped or restricted network environments.
Memory trick: Your private registry is the vault for approved images.
Operator with CRDs
Flip cardKubernetes Operators, built upon Custom Resource Definitions (CRDs), extend the Kubernetes API to automate the management of complex stateful applications by encoding operational knowledge into software.
- CRDs define new API objects for custom resources.
- Operators provide the intelligence to manage these custom resources.
- Automate complex tasks like provisioning, scaling, backup, and recovery.
- Integrate deeply with Kubernetes control plane.
Memory trick: CRDs are blueprints, Operators are the builders for your custom K8s apps.
Container Image Push
Flip cardThe action of uploading a built and tagged container image to a container registry, making it available for storage, distribution, and subsequent deployment to runtime environments.
- Stores the immutable image in a centralized repository.
- Enables versioning and tracking of images.
- Makes images accessible to Kubernetes clusters and other deployment tools.
- Often requires authentication to the registry.
Memory trick: After building your image, 'push' it to the cloud library.
GitOps
Flip cardAn operational framework that uses Git as the single source of truth for declarative infrastructure and applications. Changes to the desired state in Git are automatically applied to the target environment, and reconciliation ensures actual state matches desired state.
- Git is the single source of truth for declarative configurations.
- Automated agents continuously reconcile the cluster's actual state with Git's desired state.
- Provides an audit trail for all changes to infrastructure and applications.
- Enables faster deployments, easier rollbacks, and self-healing systems.
Memory trick: GitOps is like a 'Git-powered autopilot' for your cluster.
Continuous Integration (CI)
Flip cardContinuous Integration is a development practice where developers merge code changes frequently into a central repository, after which automated builds and tests are run.
- Automates build and test processes.
- Detects integration issues early.
- Requires frequent code commits.
Memory trick: CI is where the code first gets its check-up before the big journey.
Infrastructure as Code (IaC)
Flip cardInfrastructure as Code (IaC) is the practice of managing and provisioning computing infrastructure through machine-readable definition files, rather than physical hardware configuration or interactive configuration tools.
- Treats infrastructure configuration like application code.
- Enables version control, automation, and consistency.
- Supports declarative and imperative approaches.
Memory trick: IaC builds your cloud house from a blueprint, not by hand.
Helm for Application Packaging
Flip cardHelm serves as a package manager for Kubernetes, allowing developers to define, install, and upgrade even complex Kubernetes applications using 'charts' that bundle all necessary resources and configurations.
- Packages multiple Kubernetes resources (Deployment, Service, ConfigMap, etc.) into a single unit.
- Uses templates to allow customization via values.
- Simplifies repeatable deployments across different environments.
- Manages the lifecycle of applications on Kubernetes.
Memory trick: Helm is the 'all-in-one' builder for your Kubernetes apps.
Cloud-Provider Managed Registry
Flip cardA private container registry service offered and managed by a cloud provider (e.g., AWS ECR, GCR, ACR), deeply integrated with their platform's security, IAM, and networking services.
- Offers high availability and scalability without self-hosting overhead.
- Integrates with cloud IAM for granular access control.
- Often includes built-in vulnerability scanning and image signing.
- Optimized for use within the respective cloud ecosystem.
Memory trick: Cloud registries are the 'easy button' for secure image storage.
Continuous Deployment (CD)
Flip cardContinuous Deployment is a software release process that uses automated testing to validate if changes are ready for release, and then automatically deploys them to production.
- Automates the entire software release process.
- Requires robust automated testing.
- Eliminates manual intervention for production releases.
Memory trick: CD is when the code smoothly glides into production, no human needed.
Kubernetes Operator (Advanced)
Flip cardAn Operator is a software extension to Kubernetes that makes use of custom resources to manage applications and their components. Operators follow Kubernetes principles, notably the control loop, to automate Day-2 operations for complex, stateful applications.
- Automates Day-2 operations: upgrades, backups, scaling, recovery.
- Extends Kubernetes API with Custom Resource Definitions (CRDs).
- Continuously reconciles desired state with actual state.
- Essential for managing complex stateful workloads like databases or message queues.
Memory trick: Operators are the smart robots managing your complex apps.
Git-based Workflow
Flip cardA development practice where all code, configuration, and artifacts are managed and version-controlled within a Git repository, enabling collaboration, traceability, and automated processes.
- Serves as the single source of truth for all project assets.
- Facilitates collaboration through branching and merging.
- Provides a complete history of changes for auditing and rollback.
Memory trick: Git is the master scroll of all CI/CD changes.
Kubernetes API Server Audit Logs
Flip cardDetailed records generated by the Kubernetes API Server that track all requests made to the cluster, including who made the request, when, from where, and what action was performed, crucial for security and compliance.
- Records all authenticated requests to the API Server.
- Captures user, timestamp, source IP, and resource accessed.
- Essential for security monitoring, forensic analysis, and compliance.
- Configurable with different logging policies (None, Metadata, Request, RequestResponse).
Memory trick: API Server logs every action.
Linux Namespaces
Flip cardA feature of the Linux kernel that partitions kernel resources such that a process or set of processes has its own isolated view of the global system resources.
- Fundamental for container isolation.
- Each namespace type isolates a specific resource (PID, network, user, mount, UTS, IPC).
- Prevents processes from seeing or interacting with resources outside their namespace.
Memory trick: Namespaces create container worlds.
Shift-Left Security
Flip cardAn approach to security that integrates security practices and testing earlier in the software development lifecycle (SDLC), aiming to identify and mitigate vulnerabilities as early as possible.
- Moves security from the end to the beginning of the SDLC.
- Reduces cost and effort of fixing vulnerabilities.
- Includes practices like SAST, DAST, image scanning in CI/CD.
Memory trick: Shift Left means catching problems early, before they become big headaches.
Kubernetes Admission Controllers
Flip cardComponents that intercept requests to the Kubernetes API server after authentication and authorization, but before persistence to the object store, to modify or validate objects.
- Can be Mutating (modify objects) or Validating (reject objects).
- Webhooks allow external services to implement custom admission logic.
- Crucial for enforcing security policies like image validation, resource quotas, etc.
Memory trick: Admission controllers are the bouncers for your API.
Pod Security Admission (PSA)
Flip cardA built-in Kubernetes admission controller that enforces Pod Security Standards (PSS) on Pods, ensuring they adhere to predefined security policies.
- Enforces 'Privileged', 'Baseline', and 'Restricted' security standards.
- Can be configured at the namespace level to 'enforce', 'audit', or 'warn'.
- Directly addresses common Pod security misconfigurations.
Memory trick: PSA: Pod Security Admission enforces standards.
Service Mesh for Security
Flip cardA dedicated infrastructure layer that handles service-to-service communication, providing capabilities like traffic management, observability, and robust security features such as mutual TLS (mTLS) and fine-grained access control.
- Encrypts inter-service communication (mTLS).
- Enforces Layer 7 (application layer) policies.
- Provides centralized control over network security within the cluster.
Memory trick: Service Mesh secures every hop, from app to app.
Kubernetes API Server
Flip cardThe central component of the Kubernetes control plane that exposes the Kubernetes API. It is responsible for serving the API, authenticating requests, authorizing access, and validating data.
- Entry point for all cluster communication.
- Handles authentication and authorization.
- Validates and processes API requests.
Memory trick: The API Server is the brain and gatekeeper of the Kubernetes cluster.
Container Runtime Security
Flip cardThe practice of protecting containers during their execution phase by monitoring for suspicious activities, enforcing policies, and preventing unauthorized actions.
- Focuses on active threat detection.
- Monitors system calls, file access, network activity.
- Can enforce policies to stop malicious behavior.
Memory trick: Runtime security watches actively.
Shift-Left Security (SAST)
Flip cardA DevSecOps principle that advocates for integrating security practices and testing early in the software development lifecycle, such as using Static Application Security Testing (SAST) to analyze code for vulnerabilities.
- Identifies vulnerabilities in source code before execution.
- Helps developers fix issues early, reducing cost and effort.
- Part of a proactive security strategy in CI/CD.
Memory trick: Shift Left: Secure early, save headaches later.
Kubernetes Role-Based Access Control (RBAC)
Flip cardA method of regulating access to computer or network resources based on the roles of individual users within an enterprise. In Kubernetes, it uses Roles/ClusterRoles and RoleBindings/ClusterRoleBindings to grant permissions.
- Uses Roles to define permissions.
- Uses RoleBindings to grant Roles to subjects (users, service accounts).
- Enforces least privilege by granting only necessary access.
Memory trick: ServiceAccount is 'who', Role is 'what', RoleBinding is 'how they connect'.
Pod Security Standards (PSS)
Flip cardA set of predefined security policies in Kubernetes that define different levels of Pod isolation and restriction, from highly permissive to highly restrictive, to help users enforce security best practices.
- Three levels: Privileged, Baseline, Restricted.
- Enforced by Pod Security Admission (PSA).
- Helps prevent common security vulnerabilities in Pods.
Memory trick: Privileged is wide open, Baseline is good enough, Restricted is locked down tight.
Seccomp (Secure Computing mode)
Flip cardA Linux kernel feature that allows a process to restrict the system calls it can make, enabling the creation of whitelists or blacklists of allowed syscalls to reduce the attack surface.
- Filters system calls at the kernel level.
- Can be used to whitelist or blacklist syscalls.
- Reduces the attack surface of containers.
- Implemented via `seccomp` profiles in Kubernetes Pod Security Context.
Memory trick: Seccomp filters syscalls securely.
Validating Admission Webhooks
Flip cardA mechanism in Kubernetes that allows external HTTP callbacks to intercept and validate requests to the Kubernetes API server before persistence, enabling the enforcement of custom policies.
- Intercepts API requests (e.g., Pod creation).
- Can reject requests that violate defined policies.
- Used for custom, dynamic policy enforcement not covered by built-in controllers.
Memory trick: Webhooks validate to halt bad configurations.
External Secrets Management
Flip cardThe practice of storing and managing sensitive credentials outside of Kubernetes, using specialized secret management systems that then integrate with Kubernetes to inject secrets into applications at runtime.
- Centralizes secret storage.
- Integrates with enterprise secret stores.
- Avoids storing secrets in `etcd` or application code.
- Enhances security, auditability, and rotation.
Memory trick: External systems manage enterprise secrets, keeping Kubernetes clean.
Supply Chain Security (Configuration)
Flip cardExtending supply chain security principles to infrastructure and configuration management, ensuring that all changes to a system's desired state (e.g., Kubernetes manifests, policies) are version-controlled, reviewed, and traceable to prevent tampering or unauthorized modifications.
- Applies to infrastructure-as-code and configuration-as-code.
- Ensures integrity and authenticity of configuration files.
- Utilizes version control, peer review, and automated deployment.
- Mitigates risks from compromised configuration or malicious insiders.
Memory trick: GitOps secures the configuration chain.
Runtime Security Monitoring
Flip cardThe continuous observation and analysis of running applications and containers to detect and respond to anomalous or malicious activities, such as unauthorized process execution, file system changes, or network connections.
- Focuses on real-time threat detection.
- Monitors process activity, file access, network connections.
- Often uses behavioral baselining and rule-based detection.
Memory trick: Shift Left finds bugs early, Runtime catches the live action.
Workload Identity
Flip cardA mechanism that allows Kubernetes Service Accounts to assume cloud provider IAM roles, enabling pods to access cloud resources without storing long-lived, static credentials.
- Uses short-lived tokens for authentication.
- Integrates Kubernetes RBAC with cloud IAM.
- Reduces the risk of credential compromise.
- Simplifies credential management and rotation.
Memory trick: IAM roles for service accounts: cloud and K8s together make access right.
Kubernetes NetworkPolicy
Flip cardA Kubernetes resource that specifies how groups of Pods are allowed to communicate with each other and with other network endpoints, enabling network isolation and security.
- Defines rules for ingress (incoming) and egress (outgoing) traffic.
- Can target Pods based on labels.
- Requires a NetworkPolicy-aware CNI plugin to enforce.
Memory trick: NetworkPolicy is the traffic cop for your Pods, directing who can go where.
Secrets Encryption At Rest
Flip cardThe practice of encrypting sensitive data, such as Kubernetes Secrets, when it is stored on persistent storage (e.g., etcd), protecting it from unauthorized access even if the storage medium is compromised.
- Protects data on disk, not just in transit or memory.
- Essential for sensitive data like API keys, passwords, certificates.
- Kubernetes can use KMS providers for etcd encryption.
Memory trick: Manage secrets carefully: encrypt, rotate, restrict.
Pod SecurityContext
Flip cardA field in a Pod or Container specification that defines privilege and access control settings for a Pod or Container, such as user ID, group ID, and capabilities.
- Applies security settings at Pod or Container level.
- Controls user/group IDs, filesystem permissions, capabilities.
- Helps enforce least privilege and isolation.
Memory trick: SecurityContext is the container's rulebook for how it can run.
Trusted Platform Module (TPM)
Flip cardA secure cryptoprocessor on a computer's motherboard that stores cryptographic keys and provides hardware-level security functions, often used for secure boot and measured boot.
- Provides a hardware root of trust.
- Used for secure boot, measured boot, and disk encryption.
- Ensures integrity and authenticity of system components from boot.
- Crucial for host-level security in cloud-native environments.
Memory trick: TPM measures your boot to ensure trust at the root.
Image Signing and Verification
Flip cardA cloud-native security practice that involves digitally signing container images to confirm their origin and integrity, and then verifying these signatures before deployment.
- Ensures images come from trusted sources.
- Verifies images have not been tampered with.
- Crucial for supply chain security.
Memory trick: Signed images sail safely.
Kubernetes Secrets
Flip cardA Kubernetes object used to store and manage sensitive information, such as passwords, OAuth tokens, and SSH keys. Secrets are designed to be more secure than plain text in ConfigMaps or Pod definitions.
- Stores sensitive data.
- Can be mounted as files or exposed as environment variables.
- Encrypted at rest in etcd (if configured).
Memory trick: ConfigMaps are for maps, Secrets are for keys.
Principle of Least Privilege (PoLP)
Flip cardA security principle that requires every user, program, and process to be granted only the minimum set of permissions necessary to perform its function, and no more.
- Minimizes potential damage from compromises.
- Reduces the attack surface.
- A cornerstone of secure system design.
Memory trick: Least privilege means only the keys you need.
Principle of Least Privilege
Flip cardA security best practice that dictates that users, processes, and programs should be granted only the minimum necessary permissions to perform their authorized functions, and no more.
- Minimizes the potential impact of a compromise.
- Reduces the attack surface.
- Applies to user accounts, service accounts, and system components.
- Crucial for Role-Based Access Control (RBAC) in Kubernetes.
Memory trick: Least Privilege: only what's needed.
Secrets Encryption at Rest (etcd)
Flip cardThe practice of encrypting Kubernetes Secrets data when it is stored within the etcd key-value store, providing an additional layer of security beyond Base64 encoding.
- Protects secrets even if etcd data is exfiltrated.
- Configured via the Kubernetes API server's encryption configuration.
- Uses an EncryptionConfiguration API object to define providers.
Memory trick: Encrypt etcd data to keep secrets safe, even at rest.
Secrets Consumption Methods
Flip cardDifferent ways applications can access sensitive data stored in Kubernetes Secrets, each with varying security implications.
- Environment variables: easy to use, but prone to leakage via process introspection.
- Volume mounts (files): generally more secure, limits visibility to filesystem access.
- External secret managers: best practice for reducing Kubernetes' role in secret storage.
Memory trick: Files hide secrets better than loud variables.
Image Signing & Verification
Flip cardA security practice where container images are cryptographically signed by trusted entities (e.g., CI/CD pipelines) and then verified before deployment to ensure their authenticity and integrity.
- Uses digital signatures to prove image origin.
- Ensures images have not been tampered with.
- Prevents supply chain attacks via malicious images.
Memory trick: Sign your images, verify your trust, prevent the bust!
Kubernetes Role (RBAC)
Flip cardAn RBAC resource in Kubernetes that defines a set of permissions (verbs on resources) within a specific namespace, used to grant access to users, groups, or ServiceAccounts.
- Namespace-scoped: permissions apply only within a single namespace.
- Defines allowed actions (verbs) on specific resources (e.g., 'get', 'list', 'create' on 'pods').
- Bound to subjects using a RoleBinding.
Memory trick: Roles for namespaces, ClusterRoles for clusters.
Kubernetes Secret
Flip cardA Kubernetes object used to store and manage sensitive information, such as passwords, OAuth tokens, and SSH keys, securely within the cluster.
- Stores sensitive data in base64 encoded format (not encrypted by default at rest).
- Can be mounted as files in pods or exposed as environment variables.
- Access control is managed via RBAC.
Memory trick: Secrets secure your sensitive stuff.
Hardware-enforced Isolation (e.g., Kata, gVisor)
Flip cardAdvanced container runtimes that provide stronger workload isolation by running containers inside lightweight virtual machines (Kata Containers) or user-space kernels (gVisor), mitigating risks from compromised host kernels or container escapes.
- Increases isolation beyond standard Linux namespaces and cgroups.
- Protects against kernel exploits and container escapes.
- Offers a stronger security boundary between containers and the host.
- Useful for multi-tenant environments or highly sensitive workloads.
Memory trick: Kata and gVisor virtualize for safety.
GitOps Reconciliation
Flip cardThe process in GitOps where an automated agent continuously observes the desired state in Git and the actual state of the cluster, applying necessary changes to converge them.
- Core mechanism of GitOps.
- Performed by an in-cluster operator/agent (e.g., Flux, Argo CD).
- Ensures desired state (in Git) matches actual state (in cluster).
- Enables self-healing and automatic deployments.
Memory trick: GitOps uses an Octopus to pull and push, keeping states aligned.
Reconciliation (GitOps)
Flip cardIn GitOps, reconciliation is the automated process by which a system continuously observes its current state, compares it to a desired state defined in Git, and then takes action to make the current state match the desired state.
- Core mechanism for maintaining desired state in GitOps.
- Performed by an automated operator or controller.
- Ensures the deployed system always matches the Git repository.
Memory trick: Git's Desired State Is Reconciled Constantly.
Immutable Infrastructure
Flip cardAn approach where infrastructure components, once deployed, are never modified. Any update or change requires replacing the component with a new version.
- Treats infrastructure as code.
- Enhances consistency and reliability.
- Simplifies rollbacks and testing.
- Reduces configuration drift.
Memory trick: Immutable infrastructure means your servers are like unchangeable statues.
Canary Deployment
Flip cardA deployment strategy where a new version of an application or service is gradually rolled out to a small subset of users, allowing for real-world testing and monitoring before a full rollout.
- Minimizes risk by limiting exposure of new features.
- Allows for A/B testing and performance monitoring.
- Traffic is incrementally shifted to the new version.
- Easy rollback if issues are detected.
Memory trick: Canary catches catastrophes early.
Continuous Delivery (CD)
Flip cardA software development practice where code changes are automatically built, tested, and prepared for release to production, allowing for frequent, reliable releases at any time, typically with a manual approval gate for production deployment.
- Automates pipeline up to production readiness.
- Requires manual approval for production deployment.
- Enables frequent, reliable releases.
- Superset of Continuous Integration.
Memory trick: CI is building, CD is delivering to the door, and CDep is pushing it inside.
Path-based Routing
Flip cardA routing strategy used by API Gateways or load balancers that directs incoming requests to different backend services or endpoints based on the URL path of the request.
- Uses the URI path segment for routing decisions.
- Enables granular control over service exposure.
- Common in microservices architectures.
- Part of API Gateway functionality.
Memory trick: Path points the way for people.
Service Mesh Security
Flip cardThe ability of a service mesh to provide transparent encryption, authentication, and authorization for inter-service communication, often using mutual TLS (mTLS) and fine-grained access policies.
- Enforces mTLS for all service traffic.
- Provides granular authorization policies.
- Offloads security logic from application code.
- Enhances overall microservices security posture.
Memory trick: The Service Mesh is the security guard for all internal service conversations.
API Gateway
Flip cardA server that acts as a single entry point for a set of microservices. It handles requests by routing them to the appropriate service, and can also perform cross-cutting concerns like authentication, authorization, rate limiting, and caching.
- Single entry point for clients.
- Handles authentication and authorization.
- Routes requests to backend services.
- Can implement rate limiting, caching, logging, monitoring.
Memory trick: Gateway guards the path to your services.
GitOps Rollback
Flip cardThe process of reverting a cloud-native environment to a previous desired state by manipulating the Git repository that serves as the single source of truth, typically using Git revert or reset commands.
- Achieved by modifying the Git repository, not the live system directly.
- Leverages the GitOps agent's reconciliation loop.
- Provides auditability and traceability of rollbacks.
- Ensures consistency between Git and the operational environment.
Memory trick: Git's good for go-back.
Distributed Tracing
Flip cardAn observability technique used to monitor and profile requests as they traverse multiple services in a distributed system.
- Tracks individual request paths.
- Helps identify latency bottlenecks and errors.
- Uses trace IDs and span IDs.
- Key components: tracing agents, collectors, visualization tools.
Memory trick: Logs, Metrics, Traces: the three wise men of system insight.
Mutual TLS (mTLS) in Service Mesh
Flip cardA security feature in a service mesh that establishes encrypted and mutually authenticated connections between services, where both client and server verify each other's identity using TLS certificates.
- Provides strong identity for services.
- Encrypts all service-to-service traffic.
- Enforces authentication at the transport layer.
- Transparent to application code via sidecar proxies.
Memory trick: mTLS makes services mighty trustworthy.
Circuit Breaker Pattern
Flip cardA design pattern used in distributed systems to prevent cascading failures. It wraps calls to potentially failing services, monitoring for failures and 'tripping' the circuit to prevent further calls when a threshold is met.
- Prevents repeated calls to failing services.
- Protects upstream services from being overwhelmed.
- Allows downstream services time to recover.
- Has states: Closed, Open, Half-Open.
Memory trick: Circuit Breaker cuts connections when current crashes.
Kubernetes ConfigMap
Flip cardA Kubernetes API object used to store non-confidential configuration data in key-value pairs. It allows you to decouple configuration artifacts from image content to keep containerized applications portable.
- Stores non-confidential configuration data.
- Decouples config from application code.
- Injected into Pods as environment variables or files.
- Allows dynamic updates without rebuilding images.
Memory trick: ConfigMaps for non-secret data, Secrets for sensitive stuff.
Service Mesh
Flip cardA dedicated infrastructure layer that handles service-to-service communication, observability, security, and reliability in a microservices architecture.
- Manages inter-service communication.
- Provides traffic management (routing, retries).
- Enforces security policies (mTLS, access control).
- Enables observability (metrics, tracing, logging).
Memory trick: Mesh your services for seamless, secure, and smart talks.
Bulkhead Pattern
Flip cardA design pattern used in microservices to isolate failures by partitioning components into separate groups. If one group fails, the others continue to function.
- Prevents cascading failures.
- Isolates resources (e.g., thread pools, connection pools).
- Enhances fault tolerance and resilience.
Memory trick: Resilience patterns: Bulkhead isolates, Saga coordinates, Strangler migrates, Sidecar extends.
Service Mesh Mutual TLS (mTLS)
Flip cardA security feature within a service mesh that establishes encrypted and mutually authenticated communication channels between services. Both the client and server services verify each other's identities using TLS certificates.
- Encrypts all inter-service traffic.
- Requires both client and server to authenticate.
- Enhances security posture within the service mesh.
- Often managed transparently by the mesh's sidecar proxies.
Memory trick: Mesh security: mTLS for mutual trust, policies for control.