반응형

전체 글 68

프라이빗 레지스트리에서 이미지 받기(pulling image from private registry)

현상 kubectl create deployment whms –image=10.142.0.10:5000/whms:latest 수행시 ImagePullBackOff 발생하며 생성 안됨 원인 프라이빗 컨테이너 이미지 레지스트리에 대한 접근 권한 문제 summit@master:~$ kubectl describe pod whms-579dc8c57b-2xzrn -n default Name: whms-579dc8c57b-2xzrn Namespace: default .... Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 31s default-scheduler Successfully assigned default/w..

Kubernetes 설치

1. 설치 환경 AWS EC2 t2-medium 3대(master 1대, worker 2대) 선정 근거: 공식 문서에 최소 권장 사양이 CPU 2Core에 Memory 2GB이기 때문 참고 공식 문서 Installing kubeadm This page shows how to install the kubeadm toolbox. For information how to create a cluster with kubeadm once you have performed this installation process, see the Using kubeadm to Create a Cluster page. Before you begin A compatible Linux host. The Kubern kubernetes..

Terraform 작동 원리

1. Template 작성 provider "aws" { region = "ap-northeast-2" } 2. Terraform Init terraform init 명령어를 통해 지정한 Provider의 필요한 라이브러리를 다운로드 받고 해당 라이브러리는 .terraform 디렉토리에 위치함 3. S3 bucket 만들기 s3.tf resource "aws_s3_bucket" "test" { bucket = "tf-sftth-20210522" } terraform plan을 실행하면 작성된 s3.tf의 내용이 어떻게 만들어 질 것인지에 대한 내용이 출력 됨 4. terraform apply 정의한 리소스를 생성하는 작업 terraform apply 실행 이후에 terraform.tfstate가 생성되는..

IaC/Terraform 2021.05.22

AWS CLI 및 Terraform 설치

1. AWS CLI 설치 on Mac macOS에서 AWS CLI 버전 2 설치, 업데이트 및 제거 - AWS 명령줄 인터페이스 설치 관리자의 아무 위치에서나 Cmd+L을 눌러 설치에 대한 디버그 로그를 볼 수 있습니다. 이렇게 하면 로그를 필터링하고 저장할 수 있는 로그 창이 열립니다. 로그 파일도 /var/log/install.log에 자 docs.aws.amazon.com aws cli 동작 확인 2. AWS CLI 설치 on RHEL 8 설치 파일 다운로드 및 설치 # Linux x86 (64-bit) curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aw..

IaC/Terraform 2021.05.22
반응형