You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

CronJob을 수동 실행 하고 싶어요.

kubectl create job --from=cronjob/kubernetes-cron-job manual-cron-job

Secret Password를 인코딩 할래요.

echo -n '{PASSWORD}' | base64

Network 점검 할 수 있는 Pod가 필요해요.

kubectl run nettools --image=jrecord/nettools -- sleep 48000
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(Deployment)의 ResourceQuate설정 정보를 보고 싶어요.

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



  • No labels