Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosfreeCodeCamp.org: TimescaleDB Course – PostgreSQL for Time-Series Data(23.09.2026 um 12:30 Uhr)
Windows Tipps & SecurityAndroid 17: Rollout auf Samsung-Galaxy-Smartphones verzögert sich(23.09.2026 um 11:42 Uhr)
Unix & Linux ServerUSN-8733-2: Gzip vulnerabilities(22.09.2026 um 18:04 Uhr)
Sichere ProgrammierungHow to Build Custom PowerPoint Add-Ins for Enterprise Teams(23.09.2026 um 11:25 Uhr)
Sichere ProgrammierungSearch Google Jobs in Real-Time with Go and SerpApi 🚀(23.09.2026 um 12:13 Uhr)
Sichere ProgrammierungA Psychological State is a Coefficient Vector(23.09.2026 um 12:16 Uhr)
YouTube Security VideosfreeCodeCamp.org: TimescaleDB Course – PostgreSQL for Time-Series Data(23.09.2026 um 12:30 Uhr)
Windows Tipps & SecurityAndroid 17: Rollout auf Samsung-Galaxy-Smartphones verzögert sich(23.09.2026 um 11:42 Uhr)
Unix & Linux ServerUSN-8733-2: Gzip vulnerabilities(22.09.2026 um 18:04 Uhr)
Sichere ProgrammierungHow to Build Custom PowerPoint Add-Ins for Enterprise Teams(23.09.2026 um 11:25 Uhr)
Sichere ProgrammierungSearch Google Jobs in Real-Time with Go and SerpApi 🚀(23.09.2026 um 12:13 Uhr)
Sichere ProgrammierungA Psychological State is a Coefficient Vector(23.09.2026 um 12:16 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

100 Days of DevOps: Day 50

Creating a Kubernetes Pod with Resource Limits This article outlines the steps to create a Kubernetes pod named httpd-pod with a container named httpd-container that has specific resource requests and limits for CPU and memory. …

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




Creating a Kubernetes Pod with Resource Limits



This article outlines the steps to create a Kubernetes pod named httpd-pod with a container named httpd-container that has specific resource requests and limits for CPU and memory.






Step 1: Create the Pod Configuration File



First, you need to create a YAML file that defines the pod's specification, including its resource constraints. Use a text editor like vi to create a file named pod-resource-limits.yaml.




thor@jumphost ~$ vi pod-resource-limits.yaml






Paste the following content into the file:




apiVersion: v1
kind: Pod
metadata:
name: httpd-pod
spec:
containers:
- name: httpd-container
image: httpd:latest
resources:
requests:
memory: "15Mi"
cpu: "100m"
limits:
memory: "20Mi"
cpu: "100m"








  • requests: This specifies the minimum amount of resources the container needs. The Kubernetes scheduler uses these values to decide which node is suitable to run the pod.


  • limits: This sets the maximum amount of resources the container can consume. If the container exceeds the memory limit, it will be terminated. If it exceeds the CPU limit, its processing will be throttled.






Step 2: Apply the Configuration



Use the kubectl apply command to apply the YAML file to your Kubernetes cluster. This command reads the configuration and creates the pod.




thor@jumphost ~$ kubectl apply -f pod-resource-limits.yaml
pod/httpd-pod created






The output pod/httpd-pod created confirms that the pod has been successfully submitted to the cluster.






Step 3: Verify the Pod's Status



Finally, verify that the pod is running correctly by using the kubectl get pods command. This command shows the current state of pods in your cluster.




thor@jumphost ~$ kubectl get pods httpd-pod
NAME READY STATUS RESTARTS AGE
httpd-pod 1/1 Running 0 72s






The output shows that the pod's status is Running and the READY state is 1/1, indicating that its container is ready and operational. This confirms the successful completion of the task.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten 100 Days of DevOps: Day 50

Thematisch verwandte Begriffe: Days, DevOps · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-19438 | Improper Limitation of a Pathname to a Restricted Directory ('Path Trave…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick