전체 글 썸네일형 리스트형 [kubernetes] 커든 및 드레인 커든 및 드레인 커든(cordon) kubectl get nodes $ kubectl get nodes NAME STATUS ROLES AGE VERSION ip-192-168-27-248.ap-northeast-2.compute.internal Ready 17h v1.22.12-eks-ba74326 ip-192-168-42-8.ap-northeast-2.compute.internal Ready 17h v1.22.12-eks-ba74326 ip-192-168-67-156.ap-northeast-2.compute.internal Ready 17h v1.22.12-eks-ba74326 kubectl cordon ip-192-168-67-156.ap-northeast-2.compute.internal $ ku.. 더보기 [kubernetes] 애플리케이션 배포 전략 애플리케이션 배포 전략 Recreate Rolling-Update(Ramped) Blue/Green Canary A/B testing Shadow kubectl explain deploy.spec.strategy $ kubectl explain deploy.spec.strategy KIND: Deployment VERSION: apps/v1 RESOURCE: strategy DESCRIPTION: The deployment strategy to use to replace existing pods with new ones. DeploymentStrategy describes how to replace existing pods with new ones. FIELDS: rollingUpdate Rolling .. 더보기 [kubernetes] kubectl create configmap 명령 kubectl create configmap 명령 Create a config map based on a file, directory, or specified literal value. 사용법 Examples: # Create a new config map named my-config based on folder bar kubectl create configmap my-config --from-file=path/to/bar # Create a new config map named my-config with specified keys instead of file basenames on disk kubectl create configmap my-config --from-file=key1=/path/to/ba.. 더보기 [kubernetes] kubectl create secret 명령 kubectl create secret 명령 Create a secret using specified subcommand. 사용법 Usage: kubectl create secret [flags] [options] Use "kubectl --help" for more information about a given command. Use "kubectl options" for a list of global command-line options (applies to all commands). yaml secret 생성 username 및 password base64로 인코딩 $ echo iacadmin | base64 aWFjYWRtaW4K $ echo MeH8KNZr71 | base64 TWVIOEtOWn.. 더보기 [kubernetes] kubectl run 명령 kubectl run 명령 Create and run a particular image in a pod. 사용법 Examples: # Start a nginx pod kubectl run nginx --image=nginx # Start a hazelcast pod and let the container expose port 5701 kubectl run hazelcast --image=hazelcast/hazelcast --port=5701 # Start a hazelcast pod and set environment variables "DNS_DOMAIN=cluster" and "POD_NAMESPACE=default" in the container kubectl run hazelcast --imag.. 더보기 [kubernetes] kubectl port-forward 명령 kubectl port-forward 명령 Forward one or more local ports to a pod. 사용법 Examples: # Listen on ports 5000 and 6000 locally, forwarding data to/from ports 5000 and 6000 in the pod kubectl port-forward pod/mypod 5000 6000 # Listen on ports 5000 and 6000 locally, forwarding data to/from ports 5000 and 6000 in a pod selected by the deployment kubectl port-forward deployment/mydeployment 5000 6000 # Lis.. 더보기 [kubernetes] kubectl exec 명령 kubectl exec 명령 Execute a command in a container. 사용법 Examples: # Get output from running the 'date' command from pod mypod, using the first container by default kubectl exec mypod -- date # Get output from running the 'date' command in ruby-container from pod mypod kubectl exec mypod -c ruby-container -- date # Switch to raw terminal mode; sends stdin to 'bash' in ruby-container from pod mypod .. 더보기 [kubernetes] kubectl delete 명령 kubectl delete 명령 Delete resources by file names, stdin, resources and names, or by resources and label selector. 사용법 Examples: # Delete a pod using the type and name specified in pod.json kubectl delete -f ./pod.json # Delete resources from a directory containing kustomization.yaml - e.g. dir/kustomization.yaml kubectl delete -k dir # Delete a pod based on the type and name in the JSON passed i.. 더보기 이전 1 ··· 122 123 124 125 126 127 128 ··· 175 다음