Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
iconfalse
Code Block
kubectl run nettools --image=jrecord/nettools -- sleep 48000
Code Block
apiVersion: v1
kind: Pod
metadata:
  name: nettools
  namespace: default
spec:
  containers:
  - name: nettools
    image: jrecord/nettools:latest
    command:
      - sleep
      - "48000"
    imagePullPolicy: IfNotPresent
  restartPolicy: Never

모든 Pod(Deploy)의 ResourceQuate설정 정보를 보고 싶어요.

Code Block
kubectl get deploy -o=custom-columns="Name:.metadata.name,CPU-Limit:.spec.template.spec.containers[*].resources.limits.cpu,Memory-Limit:.spec.template.spec.containers[*].resources.limits.memory"

Name                 CPU-Limit   Memory-Limit
admin-auth           500m        2Gi
admin-batch          1           2Gi
admin-bff            500m        2Gi
admin-gw             500m        2Gi
admin-web            500m        2Gi