Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungRelease Notes for Safari Technology Preview 253(23.09.2026 um 23:46 Uhr)
Sichere ProgrammierungNode 20 is no longer available in GitHub Actions(23.09.2026 um 22:46 Uhr)
Sichere ProgrammierungMore ways to request and configure Copilot code reviews(23.09.2026 um 23:25 Uhr)
Sichere ProgrammierungApache Data Lakehouse Weekly: September 15 to 23, 2026(23.09.2026 um 23:14 Uhr)
Sichere ProgrammierungObservatorio de gastos públicos(23.09.2026 um 23:15 Uhr)
Sichere ProgrammierungRelease Notes for Safari Technology Preview 253(23.09.2026 um 23:46 Uhr)
Sichere ProgrammierungNode 20 is no longer available in GitHub Actions(23.09.2026 um 22:46 Uhr)
Sichere ProgrammierungMore ways to request and configure Copilot code reviews(23.09.2026 um 23:25 Uhr)
Sichere ProgrammierungApache Data Lakehouse Weekly: September 15 to 23, 2026(23.09.2026 um 23:14 Uhr)
Sichere ProgrammierungObservatorio de gastos públicos(23.09.2026 um 23:15 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Day 33: Deploying a Three-Tier App on Kubernetes: A Simple Guide

Imagine building a house. You need a strong foundation (database), sturdy walls (backend), and a beautiful façade (frontend). Deploying a multi-tier application on Kubernetes is similar! This guide simplifies deploying a three-tier …

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

Imagine building a house. You need a strong foundation (database), sturdy walls (backend), and a beautiful façade (frontend). Deploying a multi-tier application on Kubernetes is similar! This guide simplifies deploying a three-tier application (frontend, backend, database) on Kubernetes, making it accessible even for beginners. We'll use simple YAML files and straightforward commands.



Prerequisites:




  • A Kubernetes cluster (minikube, kind, or a cloud provider like Google Kubernetes Engine (GKE), Amazon Elastic Kubernetes Service (EKS), or Azure Kubernetes Service (AKS) are all good options).


  • kubectl configured to communicate with your cluster.

  • Docker (or a container registry) to build and store your application images. We'll assume you already have images named frontend-image:latest and backend-image:latest ready.



Steps:




  1. The Foundation: Database Deployment (MySQL)



We start with the database, our application's foundation. Create a file named mysql-deployment.yaml with the following content:




   apiVersion: apps/v1
kind: Deployment
metadata:
name: mysql
spec:
replicas: 1
selector:
matchLabels:
app: mysql
template:
metadata:
labels:
app: mysql
spec:
containers:
- name: mysql
image: mysql:5.7
ports:
- containerPort: 3306
envFrom:
- secretRef:
name: mysql-password # IMPORTANT: Create a secret for this password!






Important: Before applying this, create a Kubernetes Secret to store your MySQL root password securely:




   kubectl create secret generic mysql-password --from-literal=MYSQL_ROOT_PASSWORD=<your_strong_password>







  1. The Walls: Backend Deployment



Next, we build the backend. Create backend-deployment.yaml:




   apiVersion: apps/v1
kind: Deployment
metadata:
name: backend
spec:
replicas: 2
selector:
matchLabels:
app: backend
template:
metadata:
labels:
app: backend
spec:
containers:
- name: backend
image: backend-image:latest
ports:
- containerPort: 8080







  1. The Facade: Frontend Deployment



Finally, the frontend—the part your users see. Create frontend-deployment.yaml:




   apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
replicas: 2
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend
image: frontend-image:latest
ports:
- containerPort: 80







  1. Connecting the Pieces: Services



Now, let's connect everything. Create services.yaml:




   apiVersion: v1
kind: Service
metadata:
name: frontend-service
spec:
selector:
app: frontend
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer # Or NodePort depending on your setup

# Repeat for backend-service and mysql-service, adjusting ports accordingly.







  1. Deployment and Verification



Deploy your application:




   kubectl apply -f mysql-deployment.yaml
kubectl apply -f backend-deployment.yaml
kubectl apply -f frontend-deployment.yaml
kubectl apply -f services.yaml






Check the status of your deployments and services using kubectl get deployments and kubectl get services. You should see your services with external IPs (if using LoadBalancer).




  1. Testing



Access your application through the external IP of the frontend-service. Ensure all components communicate correctly.



Conclusion:



You've successfully deployed a multi-tier application on Kubernetes! This simplified guide provides a solid foundation. Remember to adjust configurations (like service type, resource limits, and persistent volumes for the database) based on your specific needs. Happy deploying!



Remember to replace placeholders like <your_strong_password> with your actual values. Also, consider adding sections on persistent storage for the database and more robust error handling for a production-ready deployment.

CTI Threat Relationship Graph2 Knoten / 1 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
IR-PLAYBOOK-RCE
HIGH
SOC Incident Playbook: Remote Code Execution (RCE) Defense
1-Click Detection Engineering: Sigma & YARA Rules
SOC Ready
title: Detect Exploitation - Day 33: Deploying a Three-Tier App on Kubernetes: A Simple Guide
id: a42abd77-f4fe-4740-b4b2-2c86bc64340c
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "Day 33: Deploying a Three-Tier" ascii wide
    condition:
        any of them
}
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Day 33: Deploying a Three-Tier App on Kubernetes: A Simple Guide

Thematisch verwandte Begriffe: Deploying, ThreeTier, Kubernetes, Simple · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

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-82405 | Klever-Go Account takeover: `kleverUpdateAccountPermission` authorizes o…
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 TTP ⏱️ 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