본문 바로가기

728x90

전체 글

[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.. 더보기
[kubernetes] minikube addon 설치 minikube addon 설치 minikube addons 사용법 $ minikube --help minikube provisions and manages local Kubernetes clusters optimized for development workflows. Basic Commands: start Starts a local Kubernetes cluster status Gets the status of a local Kubernetes cluster stop Stops a running local Kubernetes cluster delete Deletes a local Kubernetes cluster dashboard Access the Kubernetes dashboard running .. 더보기
[Mac] vscode 한 번에 여러 개 선택하여 수정하는 법 vscode 한 번에 여러 개 선택하여 수정하는 법 블록 지정 -> Ctrl + D Ctrl + Shift + L -> 지정 블록 수정 [mac] command + D command + shift + L [windows] Ctrl + D Ctrl + Shift + L 더보기

728x90