본문 바로가기
강의_건강_취미/자격증

[CKA] 빠른 작업을 위한 시험 환경 설정

by 웃는 얼굴, 친절한 말, 따뜻한 마음 2023. 7. 25.
728x90

https://kubernetes.io/docs/reference/kubectl/cheatsheet/

kubectl Cheat Sheet

This page contains a list of commonly used kubectl commands and flags. Note: These instructions are for Kubernetes v1.27. To check the version, use the kubectl version command. Kubectl autocomplete BASH source <(kubectl completion bash) # set up autocomple

kubernetes.io

 

# alias설정 

alias k=kubectl
complete -o default -F __start_kubectl k

alias kn='kubectl config set-context --current --namespace'

 

# VIM 설정

# ~/.vimrc

set tabstop=2
set expandtab
set shiftwidth=2

 

# 환경변수 설정

export do="--dry-run=client -o yaml"
export now="--force --grace-period 0"

 

반응형