Git Product home page Git Product logo

gitops-tutorial's Introduction

Gitops Tutorial

쿠버네티스코리아 커뮤니티 기술 세미나 2023/11/29

Github action 과 ArgoCD 를 활용해서 로컬 쿠버네티스 클러스터에 CICD 구현해보기

레포 구조

디렉토리 구조

.
├── LICENSE
├── README.md
├── cd
│   └── gitops-tutorial.yaml
├── devops
│   ├── alpine-tools
│   │   ├── Dockerfile
│   │   ├── README.md
│   │   └── debug-pod.yaml
│   ├── argocd
│   │   └── README.md
│   └── kind-cluster
│       └── kind-cluster.yaml
└── img
    └── docker-desktop-k8s.png

7 directories, 9 files

로컬 쿠버네티스 클러스터 설정

KIND install

brew install kind

Create Kind Cluster

cd kind-cluster

kind create cluster --config=./kind-cluster.yaml

# verify cluster
kind get clusters

# delete cluster
kind delete clusters <cluster-name>

도커 데스크탑

docker-desktop-k8s

https://www.docker.com/blog/how-kubernetes-works-under-the-hood-with-docker-desktop/

ArgoCD 설치

kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

# turn off tls
kubectl patch configmap argocd-cm -n argocd --patch '{"data": {"server.insecure": "true"}}'

# restart argocd-server
kubectl rollout restart deploy argocd-server -n argocd

# open http://localhost:8080
kubectl port-forward svc/argocd-server -n argocd 8080:80

# get admin password
argocd admin initial-password -n argocd

kubectl -n argocd get secret argocd-initial-admin-secret \
  -o jsonpath="{.data.password}" | base64 -d; echo

gitops-tutorial's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.