Debug Container

Запуск debug container’а Π² K8S

kubectl run tmp-shell --rm -i --tty --image nicolaka/netshoot -- /bin/bash
apiVersion: apps/v1
kind: Deployment
metadata:
  name: debug-deployment
  labels:
    app: debug
spec:
  replicas: 1
  selector:
    matchLabels:
      app: debug
  template:
    metadata:
      labels:
        app: debug
    spec:
      containers:
      - name: debug-container
        image: nicolaka/netshoot:latest
        command: [ "/bin/bash", "-c", "--" ]
        args: [ "while true; do sleep 3000; done;" ]
        resources:
          limits:
            cpu: "500m"       # Π›ΠΈΠΌΠΈΡ‚ CPU - 0.5 ядра
            memory: "512Mi"   # Π›ΠΈΠΌΠΈΡ‚ памяти - 512 ΠΌΠ΅Π³Π°Π±Π°ΠΉΡ‚
          requests:
            cpu: "100m"       # Π—Π°ΠΏΡ€Π°ΡˆΠΈΠ²Π°Π΅ΠΌΡ‹ΠΉ CPU - 0.1 ядра
            memory: "128Mi"   # Π—Π°ΠΏΡ€Π°ΡˆΠΈΠ²Π°Π΅ΠΌΠ°Ρ ΠΏΠ°ΠΌΡΡ‚ΡŒ - 128 ΠΌΠ΅Π³Π°Π±Π°ΠΉΡ‚
        # ΠŸΡ€ΠΈΠΌΠ΅Ρ‡Π°Π½ΠΈΠ΅: значСния ΠΌΠΎΠ³ΡƒΡ‚ Π±Ρ‹Ρ‚ΡŒ скоррСктированы Π² зависимости ΠΎΡ‚ Π²Π°ΡˆΠΈΡ… потрСбностСй ΠΈ ΠΏΠΎΠ»ΠΈΡ‚ΠΈΠΊ кластСра.