Giter Site home page Giter Site logo

maxid / kube-stub-cluster Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wenerme/kube-stub-cluster

0.0 0.0 0.0 453 KB

Stub for Kubernetes Cluster Deployment by using ArgoCD/Helm/Kustomize

License: MIT License

Shell 3.57% JavaScript 1.79% Makefile 41.89% Smarty 52.75%

kube-stub-cluster's Introduction

Kubernetes 集群部署模板

方便学习参考和粘贴复制的集群部署模板。

Why

  • 尽量的复用部署过的项目校验
  • 尽量的复用写过的 charts 和 values
  • 快速开始使用

特点

  • 使用国内容器镜像 - 部署快稳定
  • 使用国内 Charts - 方便使用,稳定,快
    • Charts 来源 - wenerme/charts
    • 收集了所需应用的官方 chart 并通过国内 CDN 提供
  • ArgoCD 驱动部署
  • 应用通过 helm + kustomize 部署

部分 docker.io 镜像尚未映射

如何修改为自行使用

  • 粘贴复制 stub-cluster 为 <你的名字>-cluster
  • 项目内搜索 example.com 修改为你的域名
  • 项目内搜索 stub - 按需修改

部署步骤

  1. /argocd
  • 首先部署 argocd - 其他内容通过 ArgoCD 来部署
  • make apply
  1. /stub-cluster/stub-cluster
  • 配置 git 仓库
  • 部署 argocd 的 stub-cluster 应用 - 部署 stub-cluster
  1. 其他内容将按照 stub-cluster 定义的进行部署

部署技巧

  • 大部分应用下包含 Makefile
    • 包含升级、验证 等 - 可直接在命令行或者 IDE 操作
# 代理集群网络 - 假设集群是 10.10
sshuttle -r kube-m1 10.10.0.0/16

# 转发 argocd 到本地观察状态
kubectl -n argocd port-forward svc/argocd-server 8443:https

# ArgoCD
# 账号 admin
# 密码
kubectl get pods -n argocd -l app.kubernetes.io/name=argocd-server -o name | cut -d'/' -f 2 | pbcopy

# 部署时观察集群状态
kubectl get events -w --all-namespaces

Release Watch

Requirement

  • kubernetes 1.22
    • 要求 ingress v1
    • 要求 cert-manager 1.5
    • 要求 nginx-ingress 1.0

Note

  • 升级 ingres-nginx 需要同步 ingress-nginx/kube-webhook-certgen 版本

kube-stub-cluster's People

Contributors

wenerme avatar

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.