본문 바로가기

DevOps/DockerKubernetes21

kubectl Tips ▶ Imperative Commands "Declarative" - Define objects using data strucutre such as YAML or JSON $ kubectl create deployment my-deployment --image=nginx "Imperative" - Define ojbects using kubectl commands and flags. Some people find imperative commands faster. Experiment and see what works for you! ▶ Quick Sample YAML - Use the --dry-run flag to run an imperative command without creating an objec.. 2022. 9. 16.
kubectl 명령어 What is kubectl? kubectl is a command line tool that allows you to interact with Kubernetes. Kubectl uses the Kubernetes API to communicate with the cluster and carry out your commands. "You can use kubectl to deploy applications, inspect and manage cluster resources, and view logs." ▶ kubectl get Use kubectl get to list objects in the kubernetes cluster. $ kubectl get -o --sort-by --selecto -o .. 2022. 9. 15.
Backup and Restore etcd etcd is the backend data storage solution for your kubernetes cluster. As such, all your kubernetes objects, applications, and configurations are stored in etcd. Therefore, you will likely want to be able to backup your cluster's data by backing up etcd. Backup etcd You can backup etcd data using the etcd command line tool, etcdctl. Use the etcdctl snapshot save command to backup the data. $ ETC.. 2022. 9. 15.
YAML 공부하기 A YAML file is used to represent data. This case configuration data here is a quick comparison of sample data in three different formats. XML -> JSON -> YAML If you tacke the data in its simplest form such as key value pair. This is how you would define it in YAML - Key and Value Array/Lists Dictionary/Map #으로 시작하면 주석문 쿠버네티스에서 YAML 파일은 4개의 레벨을 가진다. # Pod-Definition.yml apiVersion: kind: metadata.. 2022. 9. 4.
Pod As We discussed before with Kubernetes, our ultimate aim is to deploy our application in the form of containers on a set of machines that are configured as worker nodes in a cluster. However, kubernetes does not deploy containers directly on the worker nodes. The containers are encapsulated into a Kubernetes object known as pods. A Pod is a single instance of an application. A pod is the smalles.. 2022. 9. 4.
우분투 리눅스에서 도커 설치 1. Update the apt package index and install packages to allow apt to use a repository over HTTPS: vagrant@ubuntu-focal:~$ sudo apt-get update Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Get:4 http://archive.ubuntu.com/ubuntu focal-backports .. 2022. 9. 4.
쿠버네티스 학습을 위한 실습 환경의 구축 - minikube 쿠버네티스를 구축하는 방법은 여러가지가 있다. 내 컴퓨터에 직접 설치하거나, 가상머신을 만들어서 설치하는 - minikube, MicroK8s 등의 방법이 있다. The Kubeadmin tool is used to bootstrap and manage production grade Kubernetes cluster. 미니큐브 Minikube bundles, all of these different components into a single image, providing us a preconfigured single node, kubernetes cluster, so we can get started in a matter of minutes. The whole bundle is packaged into.. 2022. 9. 4.