개발을 하다보면 개발용으로 minikube를 사용하고 실제 test 혹은 QA 용, production용으로 kubernetes를 다르게 두는 경우가 있다. 이와 같은 경우 어떤 방식으로 kubectl의 config를 설정하면 좋을지에 대하여 기술해본다. 우선 kubectl을 설치한다. https://kubernetes.io/docs/tasks/tools/install-kubectl/ 이후 minikube를 설치하고 production 환경의 kubernetes 정보를 확인한다. kubectl 및 minikube를 처음 설치한 후에는 아래와 같이 config 정보를 확인해볼 수 있다. PS C:\Users\Jacob> kubectl.exe config view apiVersion: v1 clusters:..

GitLab에서는 Kubernetes Cluster를 손쉽게 추가하여 deploy 하여 사용할 수 있다. 간단히 k3s를 내부에 설치하고 이를 gitlab에 추가하는 과정을 알아보자. Kubernetes(K3s) 설치 우선 간단한 k3s의 설치방법에 대하여 알아보자. k3s의 경우 이름이 8->3 로 되어 있는것에서 유추할수 있듯이 가볍고 설치도 아래의 명령와 같이 간단한 방법으로 설치할 수 있다. 다만 아래 내용을 우선 확인하고 설치를 진행하면 에러없이 설치가 쉽게 이루어진다. selinux permissive로 변환 path 확인(kubectl이 /usr/local/bin/내에 설치되어 path 지정이 안되어있을 경우 k3s의 설치여부를 확인하기가 어렵다.) 아래 링크를 따라 install file을..

Docker image 생성 및 deployment 생성 아래와 같이 Dockerfile을 생성하고 Build하여 image로 생성한다. jacob@jacob-laptop:~/workspaces/hellopy$ cat Dockerfile FROM python:3.7.4 EXPOSE 8000 CMD python -m SimpleHTTPServer jacob@jacob-laptop:~/workspaces/hellopy$ docker build -t hello-py:v1 . Sending build context to Docker daemon 2.048kB Step 1/3 : FROM python:3.7.4 ---> 02d2bb146b3b Step 2/3 : EXPOSE 8000 ---> Using cache..
실행예제 powershell 실행을 위해서는 set-executionpolicy 를 변경해야 한다. default로 restricted로 되어 있어 실행이 불가하다. 아래명령을 수행하여 powershell script를 수행할 수 있는 환경으로 변경한다. set-executionpolicy unrestricted https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-6 write-host를 통한 메세지 출력 $testval = 1 write-host("testval : {0}" -f $testval) https://devblogs.microsoft.c..
open 된 proxy 혹은 내부에 제공되는 proxy 서버의 사용을 다음과 같이 수행할수 있다. Linux 환경이라면 아래와 같은 환경변수를 추가하면 된다. export http_proxy="http://USER:PASSWORD@PROXY_SERVER:PORT" export https_proxy="https://USER:PASSWORD@PROXY_SERVER:PORT" export ftp_proxy="http://USER:PASSWORD@PROXY_SERVER:PORT" https://www.shellhacks.com/linux-proxy-server-settings-set-proxy-command-line/ 실제 cURL을 통해 연결시도를 해보면 다음과 같은 결과를 확인할 수 있다. root@ubun..
CentOS7에서 Docker 설치 및 실행법 CentOS7에서 Docker 설치 및 실행을 하는 방법을 간단히 기술한다. [root@jenkins centos]# cat /etc/centos-release CentOS Linux release 7.6.1810 (Core)위와 같은 환경에서 설치를 진행하였다. [root@jenkins centos]# yum install docker Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.mirror.moack.net * extras: centos.mirror.moack.net * updates: centos.mirror.moack.net Resolvin..
VirtualBox에서 VM을 시작한후 특정 시점(정확한 시점확인이 되지는 않았지만 network interface add 하는 시점으로 예상된다.)에 hang이 걸리는 현상이 발생되었다. Google 검색을 통해 확인해본 결과 Hyper-V와 호환성 문제가 있는듯하다. 문제 상황이 발생되었던 시점이 Hyper-V 를 "기능 켜기/끄기"에서 enable 하고 재부팅한 시점부터 발생되었었다. Hyper-V 기능을 끈후 다시 재부팅하여 현상이 없어짐을 확인하였다. https://superuser.com/questions/1145011/is-virtualbox-incompatible-with-hyper-v-in-windows-10 Is Virtualbox incompatible with Hyper-V in W..

Virtualbox 를 ubuntu 상에 설치후 vagrant up을 통해 provision을 수행시 아래와 같이 에러가 발생되는 경우가 있었다. jacob@jacob-laptop:~/workspaces/vagrant-jenkins$ vagrant up --provider=virtualbox The provider 'virtualbox' that was requested to back the machine 'default' is reporting that it isn't usable on this system. The reason is shown below: VirtualBox is complaining that the installation is incomplete. Please run `VBoxMan..
- Total
- Today
- Yesterday
- aquasecurity
- openstacksdk
- minikube
- nginx-ingress
- mattermost
- GateKeeper
- macvlan
- ceph
- kubernetes
- Terraform
- crashloopbackoff
- DevSecOps
- vmware openstack
- ansible
- kubernetes install
- boundary ssh
- Helm Chart
- K3S
- Jenkinsfile
- azure policy
- jenkins
- socket
- hashicorp boundary
- wsl2
- OpenStack
- kata container
- minio
- open policy agent
- openstack backup
- metallb
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |