인프라/Kubernetes
-
[Kubernetes] SVN Pod 생성인프라/Kubernetes 2020. 12. 7. 12:11
Docker Hub hub.docker.com garethflowers/svn-server의 Dockfile을 이용해서 svn을 띄우자 # vi Dockerfile FROM alpine:3.12.0 CMD ["/usr/bin/svnserve", "-d", "--foreground", "-r", "/var/opt/svn"] EXPOSE 3690 HEALTHCHECK CMD netstat -ln | grep 3690 || exit 1 VOLUME ["/var/opt/svn"] WORKDIR /var/opt/svn RUN apk add --no-cache \ subversion==1.13.0-r2 \ wget==1.20.3-r1 여기서 알아야할 점은 /usr/bin/svnserve서버를 --foreground..
-
[Kubernetes] Jenkins Pod 설치인프라/Kubernetes 2020. 12. 2. 16:01
jenkins - Docker Hub DEPRECATION NOTICE This image has been deprecated in favor of the jenkins/jenkins:lts image provided and maintained by Jenkins Community as part of project's release process. The images found here will receive no further updates after LTS 2.60.x. Please ad hub.docker.com # vi jenkins.yaml apiVersion: v1 kind: Pod metadata: name: jenkins namespace: infra labels: app: jenkins ..
-
[Kubernetes] private docker registry Pod 설치인프라/Kubernetes 2020. 12. 2. 10:32
Docker Registry Configuring a registry docs.docker.com # vi docker-registry.yaml apiVersion: v1 kind: Pod metadata: name: docker-registry namespace: infra labels: app: docker-registry #label spec: #nodeName: kube-node2 #node를 지정해도되고 안해도됨 #nodeSelector: // node labels를 지정해도 됨 #kubernetes.io/hostname: kube-node2 containers: - name: docker-registry image: registry:2.7.1 ports: - containerPort: 5000..
-
[Kubernetes] Visual하게 DashBoard를 설치, 접속해보자인프라/Kubernetes 2020. 11. 26. 16:37
kubernetes/dashboard General-purpose web UI for Kubernetes clusters. Contribute to kubernetes/dashboard development by creating an account on GitHub. github.com # kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.4/aio/deploy/recommended.yaml namespace/kubernetes-dashboard created serviceaccount/kubernetes-dashboard created service/kubernetes-dashboard created secret/k..
-
[Kubernetes] 설치 명령어 모음인프라/Kubernetes 2020. 11. 26. 11:11
Docker 설치 sudo yum install -y yum-utils device-mapper-persistent-data lvm2 sudo yum-config-manager --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo sudo yum update -y && sudo yum install -y \ containerd.io-1.2.13 \ docker-ce-19.03.11 \ docker-ce-cli-19.03.11 sudo mkdir /etc/docker cat
-
[Kubernetes] Horizontal Pod Autoscaler인프라/Kubernetes 2020. 11. 25. 15:56
Horizontal Pod Autoscaler 연습 Horizontal Pod Autoscaler는 CPU 사용량(또는 베타 지원의 다른 애플리케이션 지원 메트릭)을 관찰하여 레플리케이션 컨트롤러, 디플로이먼트, 레플리카셋(ReplicaSet) 또는 스테이트풀셋(StatefulSet)의 파드 kubernetes.io 이번시간은 AutoScaling 방법 중 하나인 HPA에 대해 알아볼 것이다. HPA는 CPU 사용량 (다른자원도 beta지원)을 기반으로 replication controller, deployemt, replica set or stateful set 등으로 Pod의 갯수를 auto scaling하는 기능이다. 시작하기전에 1.2v 이상의 쿠버네티스 클러스터, kubectl이 필요하고 자원을..
-
[Kubernetes] 쿠버네티스 설치하기 (7) - Performing a Rolling Update인프라/Kubernetes 2020. 11. 23. 14:28
Performing a Rolling Update Objectives Perform a rolling update using kubectl. Updating an application Users expect applications to be available all the time and developers are expected to deploy new versions of them several times a day. In Kubernetes this is done with rolling update kubernetes.io Objectives Perform a rolling update using kubectl. 오늘의 목표 kubectl을 통해 rolling update를 해보자! rolling ..
-
[Kubernetes] 쿠버네티스 설치하기 (6) - Running Multiple Instances of Your App인프라/Kubernetes 2020. 11. 20. 18:34
Running Multiple Instances of Your App Objectives Scale an app using kubectl. Scaling an application In the previous modules we created a Deployment, and then exposed it publicly via a Service. The Deployment created only one Pod for running our application. When traffic increases, we will need kubernetes.io Running Multiple Instances of Your App Objectives Scale an app using kubectl. Scaling an..