Zum Hauptinhalt springen
YouTube Security VideosAnonymous Official: Something Strange Is Happening Right Now in America(03.10.2026 um 21:30 Uhr)
•
Sichere ProgrammierungAzure ExpressRoute Gateway(03.10.2026 um 21:39 Uhr)
••
AI & KI NachrichtenThings I wish my Dot could do(03.10.2026 um 21:45 Uhr)
••
Sichere ProgrammierungI Lost Access to My Email. Here's How It Changed My Career Path(03.10.2026 um 21:45 Uhr)
•
Sichere ProgrammierungHow a race condition stopped UK air traffic control for six hours(03.10.2026 um 21:46 Uhr)
•
Sichere ProgrammierungBlender for Developers: 15 Concepts Explained Simply(03.10.2026 um 21:49 Uhr)
••
Sichere ProgrammierungEcco the Dolphin: The Genesis Game That Turned Sonar Into a Superpower(03.10.2026 um 21:50 Uhr)
•
YouTube Security VideosAnonymous Official: Something Strange Is Happening Right Now in America(03.10.2026 um 21:30 Uhr)
•
Sichere ProgrammierungAzure ExpressRoute Gateway(03.10.2026 um 21:39 Uhr)
••
AI & KI NachrichtenThings I wish my Dot could do(03.10.2026 um 21:45 Uhr)
••
Sichere ProgrammierungI Lost Access to My Email. Here's How It Changed My Career Path(03.10.2026 um 21:45 Uhr)
•
Sichere ProgrammierungHow a race condition stopped UK air traffic control for six hours(03.10.2026 um 21:46 Uhr)
•
Sichere ProgrammierungBlender for Developers: 15 Concepts Explained Simply(03.10.2026 um 21:49 Uhr)
••
Sichere ProgrammierungEcco the Dolphin: The Genesis Game That Turned Sonar Into a Superpower(03.10.2026 um 21:50 Uhr)
•
Intelligence View
⚡ tsecurity.de Intelligence

DevPill #3: How to deploy a container to your Kubernetes cluster (GKE)

Specify the deployment.yaml file. Example: apiVersion: apps/v1 kind: Deployment metadata: name: api-gateway spec: replicas: 1 selector: matchLabels: app:…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!


  1. Specify the deployment.yaml file. Example:


    apiVersion: apps/v1
    kind: Deployment
    metadata:
    name: api-gateway
    spec:
    replicas: 1
    selector:
    matchLabels:
    app: api-gateway
    template:
    metadata:
    labels:
    app: api-gateway
    spec:
    containers:
    - name: api-gateway
    image: us-central1-docker.pkg.dev/<project-id>/<repository-name>/api-gateway
    ports:
    - containerPort: 8081
    resources:
    requests:
    memory: "128Mi"
    cpu: "125m"
    limits:
    memory: "128Mi"
    cpu: "125m"
    env:
    # Accessing an env variable from the app-config config map
    - name: GATEWAY_HTTP_ADDR
    valueFrom:
    configMapKeyRef:
    key: GATEWAY_HTTP_ADDR
    name: app-config
    - name: JAEGER_ENDPOINT
    valueFrom:
    configMapKeyRef:
    key: JAEGER_ENDPOINT
    name: app-config







apiVersion: v1

kind: Service

metadata:

name: api-gateway

spec:

type: LoadBalancer

ports:

- port: 8081

targetPort: 8081

selector:

app: api-gateway

```




  1. Access Google Cloud Console and create your GKE cluster (this might take a while)


  2. Execute the following command:

    gcloud container clusters get-credentials <cluster-id> --region us-central-1 --project <project-id>



  3. Upload the manifests. Example:


    kubectl apply -f infra/production/k8s/app-config.yaml
    kubectl apply -f infra/production/k8s/secrets.yaml

    kubectl apply -f infra/production/k8s/api-gateway-deployment.yaml





If you want to check the status of the deployments try the following commands:



kubectl get deployments

kubectl get pods

🔍 CTI & Forensik

Cyber Threat Intelligence & Forensik

ATT&CK-Navigator · IoC-Radar · Exploit-Belege
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
2 Knoten · 1 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten DevPill #3: How to deploy a container to your Kubernetes cluster (GKE)

Thematisch verwandte Begriffe: DevPill, deploy, container, your · 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 ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Nächster Beitrag